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.

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

mercurial