Commit Graph

803 Commits

Author SHA1 Message Date
Leo Balter 20217a7eeb add cases for static method names named prototype 2018-09-10 11:20:40 -04:00
Leo Balter ef591384d8 Remove old duplicate tests 2018-09-10 11:20:40 -04:00
Leo Balter ee9739c699 Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter af9bcfef5f Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter 92c83dfbd4 Add cases for non-ctor methods containing direct super 2018-09-10 11:20:40 -04:00
Leo Balter bf5661bf60 Generate tests 2018-09-10 11:20:40 -04:00
Leo Balter 46e03c3875 add generation cases for special methods with propname constructor 2018-09-10 11:20:40 -04:00
Leo Balter eae139d8ef Generate tests 2018-09-04 17:10:51 -04:00
Leo Balter 2c9583a309 Generate tests 2018-09-04 12:40:30 -04:00
Leo Balter a4faf41ed6 Generate tests 2018-08-31 15:22:43 -04:00
Leo Balter fa36c45083 Fix generated tests 2018-08-21 16:32:10 -04:00
Leo Balter dbcd388154 Remove duplicate of test/language/statements/class/fields-privatename-constructor-err.js 2018-08-21 16:24:37 -04:00
Leo Balter e25e53c0a7 Fix tests for #constructor 2018-08-21 16:11:27 -04:00
Leo Balter 45a31876e7 Fix tests for computed names in class fields - ctor and prototype 2018-08-21 15:50:39 -04:00
Leo Balter 3690d98e27 Generate tests 2018-08-21 12:47:19 -04:00
Leo Balter dacc69a066
Generate tests 2018-08-21 12:17:05 -04:00
Leo Balter 9a7fa8cb91 Generate tests 2018-08-20 17:12:40 -04:00
Leo Balter de1bbd65c8 Generate tests 2018-08-20 16:38:54 -04:00
Leo Balter 96809308fd Generate tests 2018-08-20 16:38:54 -04:00
Leo Balter c5a1a4a24b Generate tests 2018-08-20 16:38:54 -04:00
Rick Waldron 331a3964d5 Generate tests 2018-08-20 16:38:53 -04:00
Rick Waldron aee9dc163e Generate tests 2018-08-20 16:38:53 -04:00
Rick Waldron f222b94f2a Generate tests 2018-08-20 16:38:53 -04:00
Rick Waldron ad9fd16bd1 Class Fields: convert .js file to .case 2018-08-20 16:38:52 -04:00
Rick Waldron 1466650ca3 Class Fields: add private name propname errors 2018-08-20 16:38:52 -04:00
Rick Waldron 734544272b Class Fields: convert propname-error into non-generated to avoid creating erroneous tests where restrictions do not align. 2018-08-20 16:38:52 -04:00
Rick Waldron 3996741ca0 Class Fields: Remove templates that cause erroneous tests to be created. 2018-08-20 16:38:52 -04:00
Rick Waldron 90e8859cdd Class Fields: Updating frontmatter 2018-08-20 16:38:52 -04:00
Valerie R Young 5d014bdfba classfields: field definition abrupt completion tests
# Conflicts:
#	test/language/statements/class/classelementname-abrupt-completion.js
#	test/language/statements/class/fielddefinition-initializer-abrupt-completion.js
#	test/language/statements/class/super-fielddefinition-initializer-abrupt-completion.js
2018-08-20 16:38:52 -04:00
Rick Waldron 588459fc34 Generate tests 2018-07-25 12:19:29 -04:00
Rick Waldron 64f219b666 Features: run feature detector to verify newly added feature flags 2018-07-25 12:16:49 -04:00
Thomas Wood 2d4ac25fa0 Add feature flags for `new.target`
Additionally removed the `arrow-function` feature for
test/language/eval-code/direct/new.target-fn.js as it is not testing
arrow-functions, but they are mentioned in the preamble.
2018-07-24 20:31:35 +01:00
Leo Balter d1ad8e8fbc
fix features tag (#1647) 2018-07-24 01:15:26 -04:00
Mike Pennisi ccaa9571ea Refactor string literal test for parsers
Thsi test for the parsing of string literals was expressed using `eval`.
This made the test more complex than necessary and also prevented the
test from providing value to ECMAScript parsers.

Remove the use of `eval` and instead express the expectation with
literal source text.
2018-07-13 16:17:19 -04:00
Mike Pennisi 4f1e628107 Remove erroneous test
This test is technically valid because it does trigger a SyntaxError in
conforming runtimes. However, it was authored and documented to test
LegacyOctalEscapeSequence, but due to an apparent typo, it actually
demonstrates an unrelated parsing error.

Because 'legacy-octal-escape-sequence-stricts.js' sufficiently tests the
restriction on LegacyOctalEscapeSequence, remove this test rather than
correct it.
2018-07-13 16:17:19 -04:00
Mike Pennisi 4e1a860abd Remove redundant test
This test for string literals asserts the restriction on
LegacyOctalEscapeSequence in strict mode. It is not sufficiently
distinct from the test 'legacy-octal-escape-sequence-stricts.js' to
warrant inclusion in the test suite. Because that test includes much
more thorough documentation, it should be preferred.
2018-07-13 16:17:19 -04:00
Mike Pennisi 2facd45c76 Remove redundant and indirect tests
A number of tests for string literals assert the restriction on
LegacyOctalEscapeSequence in strict mode code and differ only in the
escape sequence under test. Although each is valid, none of the escape
sequences are sufficiently distinct from the test
'legacy-octal-escape-sequence-stricts.js' to warrant their inclusion in
the test suite. Because that test's use of literal code makes it
consumable by parsers and because that test includes much more thorough
documentation, it should be preferred.

Summary of LegacyOctalEscapeSequences under test in the removed files:

    test/language/literals/string/7.8.4-10-s.js: eval('var x = " \\10 ";');
    test/language/literals/string/7.8.4-11-s.js: eval('var x = "\\16";');
    test/language/literals/string/7.8.4-12-s.js: eval('var x = "\\17";');
    test/language/literals/string/7.8.4-13-s.js: eval('var x = "\\30";');
    test/language/literals/string/7.8.4-14-s.js: eval('var x = "\\31";');
    test/language/literals/string/7.8.4-15-s.js: eval('var x = "\\37";');
    test/language/literals/string/7.8.4-16-s.js: eval('var x = "\\400";');
    test/language/literals/string/7.8.4-17-s.js: eval('var x = "\\411";');
    test/language/literals/string/7.8.4-18-s.js: eval('var x = "\\43a";');
    test/language/literals/string/7.8.4-19-s.js: eval('var x = "\\463";');
    test/language/literals/string/7.8.4-2-s.js:  eval('var x = "\\1";');
    test/language/literals/string/7.8.4-20-s.js: eval('var x = "\\474";');
    test/language/literals/string/7.8.4-21-s.js: eval('var x = "\\77";');
    test/language/literals/string/7.8.4-22-s.js: eval('var x = "\\777";');
    test/language/literals/string/7.8.4-23-s.js: eval('var x = "\\000";');
    test/language/literals/string/7.8.4-24-s.js: eval('var x = "\\001";');
    test/language/literals/string/7.8.4-25-s.js: eval('var x = "\\106";');
    test/language/literals/string/7.8.4-26-s.js: eval('var x = "\\207";');
    test/language/literals/string/7.8.4-27-s.js: eval('var x = "\\377";');
    test/language/literals/string/7.8.4-28-s.js: eval('var x = "\\376";');
    test/language/literals/string/7.8.4-29-s.js: eval('var x = "\\3760";');
    test/language/literals/string/7.8.4-3-s.js:  eval('var x = "a\\4";');
    test/language/literals/string/7.8.4-32-s.js: eval('var x = "\\1\\1";');
    test/language/literals/string/7.8.4-33-s.js: eval('var x = "\\1\\2\\7";');
    test/language/literals/string/7.8.4-4-s.js:  eval('var x = "z\\7";');
    test/language/literals/string/7.8.4-5-s.js:  eval('var x = "\\00a";');
    test/language/literals/string/7.8.4-6-s.js:  eval('var x = "\\01z";');
    test/language/literals/string/7.8.4-7-s.js:  eval('var x = "a\\03z";');
    test/language/literals/string/7.8.4-8-s.js:  eval('var x = " \\06";');
2018-07-13 16:17:19 -04:00
Mike Pennisi 3383ba9c1b Extend metadata with `esid` 2018-07-13 16:09:19 -04:00
Mike Pennisi 6e9cf3765b Add tests for parsing behavior
Test262 already includes tests to ensure the correct runtime semantics
for these forms. Add equivalent tests designed to verify that the
equivalent parsing behavior is also observed.
2018-07-13 16:09:19 -04:00
Mike Pennisi a9cd42018f Simplify tests for runtime semantics
Verify runtime semantics through assignment to an unresolvable
reference, reducing the complexity of tests that previously relied on
the semantics of the `eval` function.
2018-07-13 16:09:18 -04:00
Mike Pennisi 0618779cb8 Normalize coverage
Promote consistency in coverage by adding new tests that correspond to
those that were authored previously.
2018-07-13 16:09:18 -04:00
Mike Pennisi 0a5b378cff Rename tests for clarity 2018-07-13 14:08:54 -04:00
André Bargull 06c2f01901 Fix multiple test bugs and remove incomplete or no longer valid tests (#1616) 2018-06-29 18:52:53 -04:00
Valerie Young 2fa8fc40e4 Tests for `export * as ns from 'foo'` syntax (#1498) 2018-06-28 15:46:36 -04:00
Leo Balter 9bddfaea22
Merge pull request #1572 from rwaldron/super-property-reference
SuperProperty evaluation order
2018-06-22 16:42:22 -04:00
Rick Waldron 2f201e5561 TemplateMap: split TemplateMap cache test into own file 2018-06-07 23:12:16 -04:00
Rick Waldron 9388d6ad70
Merge pull request #1581 from WebReflection/master
GetTemplateObject with a unique template object
2018-06-07 22:50:25 -04:00
Rick Waldron f578b8754f NumericLiteralSeparator: Update "early" => "parse" in negative tests. Fixes gh-1512 2018-06-07 22:44:03 -04:00
Andrea Giammarchi 7c9469115e GetTemplateObject with a unique template object 2018-06-07 11:31:07 +02:00
Rick Waldron ecea13b04a SuperProperty evaluation order, must first call super()
- Invalid: super[super()]. Expects super() to be called prior to super property access.
2018-06-04 10:52:31 -04:00
Rick Waldron 85a4484c52 SuperProperty evaluation order
super[super()] should evaluate and resolve super() first
2018-05-24 15:10:35 -04:00
Rick Waldron 8579ac0356
Merge pull request #1565 from gibson042/2018-05-LineContinuation
Add tests for LineContinuation in StringLiteral
2018-05-21 15:45:12 -04:00
Richard Gibson 3758f6a97c Add tests for LineContinuation in StringLiteral 2018-05-21 12:19:48 -04:00
Caio Lima ebe393172f Adding prefixed string to compare with BigInt 2018-05-20 20:24:13 -03:00
Rick Waldron 1631fb76d1
Merge pull request #1551 from hotsphink/numident
Add test for numeric literal followed by identifier
2018-05-10 14:14:31 -04:00
Steve Fink fab08ab7a2 Add test for numeric literal followed by identifier 2018-05-09 15:45:52 -07:00
Rick Waldron ffc46a667c BigInt: cleanup assertion messages (#1549) 2018-05-09 18:14:09 -03:00
Rick Waldron c38bf8ba23
Merge pull request #1546 from caiolima/big-int-relational-symbol
Added tests for relational comparison among BigInt and Symbol
2018-05-09 15:42:10 -04:00
Caio Lima c93caac30b Updating error messages 2018-05-08 22:58:18 -03:00
Leo Balter 524e8e43a5
Merge pull request #1544 from gibson042/proposal-json-superset
Tests for proposal-json-superset
2018-05-08 15:33:33 -03:00
Richard Gibson dbc0c6b1cc Add json-superset feature 2018-05-08 14:19:44 -04:00
Caio Lima 5cacfaf64b Added tests of relational comparison among BigInt and boolean 2018-05-08 10:06:29 -03:00
Caio Lima 340dfba5dc Added tests for relational comparison among BigInt and Symbol 2018-05-08 09:34:34 -03:00
Richard Gibson ba124c31b2 Add tests for non-ASCII LineTerminator characters in string literals 2018-05-07 16:59:55 -04:00
Richard Gibson 48b4aa66af Remove no-longer-valid tests 2018-05-07 16:58:42 -04:00
Rick Waldron 3b7a456ddb
Merge pull request #1532 from anba/compat-new
Various test cases for cross-browser compliance bugs
2018-05-03 14:19:40 -04:00
André Bargull b552dad5cb Various test cases for cross-browser compliance bugs 2018-05-03 09:27:27 -07:00
Mike Pennisi e01a560648 Remove superfluous code from negative syntax tests
Because these files contain syntax errors, the code they contain is not
intended to be executed, and the runtime semantics are therefore
irrelevant. Simplify the files by removing the unnecessary code.
2018-04-27 22:04:23 -04:00
Rick Waldron 64cdeaf1ed Remove erroneous remnant $ERROR calls from negative SyntaxError tests 2018-04-26 13:39:36 -04:00
Rick Waldron 0b36f27000 Features: add missing "destructuring-binding" features; remove "default-arg" (#1521) 2018-04-24 14:52:19 -04:00
André Bargull a1faccdd41 Fix various test bugs
- "CannotSuspendMainAgent" feature was changed to "CanBlockIsFalse" flag
- Move annex-b tests into annex-b directory
- Update variable names in nonshared-int-views.js tests
- Move getReport() call in nan-for-timeout.js to avoid iloop
- Update BigInt constructor to match new semantics (tc39/proposal-bigint#138)
2018-04-24 09:52:35 -07:00
Rick Waldron a1a4e2b1b8 Corrections to sec-web-compat-evaldeclarationinstantiation and sec-web-compat-functiondeclarationinstantiation tests. Fixes gh-1364 (#1509) 2018-04-18 16:54:30 -04:00
Robin Templeton 34e7102b78 bigint comparison tests (#1513)
* relational comparison of bigint and string values

* additional tests for strings converted to NaN
2018-04-18 15:33:00 -04:00
Rick Waldron ee3a57ca23
Merge pull request #1507 from bakkot/field-ref-error
Add test for proposal-class-fields#92
2018-04-11 13:49:54 -04:00
Daniel Ehrenberg 73b8d9c773 Revert "Revert "Additional tests for QuantifiableAssertion" (#1458)" (#1459)
This reverts commit 173e98e00b.
2018-04-09 17:35:13 -04:00
Kevin Gibbons 49039979c8 Add test for double super for proposal-class-fields#92 2018-04-09 12:02:22 -07:00
Kevin Gibbons dba8d7cdc7 Add test for proposal-class-fields#92 2018-04-06 11:24:15 -07:00
Valerie 1e1d503c1b numeric literal seperators: test change in CodePoint production (#1464) 2018-02-28 13:58:22 -05:00
Daniel Ehrenberg 0b54908dba Add test for eval-in-function template tags (#1457)
Thanks to Caitin Potter for highlighting this test case.
2018-02-27 17:46:44 -05:00
Leo Balter 173e98e00b
Revert "Additional tests for QuantifiableAssertion" (#1458) 2018-02-26 10:12:09 -05:00
Daniel Ehrenberg 5b63d98a73
Merge pull request #1456 from littledan/quantifiedassertion
Additional tests for QuantifiableAssertion
2018-02-26 15:35:49 +01:00
Daniel Ehrenberg f9a0f05850 Additional tests for QuantifiableAssertion
- Tests that lookahead and lookbehind are not extended to
  QuantifiableAssertion, as in https://github.com/tc39/ecma262/pull/1102
- Additional tests verifying some more combinations of cases for
  QuantifiableAssertion being invalid in Unicode mode.

Based on the tests in https://chromium-review.googlesource.com/c/v8/v8/+/926102

These tests pass on V8 (if the throw for early errors is removed to
work around a V8 issue where RegExps don't have early errors).
2018-02-26 12:34:39 +01:00
Valerie R Young 7882fbfae3 async-iteration: move existing throw/return tests to AsyncGeneratorPrototype dir 2018-02-22 13:34:08 -05:00
Valerie R Young 0e99fa8a3a async-iteration: add esid for 'esid: pending' tests 2018-02-22 13:34:08 -05:00
Jeff Walden a19993e269 Add tests for the behavior of INT32_MIN (-2147483648) as exponent with the exponentiation operator and with Math.pow (which shares the same core algorithm in the spec, but might be differently implemented in actual implementations). (#1445) 2018-02-14 17:02:39 -05:00
Adrian Heine 2fb8eca677 Fix typo intialize(r) -> initialize(r) 2018-02-12 10:05:52 -05:00
Yusuke Suzuki 18c1e799a0 Prefer spaces to tabs if it is not syntax related tests
This patch changes tabs to spaces for newly added tests.
2018-02-08 13:32:42 -05:00
Rick Waldron 12797840ae features: [numeric-separator-literal] 2018-02-08 11:13:54 -05:00
Leo Balter 53c00784b6 Revert "Revert "Tests for NumericSeparatorLiteral. Closes gh-1051" (#1188)"
This reverts commit 8422147c17.
2018-02-08 11:13:54 -05:00
Daniel Ehrenberg d5fc8b25af Test for change to cache templates by site, not contents (#972)
* Test for change to cache templates by site, not contents

These tests are against a specification change based on discussion in
https://github.com/tc39/ecma262/issues/840

The tests here passed on SpiderMonkey but failed on other
implementations, which implement the current specification.

* Add a test that caching is by source location, not function identity

* Update existing tests to reference the spec properly
2018-02-05 14:40:19 -05:00
Leo Balter 31dfa8761a
Merge pull request #1404 from jugglinmike/refactor-for-parsers-function
Refactor function literal tests for parsers
2018-02-05 11:44:03 -05:00
Mike Pennisi 1d96e25784 Refactor function literal tests for parsers
A number of tests for the parsing of function literals 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` in the relevant tests and instead express the
expectations with literal source text.
2018-02-03 23:25:41 -05:00
Mike Pennisi 6dafe71f1a Improve file names 2018-02-03 23:15:40 -05:00
Zirak 1bcb4fc2ef Fix typo in comments (Standart -> Standard) 2018-01-29 09:51:13 -05:00
Mike Pennisi baa5d94bc5 Refactor object initializer tests for parsers
A number of tests for the parsing of object initializers 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` in the relevant tests and instead express the
expectations with literal source text.
2018-01-25 14:01:06 -05:00
Josh Wolfe 4455b1017e remove unnecessary method syntax 2018-01-25 14:00:43 -05:00
Josh Wolfe 9d066a8181 Order of evaluation tests for infix numeric operators 2018-01-25 14:00:43 -05:00
Josh Wolfe 186ec5d177 BigInt and Number type mismatch tests for infix operators 2018-01-25 14:00:10 -05:00
André Bargull cbe12a53e1 Remove duplicate esids 2018-01-25 13:59:37 -05:00
André Bargull f717982c94 Remove unused includes 2018-01-25 13:59:37 -05:00