mirror of https://github.com/tc39/test262.git
Fix location based return value for Date on subclassing tests
Fixes #489
This commit is contained in:
parent
fc9bdb7cd5
commit
d9a277aa7c
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue