js/src/tests/ecma_5/Object/15.2.3.6-redefinition-1-of-4.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-if(!xulRuntime.shell) -- uses shell load() function
     2 // Any copyright is dedicated to the Public Domain.
     3 // http://creativecommons.org/licenses/publicdomain/
     5 var PART = 1, PARTS = 4;
     7 //-----------------------------------------------------------------------------
     8 var BUGNUMBER = 430133;
     9 var summary =
    10   'ES5 Object.defineProperty(O, P, Attributes): redefinition ' +
    11   PART + ' of ' + PARTS;
    13 print(BUGNUMBER + ": " + summary);
    15 load("ecma_5/Object/defineProperty-setup.js");
    17 /**************
    18  * BEGIN TEST *
    19  **************/
    21 try
    22 {
    23   new TestRunner().runPropertyPresentTestsFraction(PART, PARTS);
    24 }
    25 catch (e)
    26 {
    27   throw "Error thrown during testing: " + e +
    28           " at line " + e.lineNumber + "\n" +
    29         (e.stack
    30           ? "Stack: " + e.stack.split("\n").slice(2).join("\n") + "\n"
    31           : "");
    32 }
    34 /******************************************************************************/
    36 if (typeof reportCompare === "function")
    37   reportCompare(true, true);
    39 print("Tests complete!");

mercurial