2 * File Name: switch-002.js
4 * Description: The switch Statement
6 * A simple switch test with no abrupt completions.
8 * Author: christine@netscape.com
12 var SECTION = "switch-002";
13 var VERSION = "ECMA_2";
14 var TITLE = "The switch statement";
17 writeHeaderToLog( SECTION + " "+ TITLE);
20 var testcases = new Array();
27 SwitchTest( true, 32 );
28 SwitchTest( false, 32 );
29 SwitchTest( null, 32 );
30 SwitchTest( void 0, 32 );
31 SwitchTest( "0", 32 );
35 function SwitchTest( input, expect ) {
55 testcases[tc++] = new TestCase(
57 "switch with no breaks: input is " + input,