Skip to content
Snippets Groups Projects
Commit 2de52150 authored by test262-automation's avatar test262-automation Committed by Rick Waldron
Browse files

[javascriptcore-test262-automation] Changes from...

[javascriptcore-test262-automation] Changes from https://github.com/webkit/webkit.git at sha b69d88687a on Fri Aug 10 2018 18:07:39 GMT+0000 (Coordinated Universal Time)
parent 2c398685
No related branches found
No related tags found
No related merge requests found
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
for (var i = 0; i < 1e5; ++i) {
shouldBe(Number.isNaN(Date.UTC()), true);
shouldBe(Date.UTC(2018), 1514764800000);
shouldBe(Date.UTC(2018, 1), 1517443200000);
shouldBe(Date.UTC(2018, 1, 2), 1517529600000);
shouldBe(Date.UTC(2018, 1, 2, 3), 1517540400000);
shouldBe(Date.UTC(2018, 1, 2, 3, 4), 1517540640000);
shouldBe(Date.UTC(2018, 1, 2, 3, 4, 5), 1517540645000);
shouldBe(Date.UTC(2018, 1, 2, 3, 4, 5, 6), 1517540645006);
shouldBe(Date.UTC(2018, 1, 2, 3, 4, 5, 6, 7), 1517540645006);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment