Commit Graph

2771 Commits

Author SHA1 Message Date
Valerie R Young 5931e313fc Add initial tests for trim(Start/End/Left/Right) 2018-01-25 14:10:14 -05:00
André Bargull 40a7bd2401 Add test cases for tc39/ecma402#194 2018-01-25 14:04:44 -05:00
Jordan Harband 7c5b5bf750 Promise.prototype.finally: add missing tests
Per:
 - https://github.com/tc39/test262/issues/866#issuecomment-328565337
 - https://github.com/tc39/test262/issues/866#issuecomment-359978873

Closes #866.
2018-01-25 14:03:28 -05:00
Robin Templeton 8b71c5fea5 Atomics tests for BigInt 2018-01-25 14:01:33 -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
Viktor f9d8b29ae4 A fix for the copyright 2018-01-25 13:59:50 -05:00
André Bargull cbe12a53e1 Remove duplicate esids 2018-01-25 13:59:37 -05:00
André Bargull 79283bd80f Add missing 'SharedArrayBuffer' feature tag 2018-01-25 13:59:37 -05:00
André Bargull f717982c94 Remove unused includes 2018-01-25 13:59:37 -05:00
André Bargull 658f19005b assert.compareArray does not perform deep-equality comparison 2018-01-25 13:59:37 -05:00
André Bargull 8b50602099 Replace Annex-B __proto__ with Object.[gs]etPrototypeOf 2018-01-25 13:59:37 -05:00
André Bargull f3911d7ae4 Update remaining tests to use 'parse' instead of 'early' error phase 2018-01-25 13:59:37 -05:00
André Bargull 0ec5b02ac6 Add test case for tc39/ecma402#204 2018-01-25 13:59:15 -05:00
Jordan Harband 5b3914a37b
String.prototype.matchAll: add tests for stage 3
`String.prototype.matchAll`: Add basic tests.
2018-01-25 00:25:10 -08:00
Rick Waldron 2cb0028bf1 Rename sec-delete-operator test, mark non-obvious syntax 2018-01-17 12:47:44 -05:00
Mike Pennisi c4e02a7a65 fixup! Refactor DeleteExpression tests for parsers 2018-01-17 12:35:12 -05:00
Mike Pennisi cae69a9775 Refactor DeleteExpression tests for parsers
A number of tests for the parsing of the DeleteExpression production
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. Remove superfluous tests which
only differed in the runtime semantics of source text that could not be
evaluated due to syntax errors.
2018-01-17 12:35:12 -05:00
Rick Waldron cc94370eb9 Frontmatter nits 2018-01-17 12:32:11 -05:00
Viktor 290cef061c Create non-integer-values.js 2018-01-17 12:02:19 -05:00
Rick Waldron b7afd3d00d Frontmatter: updates to ForIn/OfBodyEvaluation tests 2018-01-11 10:47:10 -05:00
Rick Waldron d7b5715e6c Fix: various lint fixes 2018-01-11 10:21:08 -05:00
Rick Waldron 7d9cb55345 Features: Object.is 2018-01-11 10:20:50 -05:00
Rick Waldron 50d840acea Lint: inflect for pluralizing 2018-01-11 10:20:37 -05:00
Rick Waldron 73120a5492 Fix: various lint fixes 2018-01-10 17:33:03 -05:00
Rick Waldron 1a057550d8 tools/lint/lib/checks/esid.py: allow "sup-" 2018-01-10 17:32:37 -05:00
Rick Waldron 4afc330363 Fix: various lint fixes 2018-01-10 17:29:48 -05:00
Rick Waldron 40cb228633 lint: accept frontmatter without esid, es6id. 2018-01-10 17:25:44 -05:00
Rick Waldron b1aa569c84 Fix: esid sec-runtime-semantics-classdefinitionevaluation 2018-01-10 16:10:32 -05:00
Rick Waldron 670560f16b Fix: esid sec-generator-function-definitions 2018-01-10 16:04:16 -05:00
Rick Waldron 3be781c92d Fix: es6id -> esid sec-additional-syntax-numeric-literals 2018-01-10 16:01:45 -05:00
Rick Waldron bbf3301ff4 Fix: es6id -> esid sec-html-like-comments 2018-01-10 16:01:21 -05:00
Rick Waldron 5cd8e7bd53 Fix esid: static-semantics-hasproductionintailposition => sec-static-semantics-hascallintailposition 2018-01-10 15:44:56 -05:00
Adrian Heine 0278a7d2a5 Add es[56]?id checks 2018-01-10 15:28:58 -05:00
Rick Waldron b0338941f7 INTERPRETING.md: Make negative phase values easier to read 2018-01-10 15:20:22 -05:00
Michael Ficarra 041da54c02 add flatten/flatMap to features.txt and mark appropriate tests 2018-01-05 16:59:34 -05:00
Michael Ficarra d8233624aa add missing compareArray function 2018-01-05 16:59:34 -05:00
Michael Ficarra 6bd7b21a2b add myself to flatten/flatMap copyrights 2018-01-05 16:59:34 -05:00
Michael Ficarra 33b6c31331 use `onlyStrict` flag instead of `"use strict"` directive 2018-01-05 16:59:34 -05:00
Michael Ficarra 02ceb62400 flatMap/flatten test improvements 2018-01-05 16:59:34 -05:00
shilpi 1547e49c95 flatten and flatMap tests 2018-01-05 16:59:34 -05:00
Rick Waldron f68488ffad Fix typo in INTERPRETING.md 2018-01-05 15:38:34 -05:00
Rick Waldron e9e928babe Resolving conflicts in class-fields src templates 2018-01-05 15:31:17 -05:00
Rick Waldron e9a187100a Remove irrelevant info from src/class-fields/propname-error-static/cls-decl-static-* frontmatter 2018-01-05 15:19:50 -05:00
Mike Pennisi fad683d14b Increment major version
Recent changes to the metadata for negative tests fundamentally alter
the way those tests are intended to be interpreted. Increment the
project's version number in order to signal this to project consumers.
2018-01-05 15:17:51 -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 66df349af3 Assert that promise callbacks were actually called. Closes #1328
Originally reported here: https://github.com/tc39/test262/pull/1328, OP passed on revising.
2018-01-05 13:23:35 -05:00