Skip to content
Snippets Groups Projects
  1. Jan 25, 2019
  2. Dec 20, 2018
  3. Oct 23, 2018
  4. Sep 24, 2018
    • jugglinmike's avatar
      Refactor increment/decrement tests for parsers (#1786) · 42ed4291
      jugglinmike authored
      The tests for the parsing of postfix increment, postfix decrement,
      prefix increment, and prefix decrement 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.
      42ed4291
  5. Jul 24, 2018
    • Thomas Wood's avatar
      Add feature flags for `new.target` · 2d4ac25f
      Thomas Wood authored
      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.
      2d4ac25f
  6. Jan 05, 2018
    • Mike Pennisi's avatar
      Rename negative test "phase" for parsing · 13611037
      Mike Pennisi authored
      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.
      13611037
    • Rick Waldron's avatar
      Frontmatter: fixup "info: >" to "info: |" · 92a26219
      Rick Waldron authored
      92a26219
  7. Oct 04, 2017
  8. Jun 28, 2017
  9. Apr 13, 2017
  10. Oct 19, 2016
    • Mike Pennisi's avatar
      Remove "NotEarlyError" object · ade6d2e3
      Mike Pennisi authored
      Because expectations regarding error "phase" are now expressed via test
      meta-data, the test runner may now enforce this requirement on negative
      tests.
      
      Remove the "NotEarlyError" from the project source. This reduces the
      amount of domain knowledge required to author tests and lessens the
      potential for inconsistencies between tests.
      ade6d2e3
    • Mike Pennisi's avatar
      Re-format tests for SyntaxErrors · 7d4b1d28
      Mike Pennisi authored
      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'
      7d4b1d28
    • Mike Pennisi's avatar
      Reformat negative ReferenceError tests · d5a3a962
      Mike Pennisi authored
      d5a3a962
  11. Oct 18, 2016
  12. Jul 05, 2016
    • jugglinmike's avatar
      Add tests for assignment target validation of new ES2015 forms (#693) · ab4ff914
      jugglinmike authored
      This re-factors some existing Sputnik tests to be more targeted and to use a
      pattern that can be generalized to other forms. We could test these all day,
      but I've limited myself to forms introduced in ES2015, specifically
      YieldExpression and new.target. Note that SpiderMonkey incorrectly throws a
      SyntaxError for these.
      I thoughtlessly wrote ReferenceError tests for yield = 1 until I realized
      that such productions are not actually recognized by the grammar, so the early
      errors do not apply. Instead, I've added a negative syntax test for that case.
      
      * Refactor test for valid cover
      
      * Add tests for ValidSimpleAssignmentTarget
      
      Ensure that constructs introduced in ES2015 are disallowed as assignment
      targets, with or without a "cover" grammar.
      
      * Add test for grammar precedence of YieldExpression
      ab4ff914
  13. Apr 25, 2016
    • Mike Pennisi's avatar
      Reduce reliance on `fnGlobalObject.js` · eb644bb2
      Mike Pennisi authored
      This harness function is not necessary in the majority of cases in which
      it is used. Remove its usage to simplify tests and decrease the amount
      of domain-specific knowledge necessary to contribute to the test suite.
      
      Persist the harness function itself for use by future tests for ES2015
      modules (such a helper is necessary for tests that are interpreted as
      module code).
      eb644bb2
  14. Aug 13, 2015
  15. Aug 11, 2015
  16. Jul 17, 2015
  17. Jun 29, 2015
    • Mike Pennisi's avatar
      Make tests more strict · 64826c2a
      Mike Pennisi authored
      In ECMAScript 5, assignment to a non-reference value throws a runtime
      ReferenceError. ECMAscript 6 specifies an early ReferenceError in these
      cases. Tests for this behavior have been authored to pass in both cases.
      Simplify these tests to describe and assert the early error.
      64826c2a
  18. Jun 18, 2015
    • Mike Pennisi's avatar
      Update handling of directive prologues · 29ecced6
      Mike Pennisi authored
      Some tests specifically concern the application of the `use strict`
      directive as it appears in JavaScript source code. These tests should
      *not* be run with the `onlyStrict` flag because relying on the test
      runner to enable strict mode makes the semantics of the source code
      irrelevant. Update these tests to use the `noStrict` flag.
      
      Other tests concern language semantics that are only valid in strict
      mode, but the mechanism for enabling strictness is inconseqential.
      Update these tests to use the `onlyStrict` flag and remove any redundant
      `use strict` directive prologues contained within.
      
      Still other tests are valid both within and outside of strict mode.
      In keeping with the majority of other tests, do not specify any
      restrictions on the environments in which these tests may be run.
      29ecced6
  19. May 19, 2015
  20. Feb 12, 2015
  21. Dec 11, 2014
  22. Dec 07, 2014
Loading