Commit Graph

23 Commits

Author SHA1 Message Date
Philip Chimento 8a1ec2f20b Test ISO strings with extended year -000000
In Date.parse() and new Date(), representations of the year 0 as -000000
must not be accepted. In the case of Date.parse(), they should yield NaN,
and in the case of new Date(), they should yield an invalid Date object,
whose valueOf() is NaN.
2022-04-25 11:34:52 -04:00
rwaldron f1720c4a0c Mark with "TODO: Convert to verifyProperty() format." 2021-09-02 11:21:25 -07:00
rwaldron 1c24e4b915 Transform legacy format to harness assertions 2021-09-02 11:21:25 -07:00
Rick Waldron b0e791f4a6
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Date (#3079) 2021-07-21 14:14:06 -07:00
Rick Waldron d576baf73f Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. 2020-10-06 12:01:34 -04:00
Rick Waldron c644ede430 Built-in function objects that are not identified as constructors must throw a TypeError exception when new'ed. Fixes gh-1739 2020-10-06 12:01:34 -04:00
Ross Kirsling 800870cbb8
Fix DST sensitivity in Date/parse/without-utc-offset.js. (#2523) 2020-03-10 18:07:44 -07:00
Ross Kirsling 01007880bc Add test verifying offsetless date-time string is local time. (#2461)
* Add test verifying offsetless date-time string is local time.

* Fix copyright year.
2020-01-08 15:32:28 -05:00
Mike Pennisi f26c2a11bd Remove unnecessary "includes" directives
The values defined by the referenced files are not used by these tests.
This makes their inclusion superfluous, which needlessly increases the
time to execute the tests and may confuse some readers.
2019-09-25 13:59:24 -04:00
Leo Balter ff9763729d Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
Andrew Paprocki cab89848ad Date.parse: Test maximum time value range per spec. 2018-03-22 15:42:56 +00:00
Andrew Paprocki 9db5005ac3 Date.parse: Add 0 (UTC epoch) test per spec. 2018-03-22 15:42:55 +00:00
Rick Waldron b59d956b3c built-ins/Date/*: make all indentation consistent (depth & character) (#1422) 2018-02-15 16:40:26 -05:00
André Bargull f95b56ab28 Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722.
2018-02-09 12:09:47 -05:00
Rick Waldron a01de4a722 js-beautify: make all indentation consistent (depth & character) (#1409) 2018-02-09 11:35:37 -05:00
Rick Waldron 92a2621901 Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
deathbearbrown b7676e8f5f add esid to Date frontmatter 2017-08-02 15:47:16 -04:00
André Bargull d59e30c95e Remove execute bit from files (#976) 2017-04-13 16:24:07 -04:00
André Bargull ca61d9b876 Add missing tests for "length" and "name" properties of built-in functions
Note: Already uses the updated DataView function lengths from tc39/ecma262#266 (ES2016 Draft 2015-12-20)
2016-01-15 18:12:05 +01:00
Mike Pennisi 92890e6723 Remove `$FAIL` function
This function is equivalent to `$ERROR` (which is automatically included
in test environments). Remove the harness file that defines the
function, remove references to the file from test `includes` lists, and
update scripts to instead invoke the `$ERROR` function.
2015-06-09 19:44:25 -04:00
André Bargull 56036e4064 Enable strict mode for more built-in tests
- Remove no longer needed noStrict flags.
- Change tests to use propertyHelper.js for strict mode compatibility.
- Add tests for return value of `delete` operator, e.g. `delete Array.prototype === false`.
- Add non-writable tests for global NaN property.
- Split some tests to run in strict mode.
- Change tests with global `var length` declaration to use a different variable name for browser environments.
- Merge duplicated tests symbol-data-property-configurable-non-strict and symbol-data-property-configurable-strict.
- Merge duplicated tests symbol-data-property-writable-non-strict and symbol-data-property-writable-strict.
- (And a small change in propertyHelper to reduce code duplication in function call.)
2015-05-18 18:01:00 +02:00
André Bargull 07fa78d677 Fix strict mode errors in built-ins/Date
Add missing "var" declarations and noStrict flags.

Part of issue #35.
2015-04-29 17:37:58 +02:00
Brian Terlson 2a74f0ec1b Reorganize ./test 2014-12-07 15:33:09 -08:00