90 Commits

Author SHA1 Message Date
Leo Balter
ec1d7ccc6f Rename imported to namespace 2018-10-11 11:09:48 -04:00
Leo Balter
1c119e323e Generate tests 2018-10-11 11:09:48 -04:00
Leo Balter
dc2da1558f Add tests for the resolved namespace obj 2018-10-11 11:09:48 -04:00
Leo Balter
070198fbad Generate tests 2018-10-11 11:09:47 -04:00
Leo Balter
f8fda5b6d2 Remove nested-with template for usage/catch tests
This should be well covered in the syntax templates and opens the path for tests with module code restrictions
2018-10-11 11:09:47 -04:00
Leo Balter
b0ec060e62 Add more cases for Dynamic Imports usage
- Add cases for mixing module and script code
- Rename test case from return promise to thenable
- Fix script code case with valid loaded fixture
- Add a test to assert a promise return
- Add case for specifier toString rejection
- Add case for specifier toString
- Test Assignment expression abrupt completion
- Test Promise return
2018-10-11 11:09:47 -04:00
Leo Balter
3450ed544e fix linting 2018-10-08 13:32:28 -04:00
Leo Balter
874f508077 Generate tests 2018-10-08 11:41:21 -04:00
Leo Balter
9e4fc1b1c2 Generate tests 2018-10-08 11:05:09 -04:00
Leo Balter
3589fa9d82 Generate Tests 2018-10-05 17:17:41 -04:00
Leo Balter
8e28caa214 Add more coverage to dynamic import
- Add cases for invalid syntax
- Add valid cases
- nested imports
- add non existent file case
- Fix cases and templates to use a full importcall expr token
- add case for call expression position
- remove unnecessary module flag from templates
- Add templates for nested with
2018-10-05 17:17:32 -04:00
Leo Balter
18f1225570 Generate tests 2018-10-05 10:33:48 -04:00
Leo Balter
d92d35605b missing fixup 2018-10-04 16:16:35 -04:00
Leo Balter
292fd0c956 fix test in module/script modes 2018-10-04 16:16:35 -04:00
Leo Balter
7f69f1c6bf Generate tests 2018-10-04 16:16:35 -04:00
Leo Balter
dac8fd4975 Recover Fixture files 2018-10-04 16:16:35 -04:00
Leo Balter
b13b5b9843 Regenerate tests 2018-10-04 16:16:35 -04:00
Leo Balter
724e3d7ccb Regenerate tests 2018-10-04 16:16:35 -04:00
Leo Balter
7347b2a121 fix fixtures folders and nit picking on tests 2018-10-04 16:16:35 -04:00
Leo Balter
0a18f4068b remove duplicates, fix fixture folder 2018-10-04 16:16:35 -04:00
Leo Balter
1846d33c29 Regenerate tests 2018-10-04 16:16:35 -04:00
Leo Balter
54689ffa69 Update checklist and other fixups 2018-10-04 16:16:35 -04:00
Leo Balter
e8305a7920 Regenerate tests 2018-10-04 16:16:35 -04:00
Leo Balter
24d1a78015 fix folders to fixtures 2018-10-04 16:16:35 -04:00
Leo Balter
bc13b8a7c1 Regenerate tests 2018-10-04 16:16:35 -04:00
Leo Balter
fdcb06e093 move catch tests to a separate folder 2018-10-04 16:16:35 -04:00
Leo Balter
6150f24d25 Regenerate tests 2018-10-04 16:16:35 -04:00
Rick Waldron
90e69a3b59 Dynamic Imports: eval export default class imports 2018-10-04 16:16:35 -04:00
Rick Waldron
a3eef3f39f Generate tests 2018-10-04 16:16:35 -04:00
Rick Waldron
c77078809c Dynamic Imports: initial cases, templates, non-generated tests and fixtures 2018-10-04 16:16:35 -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
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
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
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
André Bargull
cbe12a53e1 Remove duplicate esids 2018-01-25 13:59:37 -05:00
Rick Waldron
bbf3301ff4 Fix: es6id -> esid sec-html-like-comments 2018-01-10 16:01:21 -05:00
Mike Pennisi
e6d674ef7a Rename negative test "phase" for module resolution 2018-01-05 15:17:51 -05:00
Mike Pennisi
136110378b Rename negative test "phase" for parsing
Early errors may result from parsing the source text of a test file, but
they may also result from parsing some other source text as referenced
through the ES2015 module syntax. The latter form of early error is not
necessarily detectable by ECMAScript parsers, however. Because of this,
the label "early" is not sufficiently precise for all Test262 consumers
to correctly interpret all tests.

Update the "phase" name of "early" to "parse" for all those negative
tests that describe errors resulting from parsing of the file's source
text directly. A forthcoming commit will update the remaining tests to
use a "phase" name that is more specific to module resolution.
2018-01-05 15:17:50 -05:00
Rick Waldron
92a2621901 Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
Rick Waldron
a801bdf786 Fix frontmatter 2017-12-19 15:42:57 -05:00
André Bargull
3ce00cf5e3 Add tests for uninitialized bindings when accessed through Object methods and for-in 2017-12-19 15:42:56 -05:00
Leo Balter
a488271931
Update class fields tags in non-generated test files 2017-11-28 12:59:27 -05:00
Leo Balter
076ecc38c6
Fix bugs reported in #1338 (#1339)
* Accessing `ta[0]` throws a TypeError.

* Fix array indices starting at 0 and property references

* Fix classfields templates for properly checking static propnames.

* Generate tests

* `assert.equal` is not defined

* Add missing includes

* Generate tests

* typo s/Avalue/42/

* fix whitespace

* Add missing var for strict mode

* Expand generated class fields tests for forbidden computed property name values

Ref https://github.com/tc39/test262/pull/1339#issuecomment-342830243

* derived classes have access to private names in base classes, if private names are in scope
2017-11-10 15:06:00 -05:00
Valerie R Young
7572c0c36b Classfields: simple success case for nested classes private name reference 2017-10-29 20:46:09 -04:00
Valerie R Young
54f4d02aa6 Classfields: simple early errors test for privatename references in scripts 2017-10-29 20:46:09 -04:00
Leo Balter
f8f5a7a1e7
Add missing generators flags 2017-10-26 19:04:57 -04:00
Leo Balter
2bee5df77a Add missing Symbol.iterator feature flags 2017-09-08 10:13:50 -04:00
Georg Neis
fd5054f463 Relax [[DefineOwnProperty]] on module namespace exotic objects.
See https://github.com/tc39/ecma262/pull/858.
2017-08-07 10:50:02 -04:00