js/src/tests/js1_2/Array/tostring_2.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    File Name:          tostring_2.js
    10    Reference:          http://scopus.mcom.com/bugsplat/show_bug.cgi?id=114564
    11    Description:        toString in version 120
    14    Author:             christine@netscape.com
    15    Date:               15 June 1998
    16 */
    18 var SECTION = "Array/tostring_2.js";
    19 var VERSION = "JS_12";
    20 startTest();
    21 var TITLE   = "Array.toString";
    23 writeHeaderToLog( SECTION + " "+ TITLE);
    25 var a = [];
    28 if ( version() == 120 ) {
    29   VERSION = "120";
    30 } else {
    31   VERSION = "";
    32 }
    34 new TestCase ( SECTION,
    35 	       "a.toString()",
    36 	       ( VERSION == "120" ? "[]" : "" ),
    37 	       a.toString() );
    39 new TestCase ( SECTION,
    40 	       "String( a )",
    41 	       ( VERSION == "120" ? "[]" : "" ),
    42 	       String( a ) );
    44 new TestCase ( SECTION,
    45 	       "a +''",
    46 	       ( VERSION == "120" ? "[]" : "" ),
    47 	       a+"" );
    49 test();

mercurial