1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8
* File Name: switch-001.js
10
* Description: The switch Statement
12
* A simple switch test with no abrupt completions.
14
* Author: christine@netscape.com
15
* Date: 11 August 1998
18
var SECTION = "switch-001";
19
var VERSION = "ECMA_2";
20
var TITLE = "The switch statement";
22
var BUGNUMBER="315767";
25
writeHeaderToLog( SECTION + " "+ TITLE);
33
SwitchTest( true, 96 );
34
SwitchTest( false, 96 );
35
SwitchTest( null, 96 );
36
SwitchTest( void 0, 96 );
37
SwitchTest( "0", 96 );
41
function SwitchTest( input, expect ) {
61
"switch with no breaks, case expressions are numbers. input is "+