Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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/. */
7 /**
8 File Name: 11.4.2.js
9 ECMA Section: 11.4.2 the Void Operator
10 Description: always returns undefined (?)
11 Author: christine@netscape.com
12 Date: 7 july 1997
14 */
15 var SECTION = "11.4.2";
16 var VERSION = "ECMA_1";
17 startTest();
18 var TITLE = "The void operator";
20 writeHeaderToLog( SECTION + " "+ TITLE);
22 new TestCase( SECTION, "void(new String('string object'))", void 0, void(new String( 'string object' )) );
23 new TestCase( SECTION, "void('string primitive')", void 0, void("string primitive") );
24 new TestCase( SECTION, "void(Number.NaN)", void 0, void(Number.NaN) );
25 new TestCase( SECTION, "void(Number.POSITIVE_INFINITY)", void 0, void(Number.POSITIVE_INFINITY) );
26 new TestCase( SECTION, "void(1)", void 0, void(1) );
27 new TestCase( SECTION, "void(0)", void 0, void(0) );
28 new TestCase( SECTION, "void(-1)", void 0, void(-1) );
29 new TestCase( SECTION, "void(Number.NEGATIVE_INFINITY)", void 0, void(Number.NEGATIVE_INFINITY) );
30 new TestCase( SECTION, "void(Math.PI)", void 0, void(Math.PI) );
31 new TestCase( SECTION, "void(true)", void 0, void(true) );
32 new TestCase( SECTION, "void(false)", void 0, void(false) );
33 new TestCase( SECTION, "void(null)", void 0, void(null) );
34 new TestCase( SECTION, "void new String('string object')", void 0, void new String( 'string object' ) );
35 new TestCase( SECTION, "void 'string primitive'", void 0, void "string primitive" );
36 new TestCase( SECTION, "void Number.NaN", void 0, void Number.NaN );
37 new TestCase( SECTION, "void Number.POSITIVE_INFINITY", void 0, void Number.POSITIVE_INFINITY );
38 new TestCase( SECTION, "void 1", void 0, void 1 );
39 new TestCase( SECTION, "void 0", void 0, void 0 );
40 new TestCase( SECTION, "void -1", void 0, void -1 );
41 new TestCase( SECTION, "void Number.NEGATIVE_INFINITY", void 0, void Number.NEGATIVE_INFINITY );
42 new TestCase( SECTION, "void Math.PI", void 0, void Math.PI );
43 new TestCase( SECTION, "void true", void 0, void true );
44 new TestCase( SECTION, "void false", void 0, void false );
45 new TestCase( SECTION, "void null", void 0, void null );
47 // array[item++] = new TestCase( SECTION, "void()", void 0, void() );
49 test();