Skip to content
Snippets Groups Projects
  1. Jul 12, 2016
  2. Jul 11, 2016
    • jugglinmike's avatar
      Annex b skip fib (#704) · a41b7111
      jugglinmike authored
      * Re-generate tests
      
      The test generation tool has been modified in the time since these tests
      were first generated and committed to the project. Re-generate the tests
      using the latest version of the tool.
      
      * Add test cases for Annex B hoisting disqualifiers
      
      The "variable-like" function hoisting semantics defined in Annex B
      extension B.3.3 is only applied if "[...] replacing the
      FunctionDeclaration f with a VariableStatement that has F as a
      BindingIdentifier would not produce any Early Errors [...]". Test262
      previously included tests for this condition when the disqualifying
      early error originated from the ScriptBody and FunctionBody productions.
      
      Add test cases to assert the behavior when it is disqualified by all
      other relevant early errors: Block statements, `for` statements,
      `for-of` statements, `for-in` statements, and Switch statements.
      
      * Generate tests
      
      * fixup! Add test cases for Annex B hoisting disqualifiers
      
      * fixup! Add test cases for Annex B hoisting disqualifiers
      
      Correct test case "info" meta-data.
      
      * fixup! Add test cases for Annex B hoisting disqualifiers
      
      Improve test bodies
      
      * fixup! Generate tests
      a41b7111
    • jugglinmike's avatar
      Add test for subclassing bound functions (#720) · 35206ee8
      jugglinmike authored
      The semantics under test have been incorrectly implemented by the
      SpiderMonkey engine.
      35206ee8
  3. Jul 09, 2016
    • jugglinmike's avatar
      Improve coverage for section 14: Functions and Classes (#717) · da0a8e33
      jugglinmike authored
      * Add tests for early errors in functions
      
      * Improve tests for class accessors
      
      Use the `propertyHelper.js` utility in order to functionally test the
      property descriptors of class methods.
      
      * Remove redundant tests
      
      The semantics of an IdentifierReference as a PropertyDefinition within
      an object initializer are exhaustively tested by the files in this
      directory whose name match the pattern `prop-def-id-*.js`.
      
      Delete the redundant tests in favor of the more descriptively-named and
      more exhaustive alternatives.
      
      * Rename tests
      
      * Update test names to be more descriptive
      
      * Add tests for property descriptors of accessors
      
      * Add tests for runtime error during method dfn
      
      * Add test for observable iteration
      da0a8e33
    • jugglinmike's avatar
      Improve coverage for class "name" inference (#718) · 2bfaa0d8
      jugglinmike authored
      * Extend tests for class "name" inference
      
      Ensure that when a class defines a static "name" method, that method
      definition prevents the "name" inference behavior.
      
      * Re-generate tests
      2bfaa0d8
    • jugglinmike's avatar
      8d78eddc
  4. Jul 07, 2016
    • Leonardo Balter's avatar
      Update and expand tests for isNaN · 7b1eddf6
      Leonardo Balter authored
      7b1eddf6
    • Leonardo Balter's avatar
      Update and expand tests for isFinite · 81f22800
      Leonardo Balter authored
      81f22800
    • jugglinmike's avatar
      Json whitespace (#724) · 96c4e773
      jugglinmike authored
      * Express JSON syntax tests with multiple assertions
      
      When written with a single assertion, this test verifies only that "one
      or more" of the Unicode points produces a SyntaxError. Re-factor the
      test so that parsing behavior for each code point can be tested in
      isolation.
      
      * Re-introduce assertion
      
      ECMAScript edition 2016 relies on the Unicode standard at version 8.0.0.
      As part of a larger effort to update Test262 accordingly, the assertion
      for the SyntaxError resulting from the use of the Mongolian Vowel
      Separator (U+180E) was removed. However, ECMA-401 (The JSON Data
      Interchange Format) continues to describe "insignificant whitespace" as
      follows:
      
      > Insignificant  whitespace  is  allowed  before  or  after  any  token.
      > The  whitespace  characters  are:  character  tabulation  (U+0009),
      > line  feed  (U+000A),  carriage  return (U+000D),  and  space
      > (U+0020)
      
      And because ECMA262 specifies step 2 of the `JSON.parse` algorithm as
      follows:
      
      > 2. Parse JText interpreted as UTF-16 encoded Unicode points (6.1.4) as
      >    a JSON text as specified in ECMA-404. Throw a SyntaxError exception
      >    if JText is not a valid JSON text as defined in that specification.
      
      ...the use of U+180E between JSON tokens should continue to produce a
      SyntaxError, regardless of ECMA262's updated Unicode standard.
      
      * fixup! Express JSON syntax tests with multiple assertions
      96c4e773
  5. Jul 06, 2016
  6. Jul 05, 2016
  7. Jul 01, 2016
    • jugglinmike's avatar
      Extend coverage for Section 25 - Generators (#700) · fce8b585
      jugglinmike authored
      * Improve tests for GeneratorPrototype methods
      
      - Assert return values more consistently
      - Expand tests for constraints on `this` value
      
      * Add more tests for dynamic GeneratorFunctions
      
      * Add more tests for GenerationFunction.prototype
      
      * Add more tests for the GeneratorFunction object
      
      * Extend test: GeneratorFunction.prototype.prototype
      
      * Improve precision of tests for generator methods
      
      Extend existing assertions to explicitly verify that execution halts at
      the intended location. Correct tests which were previously asserting
      this behavior in contexts that did not match their name/description.
      
      * Remove unused variables
      
      * fixup! Improve tests for GeneratorPrototype methods
      
      * fixup! Improve tests for GeneratorPrototype methods
      fce8b585
    • jugglinmike's avatar
      Improve coverage for section 12, "Expression" (#695) · e290a337
      jugglinmike authored
      * Add missing test for early error
      
      * Add missing test for WithBaseObject
      
      * Improve coverage for `new.target`
      
      * Add test for deletion of SuperReference
      
      * Add tests for `in` keyword restrictions
      
      * fixup! Improve coverage for `new.target`
      e290a337
    • Leo Balter's avatar
      Improve assertions comparing values to NaN (#690) · e49d2661
      Leo Balter authored
      The global isNaN is not precise at all, and Number.isNaN is an ES6 feature that makes it preferrable to use assert's sameValue for NaN values, as it handles it internally using the comparison.
      e49d2661
  8. Jun 30, 2016
  9. Jun 29, 2016
    • jugglinmike's avatar
      Improve coverage for "super" keyword (#687) · a3fffa75
      jugglinmike authored
      * Improve test coverage for `super` keyword
      
      Add tests for SuperCall and SuperProperty, organized together in the
      `test/language/expressions/super/` directory. For SuperProperty, include
      tests for usage from within Object initializers and class bodies because
      a different set of semantics are observable from each context.
      a3fffa75
  10. Jun 28, 2016
    • jugglinmike's avatar
      Extend test for HTML comments (#684) · 23efc2c9
      jugglinmike authored
      Extend test for HTML comments
      
      The V8 engine incorrectly requires a leading newline character for
      MultiLineComments which contain the optional trailing HTMLCloseComment
      [1]. Extend the current tests to fail when such an invalid restriction
      is in place.
      [1] https://bugs.chromium.org/p/v8/issues/detail?id=5142
      23efc2c9
    • Tom Care's avatar
      Merge pull request #678 from samccone/sjs/switch-to-option-arg · a57c1f25
      Tom Care authored
      Switch to non-positional argument.
      a57c1f25
    • jugglinmike's avatar
      Add tests ensuring iterator is not closed (#702) · be19aaa1
      jugglinmike authored
      A subtle aspect of the for-of iteration protocol concerns abrupt
      completions that do *not* trigger iterator closing. Although this detail
      is implicit in the current structure of the specification text, some
      hosts may violate the protocol by closing the iterator because later
      steps *do* specify that behavior.
      
      The V8 engine is one such host--as of this writing, it incorrectly
      closes the iterator when accessing the `value` property of the iterator
      result produces an abrupt completion.
      
      Add tests verifying that the iterator protocol is not violated in this
      way for abrupt completions during the semantics of for-of evaluation.
      be19aaa1
  11. Jun 27, 2016
Loading