Commit Graph

2989 Commits

Author SHA1 Message Date
Leo Balter 3b2ad0b5d0 Fix tests for new resolve lookup in Promise.allSettled 2019-04-24 17:28:01 -04:00
Leo Balter 24d1b6d59c Fix tests for new resolve lookup 2019-04-24 17:28:01 -04:00
Leo Balter b646cf6365 Add tests for Promise.all|race resolve lookup
Ref tc39/ecma262#1506
2019-04-24 17:28:01 -04:00
Leo Balter f4e60b8f20
Add a case for non extensible targets of proxies GetPrototypeOf (#2122) 2019-04-24 11:49:43 -04:00
Rick Waldron 631b36a734 Refactor module _FIXTURE.js to have no harness dependencies (#2129)
rwaldron in ~/clonez/test262 on master
$ test262_runner test/language/module-code/instn-iee-bndng-{cls,const,fun,gen,let,var}.js
-----------------------------------------------------------------------------------------
V8 (jsvu)

test262-harness --hostArgs='' --hostType=d8 --hostPath=/Users/rwaldron/.jsvu/v8 test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
ChakraCore (jsvu)

test262-harness --hostArgs='' --hostType=ch --hostPath=/Users/rwaldron/.jsvu/chakra test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
JavaScriptCore (jsvu)

test262-harness --hostArgs='' --hostType=jsc --hostPath=/Users/rwaldron/.jsvu/javascriptcore test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
SpiderMonkey (jsvu)

test262-harness --hostArgs='' --hostType=jsshell --hostPath=/Users/rwaldron/.jsvu/sm test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
Moddable (jsvu)

test262-harness --hostArgs='' --hostType=xs --hostPath=/Users/rwaldron/.jsvu/xs test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

rwaldron in ~/clonez/test262 on refactor-fixtures-to-eliminate-harness-file-dependencies
$ test262_runner test/language/module-code/instn-iee-bndng-{cls,const,fun,gen,let,var}.js
-----------------------------------------------------------------------------------------
V8 (jsvu)

test262-harness --hostArgs='' --hostType=d8 --hostPath=/Users/rwaldron/.jsvu/v8 test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
ChakraCore (jsvu)

test262-harness --hostArgs='' --hostType=ch --hostPath=/Users/rwaldron/.jsvu/chakra test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
JavaScriptCore (jsvu)

test262-harness --hostArgs='' --hostType=jsc --hostPath=/Users/rwaldron/.jsvu/javascriptcore test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
SpiderMonkey (jsvu)

test262-harness --hostArgs='' --hostType=jsshell --hostPath=/Users/rwaldron/.jsvu/sm test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed

-----------------------------------------------------------------------------------------
Moddable (jsvu)

test262-harness --hostArgs='' --hostType=xs --hostPath=/Users/rwaldron/.jsvu/xs test/language/module-code/instn-iee-bndng-cls.js test/language/module-code/instn-iee-bndng-const.js test/language/module-code/instn-iee-bndng-fun.js test/language/module-code/instn-iee-bndng-gen.js test/language/module-code/instn-iee-bndng-let.js test/language/module-code/instn-iee-bndng-var.js

Ran 12 tests
12 passed
0 failed
2019-04-17 15:44:02 -04:00
Leo Balter 7e7b9e103d
Port tests from Promise.all to Promise.allSettled (#2124) 2019-04-17 14:17:54 -04:00
Jason Orendorff 1988988a10 Add a couple more tests for ASI with fields. (#2128) 2019-04-17 10:55:01 -04:00
Ms2ger 8e5ab69e8c Initial tests for BigInt.prototype.toLocaleString(). (#2126)
Many of these tests are heavily based on the tests for
Number.prototype.toLocaleString().
2019-04-10 11:11:21 -04:00
Ms2ger c03e14263e Add tests for the datetime-style proposal. (#2125) 2019-04-10 11:09:40 -04:00
Frank Yung-Fong Tang 611919174f correct a test case for updated list patterns (#2123)
I somehow missed the last line last time I proposed https://github.com/tc39/test262/pull/2111
2019-04-03 16:02:22 -04:00
ta7sudan 4bacf25f0d Add test that a Proxy instance with getPrototypeOf trap use instanceof operator on a function (#2107) 2019-04-03 14:14:51 -04:00
Leo Balter 324f2916d3
Merge pull request #2119 from FrankYFTang/patch-2
Update test to allow 'narrow' style for all types
2019-04-02 14:10:24 -04:00
Frank Yung-Fong Tang 183f6d9f95 Update list pattern to sync with CLDR 35 (#2111)
CLDR 35 change "and" to "&" for the list form pattern "short"
see https://unicode.org/cldr/trac/ticket/11520
Also compare
https://www.unicode.org/repos/cldr/tags/release-34/common/main/en.xml
against
https://www.unicode.org/repos/cldr/tags/release-35-beta/common/main/en.xml

Notice the addition of
<listPattern type="standard-short">
<listPatternPart type="start">{0}, {1}</listPatternPart>
<listPatternPart type="middle">{0}, {1}</listPatternPart>
<listPatternPart type="end">{0}, & {1}</listPatternPart>
<listPatternPart type="2">{0} & {1}</listPatternPart>
</listPattern>
2019-04-02 14:09:36 -04:00
Leo Balter 93f2bae981
Merge pull request #2118 from jugglinmike/refactor-for-parsers-with
Refactor `with` statement tests for parsers
2019-04-02 14:08:18 -04:00
Leo Balter cd1df5fae2
Merge pull request #2117 from jugglinmike/refactor-for-parsers-misc-stmts
Refactor misc. statement tests for parsers
2019-04-02 14:07:35 -04:00
Leo Balter 7ae3fe3b21
Merge pull request #2116 from jugglinmike/refactor-for-parsers-literals
Refactor literal tests for parsers
2019-04-02 14:03:25 -04:00
Richard Gibson d62318319f Add tests for string representations of Date objects with negative years (#2114)
* Add tests for string representations of Date objects with negative years

Ref https://github.com/tc39/ecma262/issues/1035
Ref https://github.com/tc39/ecma262/issues/1407
2019-04-02 14:02:35 -04:00
Frank Yung-Fong Tang 03c605fe3c
obsoleted test 2019-04-02 10:00:52 -07:00
Frank Yung-Fong Tang b5d5241dbe
Update test to allow 'narrow' style for all types
Based on the changes in https://github.com/tc39/proposal-intl-list-format/pull/43
We now allow  'narrow' style for all types
2019-04-02 09:57:45 -07:00
Mike Pennisi 9b396d0b0b Refactor `with` statement tests for parsers
The tests for the parsing of the `with` statement were expressed using
eval. This made the tests more complex than necessary and also prevented
the tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text. Rename the files to make each test's purpose more clear.
2019-03-31 22:22:04 -04:00
Mike Pennisi 255338141b Remove redundant tests
These tests are syntactically equivalent to
`test/language/statements/with/12.10.1-7-s.js` and may therefore be
removed without degrading coverage.

While `test/language/statements/with/12.10.1-9-s.js` differs slightly in
the pattern used to enable strict mode, the relevant behavior of the
"use strict" directive prologue is expressly tested via
`test/language/directive-prologue/func-expr-inside-func-decl-parse.js`.
2019-03-31 22:21:41 -04:00
Mike Pennisi 159bcc7bad Improve test precision
Previously, some tests verified two independent concerns simultaneously:
syntactic validity and runtime completion value. The former is relevant
for ECMAScript runtimes and parsers alike, but the latter is only
observable by runtimes.

Express expectations regarding syntactic validity using literal program
code so they can be used by parsers. Maintain the original tests which
rely on eval in order to preserve coverage for statement completion
values.
2019-03-31 21:44:49 -04:00
Mike Pennisi aa4c533d28 Refactor misc. statement tests for parsers
The tests for the parsing of various statement were expressed using
eval. This made the tests more complex than necessary and also prevented
the tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text. Rename the files to make each test's purpose more clear.
2019-03-31 21:44:49 -04:00
Mike Pennisi c9249a8f92 Remove indirect tests
These tests are ostensibly designed to validate parsing of Regular
Expression literals--specifically those which use Unicode escape
sequences to declare flags. However, because the syntax is expressed in
terms of a string literal and then evaluated dynamically, the escape
sequences in use have no bearing on the program code which is ultimately
parsed. These tests therefore do not extend coverage in any meaningful
way and may be removed.
2019-03-31 20:26:12 -04:00
Mike Pennisi e0120fcbd6 Refactor literal tests for parsers
The tests for the parsing of literal values were expressed using eval.
This made the tests more complex than necessary and also prevented the
tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text. Rename the files to make each test's purpose more clear.
2019-03-31 20:19:49 -04:00
Mike Pennisi 937d0b1df1 Remove redundant test
The production under test is also used in the following file:

test/language/literals/numeric/legacy-octal-integer-strict.js

That test expresses the syntax with literal source text, making it
useful for parsers. Remove this test in favor of the other.
2019-03-31 20:14:09 -04:00
jugglinmike d5076e3e8e Add tests for termination of "hashbang" comment (#2104) 2019-03-18 21:23:08 -04:00
Leo Balter 91dc2e635d
Merge pull request #2105 from jugglinmike/refactor-for-parsers-white-space
Refactor white space tests for parsers
2019-03-18 21:22:09 -04:00
Caio Lima fd75ab0097 Adding tests to verify private fields on Proxy Objects (#2099) 2019-03-18 21:18:55 -04:00
Mike Pennisi 66b61a9fd6 Simplify and de-duplicate tests 2019-03-16 21:39:19 -04:00
Mike Pennisi d7fdfe9571 Rename files 2019-03-16 21:34:16 -04:00
Leo Balter 47bf9d1db9
Merge pull request #2100 from leobalter/2033/features-private
Add missing feature tags
2019-03-14 14:51:48 -04:00
Leo Balter 14c3a6e839
Add new tests to observe required leading line terminator (#2102)
* Add new tests to observe required leading line terminator

Ref #2095
2019-03-14 14:51:02 -04:00
Leo Balter 1ce8166433 Use a line terminator for HTMLCloseComments 2019-03-14 13:33:48 -04:00
Leo Balter 3378de1020 Regenerate tests 2019-03-13 15:46:40 -04:00
Leo Balter e227f54d01 Fix assertions previously not reached before
Fix #2049
2019-03-13 15:27:20 -04:00
Leo Balter 8e2a07d2e1
Merge pull request #2096 from anba/asynciter-fx
Test cases for async function and async generator edge-cases
2019-03-13 13:22:46 -04:00
Mathias Bynens 9339f8a5ce Update RegExp Unicode property escape tests per Unicode 12 (#2091)
1cfedb79bb
https://github.com/tc39/ecma262/issues/1467
https://github.com/tc39/ecma262/pull/1468
2019-03-12 04:47:27 -04:00
André Bargull 3428a59ae8 Add test case for tc39/ecma262#1172 2019-03-11 10:34:46 -07:00
André Bargull c843ff0228 Test for abrupt completion of PromiseResolve in AsyncFromSyncIteratorContinuation
Issue: tc39/ecma262#1461
PR: tc39/ecma262#1470
2019-03-11 10:34:44 -07:00
André Bargull 252ca73626 Add test that only explicit undefined return value is awaited in async generator 2019-03-11 10:34:43 -07:00
André Bargull 1111d4996d Add test that return resumption value in async generator is awaited 2019-03-11 10:34:42 -07:00
André Bargull 9d711fdf11 Add test for "constructor" lookups and correct job order in for-await loop 2019-03-11 10:34:40 -07:00
André Bargull bb838d8d6b Add test when IteratorValue argument to AsyncGeneratorYield in yield* throws 2019-03-11 10:34:38 -07:00
André Bargull c822f4c929 Fix existing linting errors, update error phase, and add a new flags linter (#2086) 2019-03-06 12:24:44 -05:00
André Bargull 334e905d2e Add missing license headers in hashbang tests 2019-02-28 06:40:04 -08:00
Leo Balter 262216ed5b Remove other leading empty lines in info blocks 2019-02-25 16:14:22 -05:00
Leo Balter 0fb6388682 Generate tests 2019-02-25 16:14:22 -05:00
Leo Balter 42a8594e56 fix files frontmatter after linting 2019-02-25 16:14:21 -05:00
Michael Maier 21dd214876 fix typo (#2082) 2019-02-25 11:21:04 -05:00
Robin Templeton efa414ae00 Add tests for calling BigInt functions with fewer arguments than required (#2075) 2019-02-19 13:25:25 -05:00
Andy Wingo 298ad6907b Add new test for receiver of toJSON on bigint values (#2079)
Spec link:

  https://tc39.github.io/proposal-bigint/#sec-serializejsonproperty

Thanks to André Bargull for the test:

  https://bugzilla.mozilla.org/show_bug.cgi?id=1528784
2019-02-19 13:23:41 -05:00
Frank Yung-Fong Tang 565d7d5b7d Remove unreasonable expectation 2019-02-14 15:23:30 -05:00
Mike Pennisi cc09757478 Test forward slash in RegularExpressionClassChar 2019-02-14 15:21:42 -05:00
Caio Lima b9f43c0711 Adding destructuring-binding on feature list 2019-02-14 15:14:46 -05:00
Caio Lima b8e92c2341 Added case to verify invalid syntax when using private field on object destructuring 2019-02-14 15:14:46 -05:00
Caio Lima 185e590880 Removed invalid super access tests and created properly syntax error checks 2019-02-14 15:12:48 -05:00
Frank Yung-Fong Tang 642929b2a3 correct value that matches languageAlias in
Per  https://tc39.github.io/ecma402/#sec-canonicalizelanguagetag
6.2.3 CanonicalizeLanguageTag ( locale )
The CanonicalizeLanguageTag abstract operation returns the canonical and case-regularized form of the locale argument (which must be a String value that is a structurally valid Unicode BCP 47 Locale Identifier as verified by the IsStructurallyValidLanguageTag abstract operation). A conforming implementation shall take the steps specified in the “BCP 47 Language Tag to Unicode BCP 47 Locale Identifier” algorithm, from Unicode Technical Standard #35 LDML § 3.3.1 BCP 47 Language Tag Conversion.

And
http://unicode.org/reports/tr35/#BCP_47_Language_Tag_Conversion
"
2. If the BCP 47 primary language subtag matches the type attribute of a languageAlias element in Supplemental Data, replace the language subtag with the replacement value.
If there are additional subtags in the replacement value, add them to the result, but only if there is no corresponding subtag already in the tag.
"
and
https://www.unicode.org/repos/cldr/trunk/common/supplemental/supplementalMetadata.xml
...
<languageAlias type="aar" replacement="aa" reason="overlong"/>
 <!--  [Afar]  -->
...
<languageAlias type="ces" replacement="cs" reason="overlong"/>
 <!--  [Czech]  -->
...
<languageAlias type="heb" replacement="he" reason="overlong"/>
 <!--  [Hebrew]  -->
2019-02-14 15:07:54 -05:00
Frank Yung-Fong Tang ea31876c06 correct values matches type of languageAlias 2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang ac45b6befe add back missed data
get all the test data from constructor-non-iana-canon.js
2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang f2bc5fd0a3 split from likely-subtags-grandfathered.js 2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang 47efdac804 split
Split from intl402/Locale/constructor-non-iana-canon.js
2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang b30d3013dc Remove getCanonicalLocales 2019-02-14 15:07:31 -05:00
Frank Yung-Fong Tang 8f713575e9 Move testing of getCanonicalLocales out of Locale
Remove all the assertion of result of getCanonicalLocales from Locale directory
and put them under Intl/getCanonicalLocales directory.
2019-02-14 15:07:31 -05:00
Leo Balter 6e4b434586 Apply review feedback
- indirect eval
- files renaming
- space after comma
2019-02-14 15:06:08 -05:00
Leo Balter f13a0c5aaf Tests with the raw flag can't use $DONOTEVALUATE(); 2019-02-14 15:06:08 -05:00
Leo Balter 4ca5a94852 Final lint fix on tests 2019-02-14 15:06:08 -05:00
Leo Balter 353cf531d6 Apply review feedback for hashbang 2019-02-14 15:06:08 -05:00
Bradley Farias da8ef2e779 Add tests for Hashbang comments 2019-02-14 15:06:08 -05:00
Caio Lima 4e3e82ee3f Fixing async tests and other NIT changes 2019-02-06 18:18:48 -02:00
Caio Lima 442c3539a3 Added generated tests 2019-02-06 17:18:13 -02:00
Ross Kirsling a066af90ea Remove errant tab character. (#2058) 2019-02-04 12:03:46 -07:00
Timothy Gu bafa05316e Add test for ({* identifier}) (#2060)
Counterpart to language/expressions/object/prop-def-invalid-async-prefix.js.
2019-02-04 12:03:14 -07:00
Jake Champion b4cf5de2e8 Fixed typo, `now` should be `no` (#2061) 2019-02-04 11:59:15 -07:00
Mathias Bynens 9280e1f872 Add tests for %TypedArray%.prototype.sort stability (#2062)
https://github.com/tc39/ecma262/pull/1433
2019-02-04 11:58:05 -07:00
Timothy Gu e39604fa41 Fix missing ) (#2059) 2019-01-31 10:49:27 -07:00
Adrian Heine né Lang 38b1ce107b Add missing tests for B.3.3.4 and B.3.3.5 (#2050) 2019-01-30 14:35:07 -07:00
André Bargull 3efcde4ba7 Add tests for setting class-name in ClassDefinitionEvaluation (#2057)
Spec PR: tc39/ecma262#1372
2019-01-30 14:34:32 -07:00
Leo Balter fb9bb7502f
Merge pull request #2056 from anba/test-bugs-jan2019
Remove invalid private name tests and guard against missing bindings
2019-01-30 08:20:04 -07:00
Frank Yung-Fong Tang c390306921 add check for "line" throws RangeError 2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang 619f7cdad1 fix line number 2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang 806dc970c0 fix line number 2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang 12a044b1d8 fix line number 2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang 39b561c60c fix line number 2019-01-30 10:08:50 -05:00
Frank Tang 0460c52013 Remove "line" tests and ensure error under "line" 2019-01-30 10:08:50 -05:00
Frank Yung-Fong Tang cc9c773c28 rm deprecated grandfather 'cel-gaulish' 2019-01-30 10:08:13 -05:00
Frank Yung-Fong Tang b94ef8cbdc rm deprecated grandfather 'cel-gaulish' 2019-01-30 10:08:13 -05:00
Frank Yung-Fong Tang 49c184eb0f Rm deprecated grandfather 'cel-gaulish' from tests 2019-01-30 10:08:13 -05:00
Frank Yung-Fong Tang dde5d8e546 Fix invalidLanguageTags array 2019-01-30 10:05:07 -05:00
Michael Ficarra 7238135940 add flat/flatMap to Array unscopables 2019-01-30 10:02:35 -05:00
Ross Kirsling afe1b5adc7 Align copyright line with repo license. 2019-01-30 09:57:50 -05:00
Ross Kirsling e855815840 Delete early-catch-var.js 2019-01-30 09:57:50 -05:00
Ross Kirsling 653a068481 Address feedback. 2019-01-30 09:57:50 -05:00
Ross Kirsling 815913a982 Test update for proposed Annex B.3.5 simplification 2019-01-30 09:57:50 -05:00
André Bargull b11def3bf4 Global 'arguments' binding is not present in all runtime environments 2019-01-30 06:53:46 -08:00
André Bargull 3c81164266 Regenerate tests 2019-01-30 06:51:16 -08:00
Frank Yung-Fong Tang 9345023d5f move more cases from valid to invalid (#2047)
This is based on UTS35 in the new spec.
2019-01-28 11:55:57 -05:00
Frank Yung-Fong Tang 9495886d18 Change expectation for x- private lang tag (#2046) 2019-01-28 11:55:20 -05:00
Frank Yung-Fong Tang 6da911b9f2 Fix the rounding issue (#2027) 2019-01-28 11:52:50 -05:00
Frank Yung-Fong Tang e0a07bc650 Correct the expectation for format-fraction-digits-precision (#2025) 2019-01-28 11:42:22 -05:00
Timothy Gu 5d39cad767 Add tests for roundTiesToEven rounding in Math.fround (#2021) 2019-01-28 11:33:14 -05:00
Frank Yung-Fong Tang 5eab51827b Add "numberingSystem" to resolvedOptions() (#2011) 2019-01-28 10:59:54 -05:00
Frank Yung-Fong Tang b337eaf7c7 change irregular grandfather tag to it's canonical (#2048) 2019-01-28 10:59:07 -05:00
Rick Waldron 1068137f00 UpdateExpressions: fix descriptions (#2051) 2019-01-25 14:39:54 -05:00
Adrian Heine 04a41383b5 UpdateExpressions: No early error for arguments and eval in non-strict mode
According to sec-identifiers-static-semantics-assignmenttargettype,
`AssignmentTargetType` of `arguments` and `eval` in non-strict mode code is
`simple`.
sec-update-expressions-static-semantics-early-errors mandates early errors for
`UpdateExpression` if `AssignmentTargetType` is `invalid` or `strict`.
2019-01-25 12:39:02 -05:00
Frank Yung-Fong Tang 116c95d97c Change test for -kn (#1995)
Add test for case of -kn-true
Verify no -kn-true nor -kn-false in the returned locale.
Change expectation per https://github.com/tc39/ecma402/pull/302
2019-01-24 12:45:49 -05:00
Frank Yung-Fong Tang b7c9c6c78b Remove unsupported irregular grandfathered tags. (#2029) 2019-01-24 12:34:03 -05:00
Frank Yung-Fong Tang f39faeef87 Add test for 2.1 CanonicalizeLocaleList ( locales ) (#2040)
See https://tc39.github.io/proposal-intl-locale/#sec-canonicalizelocalelist
2019-01-24 12:28:25 -05:00
Frank Yung-Fong Tang 00d280d231 Remove test of extlang and 4 letter language (#2030)
This is due to the fact we now only accept Unicode Locale Identifier in
UTS 35.
2019-01-24 12:23:30 -05:00
jugglinmike 9fccd9852e Improve coverage for UniqueFormalParameters (#2043)
Previously, the early error prohibiting duplicate entries in
UniqueFormalParameters was only tested in terms of async functions. In
one case, this was misattributed to UniqeFormalParameters and only
enforced for strict mode code.

Extend coverage to the other function-creating productions which include
UniqueFormalParameters (i.e. method definitions and non-async arrow
functions), and update the existing tests to more accurately describe
the source of the error.
2019-01-23 14:07:19 -02:00
Mathias Bynens d7c8a12e68 Remove invalid line terminator tests (#2044)
https://github.com/tc39/test262/pull/2020#issuecomment-456581449
2019-01-23 13:56:03 -02:00
Frank Yung-Fong Tang 4f1155c566 Change tests according to ecma402/pull/278 (#2031) 2019-01-18 14:15:37 -02:00
Nicolò Ribaudo f624ca52d1 Regenerate tests 2019-01-17 21:40:39 +01:00
Leo Balter 5331ca05a2
Merge pull request #2032 from nicolo-ribaudo/patch-2
Update rs-private-getter-alt.case
2019-01-17 17:18:14 -02:00
Frank Yung-Fong Tang 23cb23b852 Move localeMatcher before type and style (#2010)
Sync with https://github.com/tc39/proposal-intl-list-format/pull/36
2019-01-17 17:02:16 -02:00
Nicolò Ribaudo 2be05bc494 Regenerate tests 2019-01-12 00:59:46 +01:00
Nicolò Ribaudo 78a9fb81c6 Regenerate tests 2019-01-08 16:32:35 +01:00
Peter Wong 08d827565b Increase coverage for %TypedArray%.prototype.map with species constructor (#2019) 2019-01-07 12:34:35 -02:00
Ross Kirsling d0f57bff72 Ensure test file YAML blocks don't have a trailing space. (#2018) 2019-01-07 11:40:39 -02:00
Mike Pennisi 3468dad291 Improve coverage for line terminators
Previous commits restructured the tests for line terminators and made
coverage gaps more apparent. Introduce new files to improve coverage.
2019-01-01 14:01:09 -05:00
Mike Pennisi 8175f6c05e Improve name of line terminator tests 2019-01-01 14:01:08 -05:00
Mike Pennisi 6b49b770d8 Refactor LT tests for parsers: token delimiters
The tests for the parsing of line terminators were expressed using eval.
This made the tests more complex than necessary and also prevented the
tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text. Rename the files to make each test's purpose more clear.
2019-01-01 13:48:58 -05:00
Mike Pennisi e515abfa0e Refactor LT tests for parsers: multi-line comment
The tests for the parsing of line terminators were expressed using eval.
This made the tests more complex than necessary and also prevented the
tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text. Rename the files to make each test's purpose more clear.
2019-01-01 13:48:58 -05:00
Mike Pennisi 0ec9dbe3b3 Refactor LT tests for parsers: single-line comment
The tests for the parsing of line terminators were expressed using eval.
This made the tests more complex than necessary and also prevented the
tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text. Rename the files to make each test's purpose more clear.
2019-01-01 13:48:57 -05:00
Mike Pennisi f9ffa71c56 Refactor LT tests for parsers: string
The tests for the parsing of line terminators were expressed using eval.
This made the tests more complex than necessary and also prevented the
tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text.
2019-01-01 13:48:56 -05:00
Mike Pennisi 10fb23049e Refactor LT tests for parsers: RegExp
The tests for the parsing of line terminators were expressed using eval.
This made the tests more complex than necessary and also prevented the
tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text.
2019-01-01 13:48:55 -05:00
Mike Pennisi 9f1d25c9e5 Remove duplicative tests
The behavior asserted by the removed tests is covered by other files.

- test/language/line-terminators/7.3-1.js duplicates
  test/language/line-terminators/S7.3_A1.3.js
- test/language/line-terminators/7.3-2.js duplicates
  test/language/line-terminators/S7.3_A1.4.js
- test/language/line-terminators/7.3-3.js duplicates
  test/language/line-terminators/S7.3_A3.3_T1.js
- test/language/line-terminators/7.3-4.js duplicates
  test/language/line-terminators/S7.3_A3.4_T1.js
- test/language/line-terminators/7.3-9.js duplicates
  test/language/line-terminators/S7.3_A6_T3.js
- test/language/line-terminators/7.3-10.js  duplicates
  test/language/line-terminators/S7.3_A6_T4.js
- test/language/line-terminators/S7.3_A1.1_T1.js duplicates
  test/language/line-terminators/S7.3_A1.1_T2.js
- test/language/line-terminators/S7.3_A1.2_T1.js duplicates
  test/language/line-terminators/S7.3_A1.2_T2.js
- test/language/line-terminators/S7.3_A3.1_T2.js duplicates
  test/language/line-terminators/S7.3_A3.1_T3.js
- test/language/line-terminators/S7.3_A3.2_T3.js duplicates
  test/language/line-terminators/S7.3_A3.2_T1.js
- test/language/line-terminators/S7.3_A3.3_T2.js duplicates
  test/language/line-terminators/S7.3_A3.3_T1.js
- test/language/line-terminators/S7.3_A3.4_T2.js duplicates
  test/language/line-terminators/S7.3_A3.4_T1.js
- test/language/line-terminators/S7.3_A4_T1.js duplicates
  test/language/line-terminators/S7.3_A3.1_T1.js
- test/language/line-terminators/S7.3_A5.1_T1.js duplicates
  test/language/line-terminators/S7.3_A5.1_T2.js
- test/language/line-terminators/S7.3_A5.2_T1.js duplicates
  test/language/line-terminators/S7.3_A5.2_T2.js
2019-01-01 13:38:43 -05:00
Mike Pennisi 23594b8179 Correct tests
These files were authored to test the effect of the carriage return
character, but that character was not present in the source text.

Insert the character as intended by the authors.
2019-01-01 13:38:31 -05:00
Leo Balter f77b930e67 Move non generated files 2018-12-21 15:47:01 -05:00
Leo Balter 2907b7110a Generate tests 2018-12-21 15:47:01 -05:00
Leo Balter 4d40dd5ade Generate tests 2018-12-21 15:47:01 -05:00
Leo Balter d73548b027 Generate tests 2018-12-21 15:47:01 -05:00
Leo Balter e403eea331 Fix false positives 2018-12-21 10:50:23 -05:00
Leo Balter 7375dcb080 Remove duplicates 2018-12-21 10:50:23 -05:00
Leo Balter 258da539bc refactor coverage for flatMap 2018-12-20 13:08:21 -05:00
Leo Balter 02af6a5552 Regenerate tests 2018-12-20 12:53:31 -05:00
Leo Balter 7a1eed0134 Generate tests 2018-12-20 12:53:31 -05:00
Leo Balter 20c38d3396 Expand tests for duplicate lexical names of vardeclarednames in the same statementlist 2018-12-20 12:53:31 -05:00
Leo Balter 3703d2bad1 Generate tests 2018-12-20 12:49:50 -05:00
Leo Balter 6986a9166d Generate tests 2018-12-20 12:49:50 -05:00
Rick Waldron 73705f8801 UpdateExpressions: add necessary changes to tests to reflect latest specification. 2018-12-20 12:48:59 -05:00
Frank Yung-Fong Tang dab8c8983a remove "TypeError: Cannot convert a Symbol value to a string" (#2009) 2018-12-19 22:36:10 -02:00
Leo Balter 46c557247e Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
Peter Marshall b3efcd2f3f Consistently use spaces in features lists (#2000) 2018-12-17 17:00:04 -02:00
Frank Yung-Fong Tang bf6b753dd7 Rename position to index (#1994)
https://github.com/tc39/proposal-intl-segmenter/pull/55
2018-12-15 05:52:31 -05:00
Leo Balter be890421b8
Merge pull request #1985 from mkubilayk/private-method-init-order
test: Ensure private methods are visible from all initializers
2018-12-15 05:50:52 -05:00
⭐caitp⭐ 16ef6ad10d Get rid of the leading empty line in info block (#1993)
This makes v8's _monkeyYaml happy --- without it, the info block never ends, and we fail to parse the `features` key.

An explicit indentation marker isn't used because monkeyYaml doesn't supported it, and adding it might slightly slow things down.

Using PyYAML instead was considered, but after trying it, I don't think it looks viable. [simple test cases](https://gist.github.com/caitp/4a59a67f671907c11051a1b7bd5fdaae)
2018-12-15 05:40:37 -05:00
Peter Marshall c41c491a8a Remove extra spaces from features list (#1996) 2018-12-15 05:36:28 -05:00
Kubilay Kahveci 14c49c0e9d Generate tests 2018-12-10 20:43:09 +00:00
Peter Wong c36bdcfeb3 Update tests for String.prototype.matchAll (#1990)
- Changes associated with spec changes (tc39/proposal-string-matchall#41)
- Update spec comments
- Added test verifying error thrown when `regexp[Symbol.matchAll]` is not callable
- Added test verifying `ToString` is called on `receiver`
2018-12-10 10:53:01 -05:00
Mathias Bynens b2597d060d Add tests for Array.prototype.sort stability (#1977)
https://github.com/tc39/ecma262/pull/1340
2018-12-06 11:56:58 -05:00
André Bargull b62dae4fff Fix various bugs in test cases (#1988) 2018-12-05 15:48:28 -05:00
Rick Waldron 3b09d0e2b5 Eliminate false positives: Intl.* 2018-11-30 11:47:57 -05:00
Rick Waldron 86deb370e7 Eliminate false positives: BigInt64Array, BigUint64Array 2018-11-30 11:37:28 -05:00
Rick Waldron 6e836cea56 Eliminate false positives: BigInt 2018-11-30 11:34:13 -05:00
Rick Waldron d98f3f4d63 Eliminate false positives: String.prototype.trimEnd, String.prototype.trimStart 2018-11-30 09:37:16 -05:00
Rick Waldron 6d2288fe79 Eliminate false positives: Promise.prototype.finally 2018-11-30 09:34:25 -05:00
Rick Waldron 628faa5e06 Eliminate false positives: Object.fromEntries 2018-11-30 09:31:54 -05:00
Rick Waldron 2e18327af2 Eliminate false positives: Array.prototype.flat, Array.prototype.flatMap 2018-11-30 09:27:07 -05:00
Gus Caplan 1df8797a6b add WeakSet to feature list where its used in Set tests 2018-11-28 10:26:57 -05:00
Leo Balter 92a585f04a Assert early error for private names in method definitions 2018-11-28 10:26:13 -05:00
Leo Balter 79fd1b2c76 Generate tests 2018-11-28 10:26:13 -05:00
Leo Balter 7be4e99f80 Generate tests 2018-11-28 10:26:13 -05:00
Ms2ger d857bd6f72 Unified Intl.NumberFormat: Add some initial tests for SetNumberFormatUnitOptions. 2018-11-28 10:25:18 -05:00
Leo Balter 9d5aa7d267 Generate tests 2018-11-26 16:39:43 -05:00
Leo Balter 94a0eaeb8a Generate tests 2018-11-26 16:39:43 -05:00
Leo Balter 9084e6cea9
Merge pull request #1965 from jonco3/master
Fix a couple of minor issues in dynamic-import tests
2018-11-26 16:15:18 -05:00
Ms2ger 1185b5287d Intl.Segmenter: Submit remaining V8 tests. 2018-11-26 15:04:19 -05:00
Gus Caplan 2aacb28bb9 Fix some proxy tests (#1966)
- `Proxy/getOwnPropertyDescriptor/call-parameters.js`
  Fixes a call to `Object.getOwnPropertyDescriptor` without the prop
  param. Not actually a huge problem, as the test wasn't depending on
  it.

- `Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined`
  This test asserted that `function() {}` should throw with the
  following spec step, which is incorrect, as functions are typed as
  `Object` in the spec.
  """
  1. If Type(trapResultObj) is neither Object nor Undefined, throw a
    TypeError exception.
  """
2018-11-26 13:41:13 -05:00
Jon Coppeard 65731d7d96 Simplify default-property-not-set-own.js test by making it not import itself 2018-11-23 11:58:46 +00:00
Jon Coppeard a0fbe4aa9a Fix a couple of minor issues in dynamic-import tests 2018-11-22 17:54:39 +00:00
Rick Waldron e91645c812 Atomics: (bigint) initialize BigInt64Array before calling $262.agent.start(string-of-program-code) 2018-11-20 15:57:39 -05:00
Rick Waldron 8793bf5d57 Atomics: fix running index in notify-with-no-matching-agents-waiting.js
Migrating all tests to this API is necessary to prevent tests from hanging indefinitely when a SAB is sent to a worker but the code in the worker attempts to create a non-sharable TypedArray (something that is not Int32Array or BigInt64Array). When that scenario occurs, an exception is thrown and the agent worker can no longer communicate with any other threads that control the SAB. If the main thread happens to be spinning in the $262.agent.waitUntil() while loop, it will never meet its termination condition and the test will hang indefinitely.

Because we've defined $262.agent.broadcast(SAB) in https://github.com/tc39/test262/blob/master/INTERPRETING.md, there are host implementations that assume compatibility, which must be maintained.
2018-11-20 15:18:14 -05:00
Rick Waldron e4883091b9 Introduce $262.agent.safeBroadcast and migrate Atomics tests.
Migrating all tests to this API is necessary to prevent tests from hanging indefinitely when a SAB is sent to a worker but the code in the worker attempts to create a non-sharable TypedArray (something that is not Int32Array or BigInt64Array). When that scenario occurs, an exception is thrown and the agent worker can no longer communicate with any other threads that control the SAB. If the main thread happens to be spinning in the $262.agent.waitUntil() while loop, it will never meet its termination condition and the test will hang indefinitely.

Because we've defined $262.agent.broadcast(SAB) in https://github.com/tc39/test262/blob/master/INTERPRETING.md, there are host implementations that assume compatibility, which must be maintained.
2018-11-20 15:17:47 -05:00
Ms2ger ba6a483c43 Intl.Segmenter: Fix copy/paste errors in tests for valid options. 2018-11-15 10:04:28 -05:00
Leo Balter 028d76e551 Generate tests 2018-11-14 09:37:26 -05:00
Leo Balter f7f845ce6f Update tests with DONOTEVALUATE 2018-11-14 09:19:15 -05:00
Leo Balter 238c88d4a0 Generate tests 2018-11-13 20:21:32 -05:00
Leo Balter 10dc6ff75a Generate tests 2018-11-13 20:21:32 -05:00
Leo Balter 50601e7aad Generate tests 2018-11-13 20:21:32 -05:00
Leo Balter dec4e5df74
Merge pull request #1801 from mathiasbynens/issue-1634
Move `throw "…"` for negative parsing errors to a helper function
2018-11-13 17:23:09 -05:00
Adrian Heine 4f085d7b8f Fix typo (disinct -> distinct) 2018-11-10 10:50:21 +01:00
Kevin Gibbons 8ed9947df1 add async-iteration flag (#1942) 2018-11-08 15:32:40 -05:00
Rick Waldron 678b6b656b
Merge pull request #1934 from leobalter/private-methods-delete
Add cases for early error deleting private names
2018-11-08 10:15:10 -05:00
Rick Waldron 87202773fd
Merge pull request #1938 from adrianheine/promise
Add missing mandatory Promise.{all,race} argument
2018-11-08 09:32:25 -05:00
Rick Waldron c4cca0b769
Merge pull request #1937 from ryzokuken/dtf-constructor-options-toobject
intl: increase coverage for DateTimeFormat
2018-11-08 09:25:28 -05:00
Rick Waldron b1e15cd326
Merge pull request #1923 from bakkot/less-regex-eval
Reduce uses of `eval` for regex literal syntax
2018-11-08 09:18:48 -05:00
Rick Waldron 9d2ae66ac5
Merge pull request #1936 from ryzokuken/dtf-constructor-options-default
intl: increase coverage for DateTimeFormat
2018-11-08 09:16:51 -05:00
Adrian Heine fc6de76a0d Add missing mandatory Promise.{all,race} argument 2018-11-08 09:37:56 +01:00
Ujjwal Sharma 0fc80cffc5
intl: increase coverage for DateTimeFormat
Increase coverage for the Intl.DateTimeFormat constructor by adding a
test that confirms that ToObject(...) is appropriately called inside the
implementation.
2018-11-08 11:55:52 +05:30
Ujjwal Sharma 46515dcb19
intl: increase coverage for DateTimeFormat
Increase coverage for the Intl.DateTimeFormat constructor by adding a
test that checks for the default values.
2018-11-08 11:37:02 +05:30
Leo Balter ab540afaa1 Generate tests 2018-11-07 18:14:37 -05:00
Adrian Heine né Lang 0475c127c4 Fix some generators feature flags (#1933) 2018-11-07 17:51:23 -05:00
Kevin Gibbons 0160cab518 fix missing/duplicate tests 2018-11-07 13:52:44 -08:00
Adrian Heine né Lang 19fa24ee91 Remove wrong feature tag (#1932) 2018-11-07 16:05:20 -05:00
Adrian Heine né Lang 25da344185 Add missing new.target feature flags (#1929) 2018-11-07 10:13:49 -05:00
Mike Pennisi 41110ab0d4 Correct tests for line terminators within comments
Four tests were documented as asserting the interpretation of line
terminators within multi-line comments, but the source code did not
actually demonstrate this condition.

Introduce new tests that demonstrate the intended functionality and
place them in the correct directory.
2018-11-07 10:12:59 -05:00
Mathias Bynens e558b29b69
Optimize character class escape tests
Previously, these tests simply compared against an equivalent regular expression pattern by generating a large string containing either all code points up to U+FFFF or U+10FFFF, depending on the `u` flag, and then performing:

    str.replace(re, '') === str.replace(otherRe, '');

These two `String#replace` calls can be optimized into a single `RegExp#test` call by following the pattern used in the property escapes tests at https://github.com/mathiasbynens/unicode-property-escapes-tests.
2018-11-06 16:14:14 -08:00
Mathias Bynens 01550ab13a
Sync with https://github.com/bocoup/test262-regexp-generator/pull/1 2018-11-06 15:24:07 -08:00
Kevin Gibbons 2be73ca5ea Add missing `./` to relative path in dynamic import (#1925) 2018-11-06 15:38:18 -05:00
Leo Balter 053aed901a Regenerate tests 2018-11-06 10:35:22 -05:00
Katie Broida f11d0ab3d5 Fix class syntax 2018-11-06 10:35:22 -05:00
Katie Broida 9ccf0a822f Generate tests 2018-11-06 10:35:22 -05:00
Kevin Gibbons e80d8a184a split unicode-property-names.js 2018-11-05 15:34:03 -08:00
Kevin Gibbons 9bc9116656 split unicode-malformed.js 2018-11-05 15:23:03 -08:00
Kevin Gibbons 296f47a008 split non-unicode-property-names.js 2018-11-05 15:12:23 -08:00
Kevin Gibbons de339e98d6 split non-unicode-malformed.js 2018-11-05 14:58:03 -08:00
Leo Balter 69c1efd325 Generate tests 2018-11-05 12:17:14 -05:00
Leo Balter ecb5fcbe33
Merge pull request #1840 from jugglinmike/refactor-for-parsers-var
Refactor variable declaration tests for parsers
2018-11-05 10:12:24 -05:00
Frank Tang 72f1cfa2ab In en/ko/fr 'loose' may break more than normal in new CLDR version 2018-11-02 14:42:37 -04:00
Richard Gibson 5b3d429e28 Move cross-realm tests into their own files 2018-11-02 14:39:23 -04:00
Richard Gibson 6da621f161 Assert error when invoking any %RegExpPrototype%-aware getter on cross-realm RegExp.prototype 2018-11-02 14:39:23 -04:00
Richard Gibson 9e0410814a Test cross-realm use of RegExp source getter in both directions 2018-11-02 14:39:23 -04:00
Richard Gibson 823af01575 Assert error when invoking RegExp source getter on cross-realm RegExp.prototype
RegExp.prototype is not a RegExp, and the algorithm only special-cases
(same-realm) %RegExpPrototype%.
2018-11-02 14:39:23 -04:00
Rick Waldron 314442498e Fix Intl.Segmenter branding.js
Based on: 44fc8165d5/implementation-contributed/v8/intl/segmenter/segment-iterator-ownPropertyDescriptor.js
2018-10-31 12:45:34 -04:00
Frank Tang d38e98d1f3 Fix formatToParts expectation @ RelativeTimeFormat
Fix wrong expectations of
Intl.RelativeTimeFormat.prototype.formatToParts
Add tests to cover "group", "decimal" and "fraction".
2018-10-31 12:38:29 -04:00
Rick Waldron 1fb8e8d22f Merge branch 'segmenter-v8' of git://github.com/Ms2ger/test262 into Ms2ger-segmenter-v8
* 'segmenter-v8' of git://github.com/Ms2ger/test262:
  Intl.Segmenter: Submit batch of V8 tests for the iterators.

# Conflicts:
#	implementation-contributed/v8/intl/segmenter/segment-iterator-ownPropertyDescriptor.js
2018-10-31 12:35:49 -04:00
Mike Pennisi a7deb7bcce Add tests for `arguments` within function body 2018-10-28 16:23:38 -04:00
Rick Waldron f1e362d558 Fix typos; generate tests (#1907) 2018-10-26 17:11:05 -04:00
Kubilay Kahveci b7fb4ade5e Generate tests 2018-10-26 15:12:43 -04:00
Leo Balter 70248aa166 Generate tests 2018-10-26 14:41:35 -04:00
Leo Balter 38be52c525 fix usage of assertFalse
Fixes #1904
2018-10-26 14:34:24 -04:00
Ms2ger 72ab472057 Intl.Segmenter: Submit batch of V8 tests for the iterators. 2018-10-26 12:00:39 +02:00
Leo Balter 1538a93bc1 typo 2018-10-25 13:30:18 -04:00
Leo Balter 09e608edad Add cases for ImportCall syntax reused in CallExpressions 2018-10-25 13:30:18 -04:00
Leo Balter ca87891961 Add case for valid import in a new covered expression 2018-10-25 13:30:18 -04:00
Leo Balter cd9ca65787 Generate tests 2018-10-25 13:30:18 -04:00
Leo Balter 51a0bad7d4 Generate tests 2018-10-25 13:30:18 -04:00
Leo Balter a347df3aae Add tests for invalid expressions with import() with early ReferenceErrors 2018-10-25 13:30:18 -04:00
Leo Balter d641be96b4 Add test for import() used from eval 2018-10-25 13:30:18 -04:00
Leo Balter 54aba308b7 import() must not allow a escape sequence 2018-10-25 13:30:18 -04:00
Ms2ger e847c6ebb0 Intl.Collator: Add a test for search and sort in German.
Ref: https://github.com/tc39/ecma402/issues/256.
2018-10-25 13:08:08 -04:00
Ms2ger 0d07ed06c0 Intl.Segmenter: Submit batch of V8 tests for segment(). 2018-10-25 10:15:11 -04:00
Leo Balter 91bf2474c2 Add more cases for import.meta and new promise instances 2018-10-24 12:27:40 -04:00
Leo Balter bcdc613df7 Add case for custom toprimitive operations 2018-10-24 12:27:40 -04:00
Leo Balter 23e9d7d58e Add another case for indirect module binding update
Also cases for double failing resolutions
2018-10-24 12:27:40 -04:00
Leo Balter aebfbdd9df Add more edgy cases for import()
Also rename test/language/expressions/dynamic-import/assignment-expression/
2018-10-24 12:27:40 -04:00
Ms2ger 0dcec72e34 Intl.ListFormat: Test the order of properties in the result of resolvedOptions(). 2018-10-24 12:22:08 -04:00
Ms2ger b8b93ec421 Intl.RelativeTimeFormat: Test the order of properties in the result of resolvedOptions(). 2018-10-24 12:21:25 -04:00
Rick Waldron 757491d4f8 Corrections to export * specifier paths. Fixes gh-1883 (#1894) 2018-10-24 12:17:56 -04:00
Ms2ger e1be2c8f8b Intl.Segmenter: Add some tests for the constructor. 2018-10-24 10:13:31 -04:00
Ms2ger 52dfda893d Intl.Segmenter: Test the order of properties in the result of resolvedOptions(). 2018-10-24 09:54:54 -04:00
Rick Waldron f247a5fe09 Revert "Improve assertion handling when comparison causes failure via coercion"
This reverts commit c49c356744.
2018-10-23 17:21:17 -04:00
Rick Waldron c49c356744 Improve assertion handling when comparison causes failure via coercion 2018-10-23 17:00:47 -04:00
Ms2ger 480f11f612 Intl.Segmenter: API tests for the segment method. 2018-10-23 16:18:05 -04:00
André Bargull c3e384c8c5 Add initial tests for import.meta (#1888)
Fixes #1342
2018-10-23 15:23:08 -04:00
Mathias Bynens 8869799c6d Rebase, regenerate, and update tests 2018-10-23 13:51:17 +02:00
Mathias Bynens b9daa57dcb Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
Mathias Bynens e3feffb01e Move `throw "…"` for negative parsing errors to a helper function
Closes #1634.
2018-10-23 13:51:16 +02:00
Leo Balter 3936950114 Fix test previously invalid for strict mode 2018-10-19 12:43:39 -04:00