Commit Graph

1206 Commits

Author SHA1 Message Date
Leonardo Balter 47faa3ec58 Add tests for Subclassing the built-in Boolean Object 2016-01-11 17:57:43 -05:00
Leonardo Balter 1bcc056914 Add tests for Subclassing the built-in Function Object 2016-01-11 17:57:43 -05:00
Leonardo Balter cde62d08d8 Add tests for Subclassing the built-in Object 2016-01-11 17:57:42 -05:00
Leonardo Balter 7a87731d9c Add tests for Subclassing the built-in Array Object 2016-01-11 17:57:42 -05:00
Mike Pennisi 7fab70bb21 Add tests for Promise Reject Functions 2016-01-07 13:24:42 -05:00
Mike Pennisi a5bf19486a Extend coverage for PerformPromiseThen 2016-01-07 13:24:01 -05:00
Mike Pennisi 8e069e918f Extend coverage for PromiseReactionJob
Add tests that assert sequential job execution
2016-01-07 13:24:01 -05:00
Mike Pennisi eded6b269b Extend tests to fully cover invocation concerns
Update test metadata to accurately describe the more complete set of
assertions.
2016-01-07 13:24:00 -05:00
Mike Pennisi 5f2ba2522f Limit semantics under test
Because these tests concern the behavior of the PromiseReactionJob
abstract operation itself, they should avoid assumptions about the
correct implementation of that operation. Specifically: they should not
rely on the behavior of abupt completions returned from "reaction
handler" functions.

