78 Commits

Author SHA1 Message Date
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
Mike Pennisi
81d00def42 Force "early error" tests to fail if evaluated
This pattern makes expectations more explicit by making test files more
literal.
2017-06-28 11:24:36 -04:00
André Bargull
3291704eb2
Fix multiple test errors
Tests doesn't use async functionality and don't call $DONE, so remove
"async" flag:
- src/params/error/async-gen-named-func-expr.template
- test/language/expressions/async-generator/params-named-dflt-abrupt.js
- test/language/expressions/async-generator/params-named-dflt-ref-later.js
- test/language/expressions/async-generator/params-named-dflt-ref-self.js

Intl.PluralRules.prototype is no longer a Intl.Prototype instance:
- test/intl402/PluralRules/prototype/prototype.js

Intl.PluralRules throws an error when called as a function:
- test/intl402/PluralRules/undefined-newtarget-throws.js

Module namespace objects call OrdinaryDelete for symbol properties:
- test/language/module-code/namespace/internals/delete-non-exported.js

Async generators no longer retrieves "done" property twice:
- src/async-generators/yield-star-async-next.case
- src/async-generators/yield-star-async-return.case
- src/async-generators/yield-star-async-throw.case

Minor units of CLF is 4, so we need to test with maximumFractionDigits=3
to get an error:
- test/intl402/NumberFormat/dft-currency-mnfd-range-check-mxfd.js

DateTimeFormat.prototype.formatToParts length property was changed from
0 to 1:
- test/intl402/DateTimeFormat/prototype/formatToParts/length.js

minimumSignificantDigits and maximumSignificantDigits properties are
only retrieved once:
- test/intl402/NumberFormat/11.1.1_32.js
2017-04-06 15:30:13 -04:00
Leo Balter
763649d268 Fix runtime error tests previously marked as early errors (#881)
Fixes #877
Ref #872
2017-03-13 11:09:04 -04:00
André Bargull
2871a9c8ed Update tests for cyclic module dependencies through export* (#868)
Cyclic dependencies are no longer an error per
https://github.com/tc39/ecma262/pull/783.
2017-03-01 16:59:53 -05:00
André Bargull
6b09ad0459 Update YAML frontmatter of some tests to be compatible with monkeyYaml (#862) 2017-03-01 16:35:37 -05:00
André Bargull
204266794c Fix various test issues (#840)
test/annexB/built-ins/Date/prototype/setYear/time-clip.js
test/built-ins/Date/prototype/setFullYear/new-value-time-clip.js
test/built-ins/Date/prototype/setMonth/new-value-time-clip.js
- Don't try to test time-clip at the end points, because this is near
impossible to get right (needs to consider time zone offset, dst, local
mean time because of Africa/Monrovia, etc.).

test/built-ins/DataView/prototype/setFloat64/detached-buffer-after-toindex-byteoffset.js
test/built-ins/DataView/prototype/setInt16/detached-buffer-after-toindex-byteoffset.js
- Wasn't update to expect RangeError

test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js
- Change ClassDeclaration -> ClassExpression to get completion value

test/built-ins/Function/prototype/toString/AsyncFunction.js
- Add missing \n in expected string
- Also fixed in gh-847

test/built-ins/global/global-object.js
- Add 'var' to make test pass in strict-mode

test/language/block-scope/syntax/redeclaration-in-block/attempt-to-redeclare-function-declaration-with-function-declaration.js
- This is allowed in sloppy mode when Annex B is implemented

test/language/expressions/async-generators/expression-yield-as-statement.js
- Fix calls to then()

test/language/module-code/namespace/internals/own-property-keys-binding-types.js
test/language/module-code/namespace/internals/own-property-keys-sort.js
- Tests weren't updated after removal of @@iterator from module
namespace objects

test/language/module-code/namespace/internals/set-prototype-of-null.js
- Fix syntax error

test/language/statements/async-function/early-errors-no-async-generator.js
- No longer valid now that async iteration proposal is at stage 3
2017-02-07 11:10:56 -05:00
Kevin Gibbons
a73221eb8f mark namespace object toStringTag as non-configurable (#811) 2016-12-28 14:16:24 -08:00
Adam Klein
b5edd1256c Add test for setting a module namespace object's prototype to null (#805)
The behavior changed from returning false to true in
https://github.com/tc39/ecma262/commit/13906140a
2016-12-28 10:58:15 -08:00
Kevin Gibbons
03453d6098 Remove tests for module namespace iterator (#810) 2016-12-28 10:57:46 -08:00
Mike Pennisi
7d4b1d28ae Re-format tests for SyntaxErrors
Authored via the following command:

   $ find test -type f -print0 | \
       xargs -0 sed \
         -i 's/^\(\s*\)negative:\s*SyntaxError\s*$/\1negative:\n\1  phase: early\n\1  type: SyntaxError/g'
2016-10-19 15:24:21 -04:00
Mike Pennisi
0c29e6de86 Reformat miscellaneous negative tests
The expected errors in these tests cannot be asserted with the
`assert.throws` helper function for various reasons. Re-format their
meta-data according to the latest design in order to more precisely
describe test expectations.
2016-10-19 15:24:19 -04:00
Mike Pennisi
203b234fc0 Reformat negative SyntaxError tests (runtime)
These tests specifically concern error produced from the global scope,
precluding the use of the `assert.throws` helper function.
2016-10-19 15:24:18 -04:00