blob: 72c5cc7930424e8cfd04cdfe6e6fc7a7c4d51c8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
load("test-common.js");
try {
var last = 0;
for (var i = 0; i < 100; ++i) {
var now = Date.now();
assert(!isNaN(now))
assert(now > 1580000000000);
assert(now >= last);
last = now;
}
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}
|