Re-implement tests to express control flow expectations using the
`$DONE` function only.
2016-01-07 13:23:54 -05:00
Mike Pennisi 5a8d1fdf77 Re-organize tests according to internal operations
By organizing files according to the structure of the specification,
test coverage can be more methodically evaluated.
2016-01-07 13:01:25 -05:00
Mike Pennisi 29cdc4543f Rename tests for PromiseReactionJob
Use names that describe the behavior (not the location in the
specification) as per the current convention.
2016-01-07 12:55:36 -05:00
Mike Pennisi f01767916a Rename tests for PerformPromiseThen
These tests concern the behavior of PerformPromiseThen for settled
Promises. That abstract operation behaves differently for pending
promises, so the file naming scheme should reflect this distinction in
order to support the future implementation of additional tests.
2016-01-07 12:55:31 -05:00
Mike Pennisi 615f42274d Extend coverage for NewPromiseCapability 2016-01-07 12:42:44 -05:00
Mike Pennisi 6e9d88a293 Extend coverage for PerformPromiseRace 2016-01-07 12:42:21 -05:00
Mike Pennisi bb26beece2 Extend coverage for PerformPromiseAll 2016-01-07 12:42:21 -05:00
Leonardo Balter 5e653f2e6c ObjectBindingPatterns can't end with multiple commas 2015-12-29 16:50:23 -05:00
Leonardo Balter 7e24ed9999 Destructuring Binding - syntax and simple initialization 2015-12-29 16:31:12 -05:00
André Bargull 92423d3c9f Add tests for instanceof operator when prototype property is primitive or getter 2015-12-22 19:05:53 +01:00
Jordan Harband f1d072dec2 Ensure verifyConfigurable is last, because side effects suck 2015-12-22 09:25:33 -08:00
Gorkem Yakin 1c1a75eead Merge pull request #456 from jswalden/let-let-asi-interactions
Add a test verifying that |let<newline>let| isn't subjected to ASI, matches LexicalDeclaration, and is then treated as an early error
2015-12-18 14:18:23 -08:00
Jeff Walden 78ca60e6cf Add tests verifying that ASI can't occur after the leading let/const in |let let|, |let let = "...";|, and |const let = "...";|. Each matches the LexicalDeclaration production, then triggers an early error before evaluation because it attempts to bind "let". 2015-12-18 15:03:04 -05:00
Gorkem Yakin 67ba34b03a Merge pull request #451 from anba/es2016_fixes_coverage
Add test cases for recent ES2016 fixes
2015-12-16 15:58:02 -08:00
André Bargull b62dccf1dc Add test cases for recent ES2016 fixes
- lastIndex in RegExp.prototype[Symbol.split]: tc39/ecma262@08b4756747
- Missing number conversion in DataView.prototype.setXXX: tc39/ecma262@4f875fe96d
- Negative zero byteoffset in TypedArray: tc39/ecma262@2d1ed20db7
- EvalDeclarationInstantiation throws TypeError: tc39/ecma262@2be6968715
- BindingRestElement allows BindingPattern: tc39/ecma262@d322357e6b
- Eval in parameters with computed property keys: tc39/ecma262@04e2e9b719
- Use strict with non-simple parameters: tc39/ecma262@15b0db41ed
- __proto__ in strict mode: tc39/ecma262@5c1984334d
2015-12-15 17:33:49 +01:00
Jordan Harband 17e9f3aa00 Add Proxy tests to ensure observable semantics are maintained 2015-12-14 17:00:33 -08:00
Jordan Harband a9503d5543 Adding keys during enumeration should not result in their appearance.
Per 9bd1954950 and https://github.com/tc39/test262/pull/453#discussion_r47556411
2015-12-14 14:13:01 -08:00
Jordan Harband 3dea218911 Minor review feedback 2015-12-14 12:20:14 -08:00
Jordan Harband bf378352c7 Ensure fakeObject has "entries" and "values" 2015-12-14 12:15:21 -08:00
Gorkem Yakin 07eafc6651 Merge pull request #448 from anba/arraybuffer_coverage
Add tests for ArrayBuffer and ArrayBuffer.prototype.slice
2015-12-10 08:29:49 -08:00
Gorkem Yakin ca0e411870 Merge pull request #447 from anba/promise_coverage
Improve test coverage for various Promise methods
2015-12-10 08:29:38 -08:00
Rick Waldron 59dfae6311 Merge pull request #450 from cscott/promise-improvements
Remove unnecessary ES2015 syntax; add feature flags where appropriate.
2015-12-04 14:50:52 -05:00
André Bargull 4341537ecd Add 'class' features tag 2015-12-04 14:31:01 +01:00
C. Scott Ananian bae004d531 Remove unnecessary ES2015 syntax; add feature flags where appropriate.
This allows these tests to be more easily reused to test Promise
implementations in isolation.
2015-12-03 17:34:17 -05:00
Gorkem Yakin 47d3eb1bfe Merge pull request #446 from anba/es2016_december_update
Updates for ES2016 Draft 2015-12-01
2015-12-03 13:15:34 -08:00
Gorkem Yakin c65bb596c8 Merge pull request #445 from anba/builtin_functions
Test built-in function requirements of Promise and Proxy helper functions
2015-12-02 10:56:54 -08:00
André Bargull bd8c91e250 Updates for ES2016 Draft 2015-12-01
- RegExp.prototype[Symbol.split] calls ToUint32 (https://github.com/tc39/ecma262/issues/92)
- Species lookup removed from Promise.all and Promise.race (https://github.com/tc39/ecma262/issues/151)
- Generator functions are no longer constructors (https://github.com/tc39/ecma262/pull/171)

Fixes #444
2015-12-02 18:07:06 +01:00
André Bargull 5279bcb174 Improve test coverage for various Promise methods 2015-12-02 18:06:40 +01:00
André Bargull 6fcd24cd47 Add tests for ArrayBuffer and ArrayBuffer.prototype.slice 2015-12-02 18:05:12 +01:00
André Bargull 38c6700cbb Test built-in function requirements of Promise and Proxy helper functions 2015-11-24 20:12:55 +01:00
Jordan Harband 7a5385e2ab Add `es7id: pending` per https://github.com/tc39/test262/pull/95#issuecomment-157790248 2015-11-23 11:04:45 -06:00
Jordan Harband e459048f22 Add Object.values tests 2015-11-22 00:56:43 -06:00
Jordan Harband b517ca7119 Add Object.entries tests 2015-11-22 00:52:49 -06:00
Gorkem Yakin fd44cd73df Merge pull request #440 from anba/es2015_errata
Revert primitive wrapper prototypes and String#split to ES5
2015-11-13 09:51:18 -08:00
André Bargull 56d6eefb69 Fix expected completion value
- if-statement completion value semantics was not properly updated in ES2015
2015-11-11 17:47:15 +01:00
André Bargull 77297535af Interpret date-only forms as UTC
- Don't interpret date-only as local time
2015-11-11 17:46:32 +01:00
André Bargull 1da4c78051 Revert primitive wrapper prototypes and String#split to ES5
- Revert Number, Boolean and String prototypes to ES5 semantics
- Revert String.prototype.split's to ES5 behavior
2015-11-06 18:50:44 +01:00
Gorkem Yakin ea222fb7d0 Merge pull request #434 from jugglinmike/symbol-unscopables
Add tests for well-known Symbol: @@unscopables
2015-10-07 09:58:58 -07:00
Mike Pennisi e39f8d88c5 Add tests for well-known Symbol: @@unscopables 2015-10-05 11:57:31 -04:00
Gorkem Yakin 26e6fd7c17 Convert binary integers to octal in octal integer tests 2015-09-30 08:54:45 -07:00
Brian Terlson 0d9733e93b Merge pull request #432 from cfarm/increment-typo
fixes increment typo
2015-09-18 10:53:14 -07:00
Gorkem Yakin 117c3f386e Merge pull request #418 from bocoup/symbol-to-primitive
Add tests for well-known Symbol: @@toPrimitive
2015-09-18 09:07:51 -07:00