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-64-e8a025a7101b-linux |
michael@0 | 2 | // Flags: -m -n |
michael@0 | 3 | // |
michael@0 | 4 | var SECTION = ""; |
michael@0 | 5 | function AddTestCase( description, expect, actual ) {} |
michael@0 | 6 | function TestCase(n, d, e, a) {} |
michael@0 | 7 | TestCase.prototype.dump = function () {}; |
michael@0 | 8 | function printStatus (msg) { |
michael@0 | 9 | msg = msg.toString(); |
michael@0 | 10 | var lines = msg.split ("\n"); |
michael@0 | 11 | } |
michael@0 | 12 | function printBugNumber (num) {} |
michael@0 | 13 | function optionsInit() {} |
michael@0 | 14 | function optionsClear() {} |
michael@0 | 15 | var optionsframe = {}; |
michael@0 | 16 | try { |
michael@0 | 17 | optionsClear(); |
michael@0 | 18 | for (var optionName in options.initvalues) { } |
michael@0 | 19 | } catch(ex) { |
michael@0 | 20 | optionsInit(); |
michael@0 | 21 | if (typeof window == 'undefined' && typeof print == 'function') |
michael@0 | 22 | try { |
michael@0 | 23 | gTestcases[gTc].passed = writeTestCaseResult( |
michael@0 | 24 | gTestcases[gTc].description +" = "+ gTestcases[gTc].actual ); |
michael@0 | 25 | } catch(e) { |
michael@0 | 26 | if (typeof document != "object" || !document.location.href.match(/jsreftest.html/)) {} |
michael@0 | 27 | } |
michael@0 | 28 | } |
michael@0 | 29 | code = "(function(x){ if(x) return x; })"; |
michael@0 | 30 | gczeal(2); |
michael@0 | 31 | for (var loopa2 = 0; loopa2 < 13; loopa2++) { |
michael@0 | 32 | [, , , , , , ][(loopa2.loopa2)] &= (/\u0042[\u0061]\\u0026/ ); |
michael@0 | 33 | } |
michael@0 | 34 | this.summary = false; |
michael@0 | 35 | printStatus (summary); |
michael@0 | 36 | try {} catch(e) {} |
michael@0 | 37 | var TIME_0000 = (function () { })(); |
michael@0 | 38 | function getTimeZoneDiff() {} |
michael@0 | 39 | new TestCase( SECTION, Array.prototype.reverse.length ); |
michael@0 | 40 | new TestCase( SECTION, eval("delete Array.prototype.reverse.length; Array.prototype.reverse.length") ); |
michael@0 | 41 | var S = "var A = new Array( true,false )"; |
michael@0 | 42 | eval(S); |
michael@0 | 43 | var R = Reverse(A); |
michael@0 | 44 | new TestCase( SECTION, eval( S + "; A.reverse(); A.length") ); |
michael@0 | 45 | CheckItems( R, A ); |
michael@0 | 46 | CheckItems( R, A ); |
michael@0 | 47 | eval(S); |
michael@0 | 48 | new TestCase( SECTION, eval( S + "; A.reverse(); A.length") ); |
michael@0 | 49 | CheckItems( R, A ); |
michael@0 | 50 | var S = "var A = new Array(); A[8] = 'hi', A[3] = 'yo'"; |
michael@0 | 51 | eval(S); |
michael@0 | 52 | var R = Reverse(A); |
michael@0 | 53 | new TestCase( SECTION, eval( S + "; A.reverse(); A.length") ); |
michael@0 | 54 | CheckItems( R, A ); |
michael@0 | 55 | var OBJECT_OBJECT = new Object(); |
michael@0 | 56 | var FUNCTION_OBJECT = new Function( 'return this' ); |
michael@0 | 57 | var BOOLEAN_OBJECT = new Boolean; |
michael@0 | 58 | var DATE_OBJECT = new Date(0); |
michael@0 | 59 | var STRING_OBJECT = new String('howdy'); |
michael@0 | 60 | var NUMBER_OBJECT = new Number(Math.PI); |
michael@0 | 61 | var ARRAY_OBJECT= new Array(1000); |
michael@0 | 62 | var args = "null, void 0, Math.pow(2,32), 1.234e-32, OBJECT_OBJECT, BOOLEAN_OBJECT, FUNCTION_OBJECT, DATE_OBJECT, STRING_OBJECT,"+ |
michael@0 | 63 | "ARRAY_OBJECT, NUMBER_OBJECT, Math, true, false, 123, '90210'"; |
michael@0 | 64 | var S = "var A = new Array("+args+")"; |
michael@0 | 65 | eval(S); |
michael@0 | 66 | var R = Reverse(A); |
michael@0 | 67 | new TestCase( SECTION, eval( S + "; A.reverse(); A.length") ); |
michael@0 | 68 | CheckItems( R, A ); |
michael@0 | 69 | var limit = 1000; |
michael@0 | 70 | for (var i = 0; i < limit; i++ ) { |
michael@0 | 71 | args += i +""; |
michael@0 | 72 | } |
michael@0 | 73 | function CheckItems( R, A ) { |
michael@0 | 74 | for ( var i = 0; i < R.length; i++ ) { |
michael@0 | 75 | new TestCase( ( code ) [i] ); |
michael@0 | 76 | } |
michael@0 | 77 | } |
michael@0 | 78 | function Object_1( value ) {} |
michael@0 | 79 | function Reverse( array ) { |
michael@0 | 80 | return array; |
michael@0 | 81 | } |