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