Skip to content
Snippets Groups Projects
  1. Mar 01, 2016
  2. Feb 25, 2016
  3. Feb 22, 2016
  4. Feb 16, 2016
    • Mike Pennisi's avatar
      Rename IterationStatement tests · 62857dcb
      Mike Pennisi authored
      - Prefix file names to explicitly describe the "head" position
      - Remove statement name suffix as this information is reflected by each
        file's location within the file hierarchy
      62857dcb
  5. Feb 13, 2016
  6. Feb 12, 2016
    • Mike Pennisi's avatar
      Remove unused harness file · 071b5f03
      Mike Pennisi authored
      The harness file `Test262Error.js` has not contained executable code since it
      was introduced in this project [1]. The definition of the `Test262Error`
      function has consistently been located in the `sta.js` harness file which test
      runners are expected to inject into the test environment.
      
      Remove the file and all references to it.
      
      [1] See commit c33bf0e0
      071b5f03
  7. Feb 01, 2016
    • Mike Pennisi's avatar
      Add tests for tail-call optimization · 4dc81d37
      Mike Pennisi authored
      ECMAScript 2015 introduced tail call optimization for function calls
      occuring in a number of positions in the grammar. Assert expected
      behavior by triggering a large (but configurable) number of recursive
      function calls in these positions. Compliant runtimes will execute such
      programs without error; non-compliant runtimes are expected to fail
      these tests by throwing an error or crashing when system resources are
      exhausted.
      4dc81d37
  8. Jan 22, 2016
    • Mike Pennisi's avatar
      Update tests according to ES2016 draft semantics · e62d43c8
      Mike Pennisi authored
      The ES2016 draft further refines the completion values for `if` and
      `with` statements. Two tests must be removed outright because the
      completion value in those cases is no longer accessible from the
      runtime.
      e62d43c8
    • Mike Pennisi's avatar
      Add tests for ES2015 completion reform · 407b8964
      Mike Pennisi authored
      In order to facilitate proper tail calls, ES2015 modified the completion
      value of a number of statements.
      
      These tests use `eval` to verify the new values.
      407b8964
  9. Jan 19, 2016
  10. Jan 13, 2016
  11. Jan 12, 2016
  12. Dec 18, 2015
  13. Dec 15, 2015
    • André Bargull's avatar
      Add test cases for recent ES2016 fixes · b62dccf1
      André Bargull authored
      - lastIndex in RegExp.prototype[Symbol.split]: tc39/ecma262@08b4756747f9c967058239df627da544412740a6
      - Missing number conversion in DataView.prototype.setXXX: tc39/ecma262@4f875fe96dcbd5e6363dd3d5b510cd5109199f5b
      - Negative zero byteoffset in TypedArray: tc39/ecma262@2d1ed20db778e8f69f66ba76b351b9322fd38495
      - EvalDeclarationInstantiation throws TypeError: tc39/ecma262@2be6968715946a4763f6ca8633e311ab7ce63577
      - BindingRestElement allows BindingPattern: tc39/ecma262@d322357e6be95bc4bd3e03f5944a736aac55fa50
      - Eval in parameters with computed property keys: tc39/ecma262@04e2e9b7197a33612202e85065e3f8d8385fbcef
      - Use strict with non-simple parameters: tc39/ecma262@15b0db41edd0e519e94668bf13765fe458840766
      - __proto__ in strict mode: tc39/ecma262@5c1984334d6d42538527bd022e68bfbfee5cb652
      b62dccf1
  14. Dec 02, 2015
  15. Nov 11, 2015
  16. Oct 05, 2015
  17. Sep 07, 2015
  18. Aug 13, 2015
  19. Aug 11, 2015
  20. Aug 06, 2015
  21. Jul 22, 2015
    • Mike Pennisi's avatar
      Add tests for function `name` attribute · 2fe07413
      Mike Pennisi authored
      This change set includes tests for most invocations of the
      SetFunctionName abstract operation in the ES2015 specification.
      Practical testing considerations preclude the introduction of tests for
      certain invocations:
      
      - The project is still vetting methods to sustainably test the semantics
        of the Destructuring Binding pattern across all valid productions.
        - 13.3.3.6 Runtime Semantics: IteratorBindingInitialization
        - 13.3.3.7 Runtime Semantics: KeyedBindingInitialization
      - Without a loader, there is no way to access a function object declared
        in an ExportDeclaration, so `name` assignment cannot be tested in
        these cases
        - 14.1.19 Runtime Semantics: InstantiateFunctionObject
        - 14.4.12 Runtime Semantics: InstantiateFunctionObject
        - 14.5.15 Runtime Semantics: BindingClassDeclarationEvaluation
        - 15.2.3.11 Runtime Semantics: Evaluation
      2fe07413
  22. Jul 17, 2015
    • André Bargull's avatar
      - Remove inline license · 023c7aa6
      André Bargull authored
      - Remove duplicate word
      - Add missing license
      023c7aa6
    • André Bargull's avatar
      Remove links to hg.ecmascript.org · a85f5039
      André Bargull authored
      a85f5039
    • André Bargull's avatar
      Fix test regressions · 85b24884
      André Bargull authored
      - Add missing 'negative: ReferenceError' in S7.9_A5.7_T1
      - Remove stale 'negative: ReferenceError' in block-local-closure-get-before-initialization
      - Remove all tail-call expressions in test/built-ins/Function
      - And update code in test/built-ins/Function to simply use 'f()' instead of 'var r = f(); return r'
      
      Fixes #383
      85b24884
  23. 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
    • Mike Pennisi's avatar
      Re-organize class tests · 6646d3e9
      Mike Pennisi authored
      The `test/language/class/` directory contains a small subset of
      Test262's tests for ES2015 classes. The majority of tests for classes
      are organized within `test/language/statements/class/`.
      
      - Move the tests that rely on the ClassDeclaration syntactic form from
        `test/language/class/` to `test/language/statements/class/`.
      - Move the test that relies on the ClassExpression syntactic form from
        `test/language/class/` to `test/language/expressions/class/`.
      6646d3e9
  24. Jul 09, 2015
    • Mike Pennisi's avatar
      Add tests for Unicode escape sequences · e0d59b0e
      Mike Pennisi authored
      - Re-organize existing tests for identifiers
        Name files according to their content (not their ES5 ID). Move tests
        for IdentifierName and LabelIdentifier to more appropriate directories.
      - Simplify and correct tests
        Instead of asserting successful runtime evaluation using `eval`, rely
        on the test runner's ability to detect syntax errors. Update the test
        bodies to test the grammar referenced by their ES5 ID and
        description--the IdentifierStart pattern.
      - Use `negative` frontmatter to assert SyntaxErrors
      - Remove redundant tests
      - Use `assert.equal` helper function
      - Add equivalent tests for literal unicode chars
      - Add tests for variable-length unicode escape
      e0d59b0e
    • Mike Pennisi's avatar
      Re-organize generator tests · 03e862ee
      Mike Pennisi authored
      The `test/language/generators/` directory contained a single file that
      concerned generators derived both from syntactic form and from a
      built-in function.
      
      Refactor this test into two files and place each in the appropriate
      directory.
      03e862ee
  25. Jun 18, 2015
  26. Jun 16, 2015
    • Mike Pennisi's avatar
      Remove $PRINT helper function · fe11a1ea
      Mike Pennisi authored
      The `$PRINT` helper function has no effect on test behavior. The
      following tests use it to report assertion outcomes (and as a result
      will fail silently):
      
      - test/language/function-code/S10.2.1_A4_T2.js
      - test/language/function-code/S10.2.1_A5.1_T1.js
      - test/language/function-code/S10.2.1_A5.1_T2.js
      - test/language/function-code/S10.2.1_A5.2_T1.js
      
      Remove the function definition and all references within tests. Update
      tests that use it as an error reporting mechanism to instead use an
      appropriate `assert` helper function.
      fe11a1ea
    • Mike Pennisi's avatar
      Fix tautological pattern in tests · 57f3466c
      Mike Pennisi authored
      In neglecting to assert the type of error thrown (or that any error was
      thrown at all), these tests cannot fail. Refactor the tests to use the
      `assert.throws` helper method, which takes these details into
      consideration.
      57f3466c
  27. Jun 09, 2015
    • Mike Pennisi's avatar
      Remove `$FAIL` function · 92890e67
      Mike Pennisi authored
      This function is equivalent to `$ERROR` (which is automatically included
      in test environments). Remove the harness file that defines the
      function, remove references to the file from test `includes` lists, and
      update scripts to instead invoke the `$ERROR` function.
      92890e67
Loading