Skip to content
Snippets Groups Projects
  1. 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
  2. Oct 26, 2017
  3. Oct 16, 2017
  4. Oct 04, 2017
  5. Jun 28, 2017
  6. Apr 21, 2017
  7. Apr 13, 2017
  8. Mar 14, 2017
  9. Jan 17, 2017
  10. Nov 22, 2016
  11. 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
  12. Aug 05, 2016
    • jugglinmike's avatar
      Improve coverage for section 9 (#726) · c5cbf412
      jugglinmike authored
      * Assert creation of 'arguments' object
      
      Ensure that the 'arguments' object is created in cases where it is not
      required by the body but is required by the parameters.
      
      * Add tests for cases that disable "arguments" map
      
      * Add tests for NewTarget override of bound function
      
      * Add test for properties of exotic String objects
      c5cbf412
  13. Sep 07, 2015
  14. Aug 13, 2015
  15. Aug 11, 2015
  16. Aug 06, 2015
  17. Jul 17, 2015
  18. Jul 10, 2015
    • Mike Pennisi's avatar
      Prefer explicit error checking where possible · 10e0d977
      Mike Pennisi authored
      The `negative` frontmatter tag expresses an expectation for the behavior
      of the test file as a whole. The `assert.throws` helper function offers
      more fine-grained control over expectations because it may be applied to
      specific statements and expressions. This makes it preferable in cases
      where it may be used (i.e. when the test body does not describe a syntax
      error or early error).
      
      Re-implement assertions for errors to use the `assert.throws` helper
      function wherever possible.
      10e0d977
  19. 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
  20. May 26, 2015
  21. May 20, 2015
  22. May 19, 2015
  23. May 18, 2015
  24. May 08, 2015
    • André Bargull's avatar
      Fix strict mode errors in language · 89a4bb5a
      André Bargull authored
      - Add missing "var" declarations and noStrict flags
      - Add strict mode tests for:
       - arguments-object/10.6-6-3 -> arguments-object/10.6-6-3-s
       - arguments-object/10.6-6-4 -> arguments-object/10.6-6-4-s
      - Remove try-finally clean-up code
      - Add strict mode compatible tests for eval-code/S10.4.2_A1.1_T*
        - No strict mode compatible files added for eval-code/S10.4.2_A1.2_T*, because it doesn't really make sense in this context.
        - (S10.4.2_A1.1 and S10.4.2_A1.2 should probably be removed, because the tested behaviour is not required by the spec.)
      - Split S8.5_A10, S8.5_A4 and S8.1_A3 into declaration (both modes) and assignment tests (non-strict only)
      
      Part of issue #35.
      89a4bb5a
  25. Apr 20, 2015
    • Mike Pennisi's avatar
      Import tests from Google V8 (native iterators) · e8cc40a0
      Mike Pennisi authored
      These tests are derived from the following files within the Google V8
      project:
      
          test/mjsunit/es6/typed-array-iterator.js
          test/mjsunit/es6/arguments-iterator.js
          test/mjsunit/es6/string-iterator.js
          test/mjsunit/es6/collection-iterator.js
      e8cc40a0
  26. Dec 07, 2014
Loading