Commit Graph

883 Commits

Author SHA1 Message Date
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
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
Leonardo Balter 7cbf7654e5 Improve coverage of MapIteratorPrototype 2015-07-02 10:42:41 -04:00
Mike Pennisi 1303ef0d05 Use "monkeyYaml" in all environments
The "monkeyYaml" parser is intended to serve as a lightweight fallback
to Python's standard YAML parser in contexts where the latter is not
available. Any intentionally-simplified implementation will necessarily
exhibit non-standard behavior for different input, so not all input
accepted by the standard parser will be accepted by "monkeyYaml". If
loaded exclusively in fallback situations, these edge cases can only be
identified (and debugged) in the environments that require the fallback.
This has allowed developers to unknowingly author tests that cause
errors.

Update the test runner to use "monkeyYaml" in all cases, ensuring more
consistent behavior across contexts and precluding this class of
regression.
2015-07-01 14:49:54 -04:00
Erik Arvidsson 37b1d7a7a8 monkeyYaml: Add support for line folding
Fixes #345
2015-07-01 11:09:08 -04:00
Brian Terlson 1e80bf22f6 Merge pull request #341 from pvginkel/invalid-config-block-delimiters
Fixed invalid configuration block delimiters.
2015-06-29 11:58:17 -07:00
Brian Terlson 30062b4b2a Merge pull request #342 from bocoup/ref-early-err
Make tests more strict
2015-06-29 11:58:05 -07:00
Mike Pennisi 64826c2ad3 Make tests more strict
In ECMAScript 5, assignment to a non-reference value throws a runtime
ReferenceError. ECMAscript 6 specifies an early ReferenceError in these
cases. Tests for this behavior have been authored to pass in both cases.
Simplify these tests to describe and assert the early error.
2015-06-29 12:25:01 -04:00
Pieter van Ginkel a5e4c2ade5 Fixed invalid configuration block delimiters.
Two tests started the configuration block with a /*-- instead of a /*---.
2015-06-28 07:35:54 +02:00
Brian Terlson 408318bfb0 Merge pull request #339 from bocoup/fix-website-includes
Complete migration of website assets
2015-06-26 12:00:56 -07:00
Mike Pennisi 15f9804e54 Complete migration of website assets
Update the URLs used by dynamic script loading code according to the new
location of the recently-moved web site scripts.
2015-06-26 14:34:24 -04:00
Brian Terlson 20d39432b9 Merge pull request #337 from bocoup/remove-fn-exists
Remove unnecessary "include" file
2015-06-26 11:02:45 -07:00
Brian Terlson 9abed155e3 Merge pull request #338 from bocoup/move-web-scripts
Move web scripts
2015-06-26 10:58:59 -07:00
Brian Terlson 9dc49b72cc Merge pull request #336 from bocoup/remove-env
Remove empty "include" file
2015-06-26 10:57:59 -07:00
Mike Pennisi b974c13751 Move website scripts to a dedicated directory
Some JavaScript source files are only relevant in the context of the
Test262 website. They should not be explicitly included by individual
tests, so their presence in the `harness/` directory alongside "include"
files is misleading.

Move the scripts to a location within the `website/` directory to
better-reflect their intended use. Update the relevant HTML templates
with the new locations.
2015-06-26 13:29:07 -04:00
Mike Pennisi 86c7e272a6 Remove support for legacy `$INCLUDE` syntax
Although test files once expressed dependencies on external files using
a global `$INCLUDE` function, that pattern was removed in favor of
declarative meta-data [1].

Remove the associated logic from the Python runner and the browser.

[1] See commit d4354d14d5.
2015-06-26 13:29:07 -04:00
Mike Pennisi f8e18ccd76 Remove unnecessary "include" file
The `fnExists` function defines a generic way to determine if any number
of values are function instances. Because it is only used by a single
test, the additional complexity required by the generalized code (and
the organizational drawbacks to maintaining another "include" file) are
not justified. Remove the file and update the test to assert the
function's existence directly.
2015-06-26 12:34:04 -04:00
Mike Pennisi e57da7a8f1 Remove empty "include" file
The `environment.js` file has been empty since its initial introduction
to this project [1]. It has no effect on any of the contexts in which it
is currently referenced, so it may be safely removed.

[1] be82787a00
2015-06-26 12:19:51 -04:00
Brian Terlson f06791ea4b Merge pull request #328 from bocoup/object-set-prototype-of
Add tests for Object.setPrototypeOf
2015-06-25 14:46:43 -07:00
Brian Terlson e4a25da86a Merge pull request #305 from jugglinmike/browser-only-strict
Update browser runner to honor `onlyStrict` flag
2015-06-25 14:44:34 -07:00
Brian Terlson da3747003f Merge pull request #308 from bocoup/for-of-built-ins
Add tests for `for..of` iteration over built-ins
2015-06-25 14:43:53 -07:00
Brian Terlson 55740e93d6 Merge pull request #334 from arv/fix-math-precision
Fix issue with math_precision.js
2015-06-25 14:19:47 -07:00