Skip to content
Snippets Groups Projects
  1. May 17, 2017
  2. May 01, 2017
  3. Apr 27, 2017
  4. Apr 18, 2017
  5. Apr 15, 2017
  6. Apr 14, 2017
  7. Apr 13, 2017
  8. Mar 27, 2017
  9. Mar 01, 2017
  10. Feb 13, 2017
  11. Feb 09, 2017
  12. Oct 24, 2016
    • jugglinmike's avatar
      Add tests for realm interactions (#688) · 71e573f7
      jugglinmike authored
      * Add tests for prototype realm inference
      
      * Add tests for miscellaneous realm concerns
      
      * Add tests for realm of spec-created Errors
      
      In some cases, Error objects produced by the specification are
      observable from ECMAScript code. Among these cases, some are further
      differentiated in that they occur outside of any built-in function and
      may be triggered through syntactic production directly. The current
      realm record is commonly interpreted incorrectly under these
      circumstances.
      
      Add tests asserting that the expected realm record is used when
      constructing such Error objects.
      
      * Add tests for realm use in ArraySpeciesCreate
      
      * Add tests for function realm retrieval
      
      * Add tests for cross-realm behaviors of Symbols
      
      * Add tests for GetValue and PutValue
      
      * Add tests for realm of spec-created Arrays
      
      In some cases, Arrays produced by CreateArrayFromList are observable
      from ECMAScript code. Among these cases, two occur outside of any
      built-in function and may be triggered through syntactic production
      directly. The current realm record is commonly interpreted incorrectly
      under these circumstances.
      
      Add tests asserting that the expected realm record is used when
      constructing arrays.
      
      * Add test for spec-created object
      
      * fixup! Add tests for realm of spec-created Errors
      
      * fixup! Add tests for realm of spec-created Errors
      
      * fixup! Add tests for prototype realm inference
      
      * fixup! Add tests for miscellaneous realm concerns
      71e573f7
  13. Sep 29, 2016
  14. Jul 06, 2016
  15. Jun 29, 2016
    • Mike Pennisi's avatar
      Improve tests for RegExp `lastIndex` property · 4e781091
      Mike Pennisi authored
      The prior version of this test asserted only the property's
      configurability. It was also limited to the RegExp object as returned
      from the RegExp constructor.
      
      Extend the test to verify all values of the property descriptor.
      Duplicate these assertions in a separate file dedicated to the RegExp
      object as created from a RegExp literal.
      4e781091
    • Mike Pennisi's avatar
      Assert absense of internal slot on RegExpPrototype · 1d0dbc57
      Mike Pennisi authored
      The previous commit removed two invalid tests designed to ensure that
      the RegExpPrototype object is not itself a RegExp object. Introduce a
      new test to assert this detail in a way that accounts for the
      possibility of host extensions.
      1d0dbc57
    • Mike Pennisi's avatar
      Remove invalid tests for %RegExpPrototype% · 9c3bb8d6
      Mike Pennisi authored
      From ECMA262, section 16:
      
      >  Except as restricted in 16.2, an implementation may provide
      >  additional types, values, objects, properties, and functions beyond
      >  those described in this specification.
      
      Section 16.2 makes no mention of the `lastIndex` property of the
      %RegExpPrototype% intrinsic. It is therefor not a violation to define
      %such an "own" property.
      
      Remove the tests that assert otherwise.
      9c3bb8d6
    • Mike Pennisi's avatar
      b9587262
    • Mike Pennisi's avatar
      Update and tests for %RegExpPrototype% methods · e1cd1e7f
      Mike Pennisi authored
      A recent web-compatability change to ECMA262 modified the semantics of
      the accessor methods on the %RegExpPrototype% intrinsic--the "get"
      accessors now include steps dedicated to the case where the "this" value
      is the %RegExpPrototype% object itself.
      
      Remove the tests that have been invalidated by this change, introduce
      tests asserting the new behavior, and extend coverage for other possible
      "this" values.
      e1cd1e7f
  16. May 09, 2016
    • jugglinmike's avatar
      Update RegExp tests (#614) · d9d3f7cf
      jugglinmike authored
      The RegExpBuiltinExec internal operation was modified in March of 2016
      [1]: instead of referencing the `global` and `sticky` properties of the
      "this" value, the algorithm now infers those values from the object's
      [[OriginalFlags]] internal slot.
      
      This change invalidated a number of tests. In cases where the change
      resulted in an observable behavior, update the tests to assert the
      latest specification text. In cases where the change removed a
      previously-observable behavior, remove the files completely.
      
      Specification text change set:
      
      >        1. Assert: Type(_S_) is String.
      >        1. Let _length_ be the number of code units in _S_.
      >        1. Let _lastIndex_ be ? ToLength(? Get(_R_, `"lastIndex"`)).
      >      - 1. Let _global_ be ToBoolean(? Get(_R_, `"global"`)).
      >      - 1. Let _sticky_ be ToBoolean(? Get(_R_, `"sticky"`)).
      >      + 1. Let _flags_ be the value of _R_'s [[OriginalFlags]] internal slot.
      >      + 1. If _flags_ contains `"g"`, let _global_ be *true*, else let _global_ be *false*.
      >      + 1. If _flags_ contains `"y"`, let _sticky_ be *true*, else let _sticky_ be *false*.
      >        1. If _global_ is *false* and _sticky_ is *false*, let _lastIndex_ be 0.
      >        1. Let _matcher_ be the value of _R_'s [[RegExpMatcher]] internal slot.
      >      - 1. Let _flags_ be the value of _R_'s [[OriginalFlags]] internal slot.
      >        1. If _flags_ contains `"u"`, let _fullUnicode_ be *true*, else let _fullUnicode_ be *false*.
      >        1. Let _matchSucceeded_ be *false*.
      >        1. Repeat, while _matchSucceeded_ is *false*
      
      [1] https://github.com/tc39/ecma262/pull/494
      d9d3f7cf
  17. Apr 25, 2016
    • Mike Pennisi's avatar
      b8e40a6f
    • 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
  18. Feb 22, 2016
  19. Feb 13, 2016
  20. Jan 15, 2016
  21. 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
  22. Dec 02, 2015
  23. Sep 14, 2015
    • Mike Pennisi's avatar
      Add tests for @@match · 62d5787b
      Mike Pennisi authored
      Introduce tests for the well-known Symbol, `@@match`. This effects the
      behavior of `String.prototype.match` and is also used by the IsRegExp
      abstract operation.
      62d5787b
Loading