Commit Graph

4055 Commits

Author SHA1 Message Date
Frank Tang 52bb16f9a5 Add tests for Temporal.Calendar.prototype.dayOf* 2021-08-05 18:31:44 -04:00
Frank Tang 97967a37b3 fix id 2021-08-05 18:31:06 -04:00
Frank Tang 6cc2d81dab Split to different files and test throwing Error 2021-08-05 18:31:06 -04:00
Frank Tang b5a4033fcc Fix directory name 2021-08-05 18:31:06 -04:00
Frank Tang 932c931a70 Add tests for Temporal.Calendar.prototype.(year|month*|day) 2021-08-05 18:31:06 -04:00
Frank Tang 750ec2b581 Fix YAML 2021-08-05 18:30:13 -04:00
Frank Tang 8ebded4cfa use harness and add more tests 2021-08-05 18:30:13 -04:00
Frank Tang 7418ba62b1 rm throws-range-error.js 2021-08-05 18:30:13 -04:00
Frank Tang b58e01afca Fix YAML 2021-08-05 18:30:13 -04:00
Frank Tang 721245be53 Fix directory name 2021-08-05 18:30:13 -04:00
Frank Tang e17cc7b4bf Add test for Temporal.Calendar.prototype.dateUntil 2021-08-05 18:30:13 -04:00
Frank Tang 1a36125f25 Remove simple.js 2021-08-05 18:27:03 -04:00
Frank Tang 8f2434ba4d Fix directory name 2021-08-05 18:27:03 -04:00
Frank Tang 6ab8e86471 Add test for Temporal.Calendar.p.date(Add|FromFields) 2021-08-05 18:27:03 -04:00
Frank Tang a585faf566 split simple into different files 2021-08-05 18:27:03 -04:00
Frank Tang 173684422c Added back fiels incorrectly removed 2021-08-05 18:27:03 -04:00
Frank Tang df42e9a19b split into different add files 2021-08-05 18:27:03 -04:00
Frank Tang f772019855 Fix directory name 2021-08-05 18:27:03 -04:00
Frank Tang 1195736914 Add test for Temporal.Calendar.p.date(Add|FromFields) 2021-08-05 18:27:03 -04:00
Frank Tang bf1b3f585f Add abstract operation test for dateFromFields 2021-08-05 18:27:03 -04:00
Frank Tang c0b3a5f074 Add test for abrupt completion for dateAdd 2021-08-05 18:27:03 -04:00
Frank Tang 6c077667fc Fix directory name 2021-08-05 18:27:03 -04:00
Frank Tang 4a34d84b20 Add test for Temporal.Calendar.p.date(Add|FromFields) 2021-08-05 18:27:03 -04:00
André Bargull 47be34cef7 Split files which test for the property order of functions
So SpiderMonkey can run the other parts of these tests.
2021-08-05 18:23:52 -04:00
André Bargull d00039593d Add various private field and private method tests
This adds tests for implementation bugs in SpiderMonkey [1], plus
additional tests for implementation bugs in V8 and JSC.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1723155
2021-08-04 15:06:38 -04:00
André Bargull b74b15c49c
Derived class constructor checks are executed after leaving the function body (#3129) 2021-08-04 09:58:24 -07:00
Shu-yu Guo 5a6577bcc9
Add missing array-find-from-last feature to unscopables test (#3130) 2021-08-03 13:17:38 -07:00
Mike Pennisi ab353c6e73 Correct tests and improve documentation
The tests for the "Array findFromLast" proposal were originally authored
based on related tests that had already been merged to the repository's
`main` branch [1]. While those new tests were under review, a number of
tests for the Resizable ArrayBuffer proposal were found to be incorrect
[2]. The problem was fixed for the tests in `main`, but because the
corresponding tests for "Array findFromLast" were not yet merged, the
error persisted there [3].

Apply the same correction to the new tests.

[1] https://github.com/tc39/test262/issues/3111
[2] https://github.com/tc39/test262/pull/3113
[3] https://github.com/tc39/test262/pull/3045
2021-08-02 12:20:09 -04:00
Mike Pennisi f9efc46142 Improve coverage for Error.prototype.constructor
Extend coverage to include the property's enumerability, writability,
and configurability.
2021-07-29 16:54:52 -04:00
Mike Pennisi 4ec3eaaeb9 Improve coverage for Error.prototype.toString
Extend coverage to include the property's enumerability, writability,
and configurability.
2021-07-29 16:54:52 -04:00
Mike Pennisi cbd69bd26f Improve coverage for Error.prototype.name
Extend coverage to include the property's writability and
configurability. Use the conventional `verifyProperty` harness function
to consolidate tests.
2021-07-29 16:54:52 -04:00
Mike Pennisi c138c2acbe Improve coverage for Error.prototype.message
Extend coverage to include the property's writability, configurability,
and value. Use the conventional `verifyProperty` harness function to
consolidate tests.
2021-07-29 16:54:52 -04:00
rwaldron 8afbeda683 chore: migrate $ERROR -> throw new Test262Error in test/language/expressions/assignment/white-space.js 2021-07-29 15:21:12 -04:00
Rick Waldron 2bb2256877
chore: migrate $ERROR -> throw new Test262Error in test/annexB (#3121) 2021-07-29 11:03:18 -07:00
Rick Waldron 5ab89bbb55
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/parseInt (#3120) 2021-07-29 11:02:59 -07:00
Rick Waldron 8c3753020a
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/undefined (#3119) 2021-07-29 11:02:41 -07:00
rwaldron 4a125f2f4e chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
Meir Blachman ad15eca476 chore: migrate $ERROR -> throw new Test262Error in test/built-ins/parseFloat 2021-07-29 10:29:03 -04:00
Rick Waldron ecf835778d
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Object (#3090) 2021-07-28 13:50:06 -07:00
Rick Waldron ee3597ed57
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/RegExp (#3092) 2021-07-28 13:49:34 -07:00
Rick Waldron 64a4b76c62
chore: migrate $ERROR -> throw new Test262Error in test/language/e* (#3098) 2021-07-28 13:48:39 -07:00
Rick Waldron e5ab3a572e
chore: migrate $ERROR -> throw new Test262Error in test/language/f* (#3099) 2021-07-28 13:47:49 -07:00
Rick Waldron 0947f287ae
chore: migrate $ERROR -> throw new Test262Error in test/language/g* (#3101) 2021-07-28 13:47:15 -07:00
Rick Waldron f4914e133e
chore: migrate $ERROR -> throw new Test262Error in test/language/i* (#3102) 2021-07-28 13:46:58 -07:00
Rick Waldron 77fe50f174
chore: migrate $ERROR -> throw new Test262Error in test/language/line-terminators/* (#3103) 2021-07-28 13:46:23 -07:00
Rick Waldron 323233be54
chore: migrate $ERROR -> throw new Test262Error in test/language/l* (#3104)
Excludes test/language/line-terminators/*
2021-07-28 13:45:44 -07:00
Rick Waldron 2dcd653272
chore: migrate $ERROR -> throw new Test262Error in test/language/t* (#3106) 2021-07-28 13:44:19 -07:00
Rick Waldron 2581a439a5
chore: migrate $ERROR -> throw new Test262Error in test/language/white-space/* (#3107) 2021-07-28 13:43:40 -07:00
Leo Balter 758ecd7895
Merge pull request #3100 from tc39/rwaldron/remove-error-api-027
chore: migrate $ERROR -> throw new Test262Error in src/*
2021-07-28 13:42:42 -07:00
Wenlu Wang 915f7e79be Fix incorrect case 2021-07-28 13:53:14 -04:00
Wenlu Wang 74727cd4ed Fix CR issues 2021-07-28 13:53:14 -04:00
Wenlu Wang 6a6211e495 Fix format 2021-07-28 13:53:13 -04:00
Wenlu Wang 3d82bd7ffb Fix format 2021-07-28 13:53:13 -04:00
Wenlu Wang ed2addaa73 Fix format 2021-07-28 13:53:13 -04:00
Wenlu Wang 5da8030779 Fix format 2021-07-28 13:53:13 -04:00
rwaldron 4b54d54113 Fix copyrights and features metadata 2021-07-28 13:53:12 -04:00
Wenlu Wang 41e946d00b Fix format 2021-07-28 13:51:38 -04:00
Wenlu Wang 642a180e62 Fix minor typo 2021-07-28 13:51:38 -04:00
Wenlu Wang f354da8ba4 Add typedarray findLastIndex 2021-07-28 13:51:38 -04:00
Wenlu Wang cb54d119e3 Add typedarray find last tests 2021-07-28 13:51:37 -04:00
Wenlu Wang 6c5e421806 Add unscopable tests 2021-07-28 13:51:37 -04:00
Wenlu Wang a4aeea09ae Avoid useless spec statement 2021-07-28 13:51:37 -04:00
Wenlu Wang 3bb6d6480e Add findLastIndex tests 2021-07-28 13:51:37 -04:00
Wenlu Wang 275e7f1595 Add tests for proposal array find from last 2021-07-28 13:51:37 -04:00
Mike Pennisi 247085f9d8 fixup! Add tests for proposal, "Intl.DisplayNames v2" 2021-07-28 13:22:51 -04:00
Mike Pennisi d93e7b08e7 Add tests for proposal, "Intl.DisplayNames v2"
https://tc39.es/intl-displaynames-v2/
2021-07-28 13:22:51 -04:00
Mike Pennisi 1142ebee09 Remove extraneous feature flag 2021-07-28 12:44:07 -04:00
Mike Pennisi 8428e70367 Correct tests and improve documentation 2021-07-28 11:04:49 -04:00
Mike Pennisi 375cf1a40c Correct typo in expected value 2021-07-28 11:02:54 -04:00
rwaldron 77cc528526 Generate tests 2021-07-22 15:31:36 -04:00
Rick Waldron 6e2a29417a
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Function (#3083) 2021-07-22 10:31:45 -07:00
Rick Waldron f37edcb486
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Error (#3081) 2021-07-21 14:26:19 -07:00
Rick Waldron 2c3300312e
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Number (#3089) 2021-07-21 14:25:53 -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 e5fe379157
chore: migrate $ERROR -> throw new Test262Error in test/language/c* (#3097) 2021-07-21 14:02:21 -07:00
Rick Waldron 582d5e57ca
chore: migrate $ERROR -> throw new Test262Error in test/language/a* (#3095) 2021-07-21 13:42:51 -07:00
Rick Waldron d558af3ac0
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/String (#3093) 2021-07-21 13:36:17 -07:00
Michael Dyck 82e0487797 "Normalize" some YAML
In each case, it's the scalar value associated with the "description" key.
Normally in test262, this is written in either:
- block notation (indicated by '>' or '|'), or
- flow notation, single-line, on the same line as the key.

In the cases addressed by this PR, the value is instead written in:
- (1x) flow notation, *multi*-line, or
- (2x) flow notation, single-line, on the line *after* the key.

These are valid YAML, but they're styles that test262 doesn't otherwise use,
so could conceivably confuse people or harnesses.

This PR changes them to block notation.
2021-07-21 16:34:04 -04:00
Leo Balter ae0cf675bf Update test/built-ins/eval/no-construct.js 2021-07-21 16:33:48 -04:00
rwaldron a6a06d263a chore: migrate $ERROR -> throw new Test262Error in test/built-ins/eval 2021-07-21 16:33:48 -04:00
Rick Waldron 826b6ae16f
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Promise (#3091) 2021-07-21 12:48:13 -07:00
Rick Waldron 6230065d07
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/isFinite,isNaN (#3086)
* chore: migrate $ERROR -> throw new Test262Error in test/built-ins/isFinite,isNaN

* Update test/built-ins/isFinite/S15.1.2.5_A2.7.js

Co-authored-by: Leo Balter <leonardo.balter@gmail.com>

* Update test/built-ins/isNaN/S15.1.2.4_A2.7.js

Co-authored-by: Leo Balter <leonardo.balter@gmail.com>

Co-authored-by: Leo Balter <leonardo.balter@gmail.com>
2021-07-21 12:41:06 -07:00
Rick Waldron 1a30a69d12
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/decode*,test/built-ins/encode* (#3080) 2021-07-21 12:37:52 -07:00
rwaldron 488eb365db chore: migrate $ERROR -> throw new Test262Error in harness/ & test/harness 2021-07-21 15:15:55 -04:00
Rick Waldron e4c53bef51
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Math (#3088) 2021-07-21 12:10:32 -07:00
Rick Waldron a101757ca1
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/global (#3084) 2021-07-21 12:09:22 -07:00
Rick Waldron 02733c5af4
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Infinity (#3085) 2021-07-21 12:07:41 -07:00
Rick Waldron 0fce065601
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/JSON (#3087) 2021-07-21 11:57:35 -07:00
Rick Waldron a912ae03a5
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Boolean (#3078) 2021-07-21 11:55:36 -07:00
Rick Waldron 1ec7056f38
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Atomics (#3077) 2021-07-21 11:53:58 -07:00
Rick Waldron 99ab8cce08
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/Array (#3071) 2021-07-21 11:53:23 -07:00
Mike Pennisi 347b651e95 Improve coverage for Intl Locale Info proposal 2021-07-21 13:43:57 -04:00
Leo Balter d19534c3ce Add a few tweaks 2021-07-21 09:21:09 -04:00
Leo Balter b4ff2c76bc Add test for Realm's @@toStringTag 2021-07-21 09:21:09 -04:00
rwaldron c778494922 fix: correction to broken test meta data 2021-07-21 09:21:09 -04:00
rwaldron 45495094e2 fix: updates per review 2021-07-21 09:21:09 -04:00
rwaldron bb0ad134f5 fix: use verifyProperty 2021-07-21 09:21:09 -04:00
rwaldron 29cb47e376 fix: correct capitalization 2021-07-21 09:21:09 -04:00
rwaldron a6b2aecaab fix: use verifyProperty 2021-07-21 09:21:09 -04:00
rwaldron d29fba05f9 fix: add missing newline at end of files, add missing frontmatter 2021-07-21 09:21:09 -04:00