js/src/jit-test/tests/jaeger/recompile/bug659766.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 var gTestcases = new Array;
     2 var gTc = gTestcases;
     3 function TestCase(n, d, e, a) {
     4   this.description=d
     5   this.reason=''
     6   gTestcases[gTc++]=this
     7 }
     8 TestCase.prototype.dump=function () + toPrinted(this.description) + toPrinted(this.reason) + '\n';
     9 function toPrinted(value) value=value.replace(/\\n/g, 'NL').replace(/[^\x20-\x7E]+/g, escapeString);
    10 function escapeString (str) {
    11   try {
    12      err
    13   } catch(ex) { }
    14 }
    15 function jsTestDriverEnd() {
    16   for (var i = 0; i < gTestcases.length; i++)
    17   gTestcases[i].dump()
    18 }
    19 var SECTION = "dowhile-007";
    20 DoWhile();
    21 function DoWhile( object ) result1=false;
    22 new TestCase(
    23     SECTION,
    24     "break one: ",
    25     result1 
    26 );
    27 jsTestDriverEnd();
    28 new TestCase( SECTION, "'�O� �:i��'.match(new RegExp('.+'))", [], '�O� �:i��');
    29 jsTestDriverEnd();

mercurial