blob: 3d6014b9d040006e001ce9ab5a46643d48d46d11 (
plain)
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
|
// |jit-test| slow;
// Binary: cache/js-dbg-64-fb23c30e3d60-linux
// Flags: -m -n -a
//
function TestCase(n, d, e, a)
TestCase.prototype.dump = function () {
}
var lfcode = new Array();
lfcode.push("2");
lfcode.push("var lfcode = new Array();\
lfcode.push(\"gczeal(4,1);\");\
while (true) {\
var file = lfcode.shift(); if (file == ((0Xa ) . shift )) { break; }\
eval(file);\
}\
");
lfcode.push("function testJSON(str, expectSyntaxError)\
");
lfcode.push("1");
lfcode.push("Number.prototype.toString = function() { return 3; };\
assertEq(JSON.stringify({ 3: 3, 4: 4 }, [(this . abstract )]),\
'{\"3\":3}');\
");
lfcode.push("var HoursPerDay = 24;\
var MinutesPerHour = 60;\
var SecondsPerMinute = 60;\
var msPerSecond = 1000;\
var msPerMinute = 60000;\
var TZ_ADJUST = TZ_DIFF * msPerHour;\
var PST_DIFF = TZ_DIFF - TZ_PST;\
var PST_ADJUST = TZ_PST * msPerHour;\
var TIME_0000 = (function ()\
{\
var TIME_1970 = 0;\
var TIME_1900 = -2208988800000;\
var UTC_FEB_29_2000 = TIME_2000 + 31*msPerDay + 28*msPerDay;\
var UTC_JAN_1_2005 = TIME_2000 + TimeInYear(2000) + TimeInYear(2001) +\
TimeInYear(2002) + TimeInYear(2003) + TimeInYear(2004);\
var TIME_NOW = now.valueOf();\
function getTimeZoneDiff()\
{\
return -((new Date(2000, 1, 1)).getTimezoneOffset())/60;\
function adjustResultArray(ResultArray, msMode)\
ResultArray[UTC_HOURS] = HourFromTime(t);\
ResultArray[UTC_DATE] = DateFromTime(t);\
ResultArray[UTC_MONTH] = MonthFromTime(t);\
ResultArray[UTC_YEAR] = YearFromTime(t);\
function DaysInYear( y ) {\
return \"ERROR: DaysInYear(\" + y + \") case not covered\";\
function DayNumber( t ) {\
function TimeWithinDay( t ) {\
function YearNumber( t ) {\
function TimeFromYear( y ) {\
function InLeapYear( t ) {\
return \"ERROR: InLeapYear(\"+ t + \") case not covered\";\
for ( var timeToTimeZero = t; ; ) {\
return \"ERROR: MonthFromTime(\"+t+\") not known\";\
function DayWithinYear( t ) {\
return( Day(t) - DayFromYear(YearFromTime(t)));\
");
while (true) {
var file = lfcode.shift(); if (file == undefined) { break; }
if (file == "evaluate") {
} else {
loadFile(file);
}
}
function loadFile(lfVarx) {
try {
if (lfVarx.substr(-3) == ".js") {
} else if (!isNaN(lfVarx)) {
lfRunTypeId = parseInt(lfVarx);
} else {
switch (lfRunTypeId) {
case 1: eval(lfVarx); break;
case 2: new Function(lfVarx)(); break;
}
}
} catch (lfVare) { }
}
|