Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | // Binary: cache/js-dbg-32-4bcbb63b89c3-linux |
michael@0 | 2 | // Flags: --ion-eager |
michael@0 | 3 | // |
michael@0 | 4 | var summary = ''; |
michael@0 | 5 | function reportFailure (msg) {} |
michael@0 | 6 | function toPrinted(value) { |
michael@0 | 7 | value = value.replace(/\n/g, 'NL') |
michael@0 | 8 | } |
michael@0 | 9 | function reportCompare (expected, actual, description) { |
michael@0 | 10 | var output = ""; |
michael@0 | 11 | output += "Expected value '" + toPrinted(expected) + |
michael@0 | 12 | "', Actual value '" + toPrinted(actual) + "' "; |
michael@0 | 13 | reportFailure (description + " : " + output); |
michael@0 | 14 | } |
michael@0 | 15 | var lfcode = new Array(); |
michael@0 | 16 | lfcode.push("\ |
michael@0 | 17 | expect = actual = 'No Exception';\ |
michael@0 | 18 | reportCompare(expect, actual, summary);\ |
michael@0 | 19 | "); |
michael@0 | 20 | lfcode.push("\ |
michael@0 | 21 | function reportFailure (section, msg)\ |
michael@0 | 22 | msg = inSection(section)+\"\"+msg;\ |
michael@0 | 23 | "); |
michael@0 | 24 | lfcode.push("\ |
michael@0 | 25 | try {\ |
michael@0 | 26 | for (var i in expect) \ |
michael@0 | 27 | reportCompare(expect[i], actual[i], getStatus(i));\ |
michael@0 | 28 | } catch(exc1) {}\ |
michael@0 | 29 | function getStatus(i) {}\ |
michael@0 | 30 | "); |
michael@0 | 31 | lfcode.push("gczeal(2,(9));"); |
michael@0 | 32 | lfcode.push("evaluate(\"reportCompare(expect, actual, summary);\");"); |
michael@0 | 33 | gcPreserveCode() |
michael@0 | 34 | while (true) { |
michael@0 | 35 | var file = lfcode.shift(); if (file == undefined) { break; } |
michael@0 | 36 | if (file == "evaluate") { |
michael@0 | 37 | } else { |
michael@0 | 38 | loadFile(file); |
michael@0 | 39 | } |
michael@0 | 40 | } |
michael@0 | 41 | function loadFile(lfVarx) { |
michael@0 | 42 | try { |
michael@0 | 43 | if (lfVarx.substr(-3) != ".js") { |
michael@0 | 44 | evaluate(lfVarx); |
michael@0 | 45 | } |
michael@0 | 46 | } catch (lfVare) {} |
michael@0 | 47 | } |