903 Commits

Author SHA1 Message Date
Leonardo Balter
206265e8fe WeakMap.prototype[Symbol.toStringTag] 2015-07-10 14:31:26 -04:00
Leonardo Balter
74665f0558 WeakMap.prototype.set 2015-07-10 14:31:26 -04:00
Leonardo Balter
0887df4c67 WeakMap.prototype.has 2015-07-10 14:31:26 -04:00
Leonardo Balter
7acd163264 WeakMap.prototype.get 2015-07-10 14:31:26 -04:00
Leonardo Balter
e44e0c1762 WeakMap.prototype.delete 2015-07-10 14:31:25 -04:00
Leonardo Balter
806beb5ae3 WeakMap.prototype.constructor 2015-07-10 14:31:25 -04:00
Leonardo Balter
f0ec4e6de1 WeakMap - core tests 2015-07-10 14:31:25 -04:00
Brian Terlson
0027a6b6bf Merge pull request #364 from bocoup/move-fn-proto-tests
Move tests for the FunctionPrototype intrinsic
2015-07-10 11:00:15 -07:00
Brian Terlson
0ba2ae40e1 Merge pull request #363 from bocoup/move-class-tests
Re-organize class tests
2015-07-10 11:00:00 -07:00
Mike Pennisi
104025d6d2 Move tests for the FunctionPrototype intrinsic
Test262 maintains most tests for the FunctionPrototype intrinsic within
the `test/built-ins/Function/prototype/` directory. Two tests are
defined within the otherwise-empty `test/built-ins/intrinsics/`
directory; relocate them to the canonical directory for consistency and
discoverability.
2015-07-10 10:51:30 -04:00
Mike Pennisi
6646d3e94f Re-organize class tests
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/`.
2015-07-10 10:36:05 -04:00
Brian Terlson
1bc6441cae Merge pull request #356 from anba/regexp-cleanup
Clean-up test comments and remove invalid tests
2015-07-09 16:45:55 -07:00
Brian Terlson
4181994b55 Merge pull request #353 from bocoup/accessor-functions-on-built-in-properties
Add test for built-in accessor properties names
2015-07-09 16:37:51 -07:00
Brian Terlson
0622faca9d Merge pull request #329 from bocoup/unicode-escape-identifiers
Unicode escape identifiers
2015-07-09 16:00:00 -07:00
Brian Terlson
d7cadb1331 Merge pull request #362 from bocoup/move-gen-tests
Re-organize generator tests
2015-07-09 15:56:04 -07:00
Mike Pennisi
e0d59b0ede Add tests for Unicode escape sequences
- 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
2015-07-09 18:52:22 -04:00
Mike Pennisi
03e862ee14 Re-organize generator tests
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.
2015-07-09 15:07:19 -04:00
André Bargull
ebab7cf055 Clean-up test comments and remove invalid tests
- 15.10.2.15-3-1 and 15.10.2.15-3-2 are both invalid (U+002F (SOLIDUS) instead of U+005C (REVERSE SOLIDUS) was used to start an escape sequence).
- 15.10.4.1-2 and 15.10.2.2-1 are identical tests, delete the latter.
- Update tests to avoid using runTestCase() function.
- Update multiple test infos to point to correct algorithm step (CharacterRange step 6 instead of step 1).
2015-07-08 19:01:22 +02:00
Brian Terlson
f4e17963f8 Merge pull request #343 from bocoup/MapIteratorPrototype
Fix, update and improve coverage of MapIteratorPrototype
2015-07-07 14:37:40 -05:00
Brian Terlson
668219cd9e Merge pull request #331 from bocoup/promise-formalize
Formalize tests for built-in Promise methods
2015-07-07 14:35:51 -05:00
Brian Terlson
d9f1758ef4 Merge pull request #340 from bocoup/raw
Implement `raw` flag
2015-07-07 14:35:11 -05:00
Brian Terlson
6b6c3ada8a Merge pull request #335 from bocoup/Map
Add tests for Map
2015-07-07 14:34:49 -05:00
Mike Pennisi
4e2f350875 Formalize tests for built-in Promise methods
Uniformly and exhaustively test the generic aspects of the static- and
instance Promise methods, including:

- function `length` properties
- function `name` properties
- method property descriptors
2015-07-07 13:55:57 -04:00
Mike Pennisi
a3081bd108 Remove redundant test 2015-07-07 13:55:57 -04:00
Mike Pennisi
ab7617dedd Implement raw flag
Some tests involving the directive prologue are invalidated by source
text transformations that insert executable code in the beginning of the
script. Implement a `raw` flag that allows these tests to opt-out of
this transformation. Update the relevant tests to use this flag (and
remove references to globals only available when code is injected).

Update the Python runner accordingly:

- Do not run tests marked as "raw" in strict mode
- Reject invalid test configurations

Update the browser runner accordingly:

- Do not modify the script body of tests marked as "raw"
2015-07-07 13:18:55 -04:00
Leonardo Balter
0597e9e90e Remove duplicated Map tests 2015-07-07 12:03:55 -04:00
Leonardo Balter
7d0c8638c6 Map.prototype[Symbol.toStringTag] 2015-07-07 12:03:55 -04:00
Leonardo Balter
710fcbb383 Map.prototype[Symbol.iterator] 2015-07-07 12:03:54 -04:00
Leonardo Balter
cdcd91c8b2 Map.prototype.values 2015-07-07 12:03:54 -04:00
Leonardo Balter
1ddb99eebd Map.prototype.size 2015-07-07 12:03:54 -04:00
Leonardo Balter
7ee11aae4e Map.prototype.set 2015-07-07 12:03:54 -04:00
Leonardo Balter
48f4131007 Map.prototype.keys 2015-07-07 12:03:53 -04:00
Leonardo Balter
dc55c21084 Map.prototype.has 2015-07-07 12:03:53 -04:00
Leonardo Balter
b103418a17 Map.prototype.get 2015-07-07 12:03:53 -04:00
Leonardo Balter
a31a62fcc8 Map.property.forEach 2015-07-07 12:03:53 -04:00
Leonardo Balter
ad60436658 Map.prototype.entries 2015-07-07 12:03:53 -04:00
Leonardo Balter
e345635a75 Map.prototype.delete 2015-07-07 12:03:52 -04:00
Leonardo Balter
66c08508ae Map.prototype.constructor 2015-07-07 12:03:52 -04:00
Leonardo Balter
b1557df8ef Map.prototype.clear 2015-07-07 12:03:52 -04:00
Leonardo Balter
ded4923d27 Map.prototype descriptor 2015-07-07 12:03:52 -04:00
Leonardo Balter
a55385c716 Map constructor 2015-07-07 12:03:52 -04:00
Brian Terlson
6f22dad152 Merge pull request #316 from bocoup/template-more
Improve tests for templates
2015-07-06 17:30:34 -05:00
Brian Terlson
284c30646c Merge pull request #351 from arv/fix-indentation
Unify indentation in test_monkeyYaml.py
2015-07-06 17:21:31 -05:00
Brian Terlson
fb52ce9a5b Merge pull request #350 from pvginkel/missing-features-on-es6-string-functions
ES6 specific functions should declare a feature.
2015-07-06 17:20:10 -05:00
Brian Terlson
26faeed5c7 Merge pull request #347 from bocoup/all-monkey-all-the-time
Use "monkeyYaml" in all environments
2015-07-06 16:51:00 -05:00
Leonardo Balter
22097eeaf4 fixup
- move Object.prototype.__proto__ tests to annexB
- remove RegExp.prototype.unicode name test
2015-07-06 17:50:33 -04:00
Leonardo Balter
a1de508783 Add test for built-in accessor properties names
Including:

- 21.2.4.2 get RegExp [ @@species ]
- 21.2.5.3 get RegExp.prototype.flags
- 21.2.5.4 get RegExp.prototype.global
- 21.2.5.5 get RegExp.prototype.ignoreCase
- 21.2.5.7 get RegExp.prototype.multiline
- 21.2.5.10 get RegExp.prototype.source
- 21.2.5.12 get RegExp.prototype.sticky
- 21.2.5.15 get RegExp.prototype.unicode
- 22.1.2.5 get Array [ @@species ]
- 23.1.2.2 get Map [ @@species ]
- 23.2.2.2 get Set [ @@species ]
- 24.1.3.3 get ArrayBuffer [ @@species ]
- 24.1.4.1 get ArrayBuffer.prototype.byteLength
- 24.2.4.1 get DataView.prototype.buffer
- 24.2.4.2 get DataView.prototype.byteLength
- 24.2.4.3 get DataView.prototype.byteOffset
- 25.4.4.6 get Promise [ @@species ]
- B.2.2.1.1 get Object.prototype.__proto__
- B.2.2.1.2 set Object.prototype.__proto__

Skipped TypedArray tests in order to avoid an early test strategy definition for them.
2015-07-06 17:31:23 -04:00
Erik Arvidsson
8dd6aa22dd Unify indentation in test_monkeyYaml.py 2015-07-06 10:09:26 -04:00
Brian Terlson
c6ac390868 Merge pull request #346 from arv/monkey-yaml-confused
monkeyYaml: Add support for line folding
2015-07-05 23:23:08 -05:00
Pieter van Ginkel
ad1f14c247 ES6 specific functions should declare a feature.
The String.endsWith and String.includes tests didn't specify either an es6id or a features. Added a features attribute for these tests.
2015-07-05 15:54:28 +02:00