js/src/tests/js1_2/operator/equality.js

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 // |reftest| skip -- obsolete test
     2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     8 /**
     9    Filename:     equality.js
    10    Description:  'This tests the operator =='
    12    Author:       Nick Lerissa
    13    Date:         Fri Feb 13 09:58:28 PST 1998
    14 */
    16 var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"';
    17 var VERSION = 'no version';
    18 startTest();
    19 var TITLE = 'operator "=="';
    21 writeHeaderToLog('Executing script: equality.js');
    22 writeHeaderToLog( SECTION + " "+ TITLE);
    24 // the following two tests are incorrect
    25 //new TestCase( SECTION, "(new String('') == new String(''))       ",
    26 //                                            true,   (new String('') == new String('')));
    28 //new TestCase( SECTION, "(new Boolean(true) == new Boolean(true)) ",
    29 //                                            true,   (new Boolean(true) == new Boolean(true)));
    31 new TestCase( SECTION, "(new String('x') == 'x')                 ",
    32 	      false,   (new String('x') == 'x'));
    34 new TestCase( SECTION, "('x' == new String('x'))                 ",
    35 	      false,   ('x' == new String('x')));
    38 test();

mercurial