2 * File Name: switch-001.js
4 * Description: The switch Statement
6 * A simple switch test with no abrupt completions.
8 * Author: christine@netscape.com
12 var SECTION = "switch-001";
13 var VERSION = "ECMA_2";
14 var TITLE = "The switch statement";
16 var BUGNUMBER="315767";
21 writeHeaderToLog( SECTION + " "+ TITLE);
24 var testcases = new Array();
32 SwitchTest( true, 96 );
33 SwitchTest( false, 96 );
34 SwitchTest( null, 96 );
35 SwitchTest( void 0, 96 );
36 SwitchTest( "0", 96 );
40 function SwitchTest( input, expect ) {
58 testcases[tc++] = new TestCase(
60 "switch with no breaks, case expressions are numbers. input is "+