Skip to content
Snippets Groups Projects
Commit d9a277aa authored by Leonardo Balter's avatar Leonardo Balter
Browse files

Fix location based return value for Date on subclassing tests

Fixes #489
parent fc9bdb7c
No related branches found
No related tags found
No related merge requests found
......@@ -20,10 +20,10 @@ info: >
class D extends Date {}
var d1 = new D(1859, '10', 24);
assert.sameValue(d1.getUTCFullYear(), 1859);
assert.sameValue(d1.getUTCMonth(), 10);
assert.sameValue(d1.getUTCDate(), 24);
var d1 = new D(1859, '10', 24, 11);
assert.sameValue(d1.getFullYear(), 1859);
assert.sameValue(d1.getMonth(), 10);
assert.sameValue(d1.getDate(), 24);
var d2 = new D(-3474558000000);
assert.sameValue(d2.getUTCFullYear(), 1859);
......@@ -32,6 +32,6 @@ assert.sameValue(d2.getUTCDate(), 24);
var d3 = new D();
var d4 = new Date();
assert.sameValue(d3.getUTCFullYear(), d4.getUTCFullYear());
assert.sameValue(d3.getUTCMonth(), d4.getUTCMonth());
assert.sameValue(d3.getUTCDate(), d4.getUTCDate());
assert.sameValue(d3.getFullYear(), d4.getFullYear());
assert.sameValue(d3.getMonth(), d4.getMonth());
assert.sameValue(d3.getDate(), d4.getDate());
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