mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
No bug: Add testcases, r=tests
This commit is contained in:
parent
ccfd1c8cb1
commit
4c52191bf3
12
js/src/jit-test/tests/ion/bug863261.js
Normal file
12
js/src/jit-test/tests/ion/bug863261.js
Normal file
@ -0,0 +1,12 @@
|
||||
// |jit-test| error: InternalError: too much recursion
|
||||
function TestCase(d) {
|
||||
toPrinted(d)
|
||||
}
|
||||
function toPrinted(value) {}
|
||||
function reportCompare (expected, actual, description) {
|
||||
if (typeof description == "undefined")
|
||||
toPrinted(expected);
|
||||
new TestCase(description);
|
||||
reportCompare();
|
||||
}
|
||||
reportCompare(Math['LN2'], Math['LN2'], 0);
|
20
js/src/jit-test/tests/ion/bug863755.js
Normal file
20
js/src/jit-test/tests/ion/bug863755.js
Normal file
@ -0,0 +1,20 @@
|
||||
function TestCase( e, a) {
|
||||
getTestCaseResult(e, a);
|
||||
}
|
||||
function getTestCaseResult(expected, actual) {}
|
||||
var msPerSecond = 1000;
|
||||
var TIME_0000 = (function () { })();
|
||||
var now = new Date();
|
||||
var TIME_NOW = now.valueOf();
|
||||
function msFromTime(t) {
|
||||
var ms = t % msPerSecond;
|
||||
return ((ms < 0) ? msPerSecond + ms : ms );
|
||||
}
|
||||
new TestCase(false, eval("true, false"));
|
||||
addTestCase( TIME_NOW );
|
||||
addTestCase( TIME_0000 );
|
||||
function addTestCase( t ) {
|
||||
for ( m = 0; m <= 1000; m+=100 ) {
|
||||
new TestCase(msFromTime(t), (new Date(t)).getMilliseconds());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user