Leonardo Balter
6c56658974
Add tests for _TypedArray_.prototype methods
2016-03-01 15:36:34 -05:00
André Bargull
2acbd3e98e
Improve coverage for default class constructors
2016-03-01 19:15:21 +01:00
André Bargull
c46f5ff4b7
Increase coverage for %ThrowTypeError%
2016-03-01 19:13:43 +01:00
Gorkem Yakin
5a77ac86a9
Merge branch 'bocoup/for-restrictions'
2016-02-25 14:22:09 -08:00
Mike Pennisi
4dd2d9b7ee
Add tests for IterationStatement early errors
2016-02-25 14:21:08 -08:00
Gorkem Yakin
b35b39c4aa
Merge branch 'bocoup/module-code'
2016-02-25 13:51:47 -08:00
Gorkem Yakin
304dbf0569
Merge 'rwaldron/exponentiation-operator'
2016-02-23 14:25:05 -08:00
Gorkem Yakin
ed32ae6f4a
Convert "info" to "description"
2016-02-23 14:24:08 -08:00
Rick Waldron
e0afd42914
descriptions and info
2016-02-23 16:42:11 -05:00
André Bargull
1517615a21
Fix test bugs
2016-02-23 18:55:06 +01:00
Rick Waldron
79dfcf3e85
Restore missing object definitions
2016-02-22 19:17:24 -05:00
Rick Waldron
b92e68646d
improved info and description
2016-02-22 16:49:00 -05:00
Rick Waldron
104a134bc2
restore "info"
2016-02-22 16:41:45 -05:00
Rick Waldron
2a962f74be
id => esid
2016-02-22 14:47:47 -05:00
Rick Waldron
2a112a3190
Exponentiation Operator tests
2016-02-22 14:47:47 -05:00
Leonardo Balter
d9a277aa7c
Fix location based return value for Date on subclassing tests
...
Fixes #489
2016-02-22 13:53:43 -05:00
Leonardo Balter
bf782c8421
s/id/esid
...
Fixes #477
2016-02-22 09:47:42 -05:00
Gorkem Yakin
bd33b2b8e5
Merge pull request #509 from bocoup/typedarray-object-set
...
Add tests for _TypedArrays_(object) using object properties
2016-02-19 16:33:40 -08:00
Mike Pennisi
82abd59f35
Add test for strict mode of module code
2016-02-19 17:39:41 -05:00
Mike Pennisi
5006055c99
Add tests for `await` as an identifier
2016-02-19 17:39:41 -05:00
Mike Pennisi
a6dcd0dcca
Add tests for position of module declarations
...
Assert that ImportDeclaration and ExportDeclaration match only the
ModuleItem symbol.
According to the definition of HostResolveImportedModule, it is
acceptable for an implementation to throw a SyntaxError in the event
that a requested module can neither be found nor created:
> If a Module Record corresponding to the pair referencingModule,
> specifier does not exist or cannot be created, an exception must be
> thrown.
In order to reliably detect a SyntaxError in response to the correct
interpretation of the grammar (and not a SyntaxError from an *incorrect*
interpretation of the grammar followed by a failure to resolve the
requested module), the ModuleSpecifier of ExportDeclarations should
describe a valid resource.
2016-02-19 17:36:17 -05:00
Jordan Harband
a6fad62d7c
Last minute fixes
2016-02-19 11:27:31 -08:00
Jordan Harband
59dad9172b
Make proxy traps helper test a bit more robust.
...
Per https://github.com/tc39/test262/pull/484#discussion_r53228232
2016-02-17 12:50:26 -08:00
Mike Pennisi
62857dcba7
Rename IterationStatement tests
...
- Prefix file names to explicitly describe the "head" position
- Remove statement name suffix as this information is reflected by each
file's location within the file hierarchy
2016-02-16 12:03:21 -05:00
Jordan Harband
d530c87b41
Create `proxyTrapsHelper` to throw on all traps by default.
2016-02-13 15:56:47 -08:00
Leonardo Balter
c82ab8cdbd
Add extra tests for _TypedArrays_(object) using object properties
2016-02-13 03:55:53 -02:00
Gorkem Yakin
dbcc8cadf3
Merge pull request #507 from bocoup/remove-unused-file
...
Remove unused harness file
2016-02-12 17:16:01 -08:00
Gorkem Yakin
eeb44cbe09
Merge pull request #500 from bocoup/prms-guard-thenable-opt
...
Promise: Add tests to disallow faulty optimization
2016-02-12 17:06:34 -08:00
Gorkem Yakin
5de18ae0b6
Merge pull request #501 from bocoup/prms-then-ctor-access-count
...
Promise: Add test for constructor access count
2016-02-12 16:54:20 -08:00
Gorkem Yakin
147ff7f741
Merge pull request #499 from bocoup/reorg-annex-b
...
Reorganize tests for Annex B extensions
2016-02-12 16:49:06 -08:00
Gorkem Yakin
428418d5c7
Replace remaining es7id tags with id
2016-02-12 16:27:10 -08:00
Leonardo Balter
ebda746e6a
Replace es7id tags with id
2016-02-12 16:22:56 -08:00
Leonardo Balter
76080eac08
Reuse %TypedArray%.from and .of tests on each TypedArray constructor
2016-02-12 16:02:36 -08:00
Leonardo Balter
048073a29a
Add tests for _TypedArray_.from and of
2016-02-12 16:02:36 -08:00
Leonardo Balter
35dce20ec4
Update tests for %TypedArray%.from and of
2016-02-12 16:02:36 -08:00
Gorkem Yakin
02cbd01bfb
Merge pull request #486 from bocoup/object-setprototypeof
...
Add tests for [[SetPrototypeOf]] on immutable prototype exotic objects
2016-02-12 14:59:25 -08:00
Gorkem Yakin
ac7711e95f
Merge pull request #485 from bocoup/typedarray-constructor
...
Add tests for _TypedArray_ constructors
2016-02-12 14:47:48 -08:00
Mike Pennisi
071b5f03c6
Remove unused harness file
...
The harness file `Test262Error.js` has not contained executable code since it
was introduced in this project [1]. The definition of the `Test262Error`
function has consistently been located in the `sta.js` harness file which test
runners are expected to inject into the test environment.
Remove the file and all references to it.
[1] See commit c33bf0e043
2016-02-12 13:44:18 -05:00
Mike Pennisi
23d566209a
Make asynchronous test configuration explicit
...
For asynchronous tests, the contract between test file and test runner
is implicit: runners are expected to inspect the source code for
references to a global `$DONE` identifier.
Promote a more explicit contract between test file and test runner by
introducing a new frontmatter "tag", `async`. This brings asynchronous
test configuration in-line with other configuration mechanisms and also
provides a more natural means of test filtering.
The modifications to test files was made programatically using the
`grep` and `sed` utilities:
$ grep "\$DONE" test/ -r --files-with-match --null | \
xargs -0 sed -i 's/^\(flags:\s*\)\[/\1[async, /g'
$ grep "\$DONE" test/ -rl --null | \
xargs -0 grep -E '^flags:' --files-without-match --null | \
xargs -0 sed -i 's/^---\*\//flags: [async]\n---*\//'
2016-02-12 13:03:19 -05:00
Leonardo Balter
df2d760d60
Add tests for Object.prototype extensibility and its immutable prototype
...
Object.prototype is extensible and an immutable prototype exotic object,
it's [[Prototype]] value is null
Ref tc39/ecma262#308
2016-02-12 13:10:46 -02:00
Mike Pennisi
e3fae6eeb4
Promise: Add test for constructor access count
...
Assert that the `constructor` property of the "this" value of
`Promise.prototype.then` is accessed exactly once. This guards against
implementations where repeated access is used instead of reference
passing (possibly motivated by convenience).
Repeated access of this kind was demonstrated by V8's implementation of
the specification:
https://bugs.chromium.org/p/v8/issues/detail?id=4539
2016-02-10 13:56:55 -05:00
Mike Pennisi
219bdc6f73
Promise: Add tests to disallow faulty optimization
...
Add tests that assert behavior when a Promise is resolved with another
Promise whose `then` method has been overridden. Because all objects
with a `then` method are treated equivalently, the presence of a
[[PromiseState]] internal slot should have no effect on program
behavior.
These tests guard against a faulty optimization originally implemented
in V8:
https://bugs.chromium.org/p/v8/issues/detail?id=3641
2016-02-10 13:38:03 -05:00
Mike Pennisi
fbce4ea11c
Reorganize tests for Annex B extensions
...
The "mainline" tests in Test262 are converging on a more formal
structure. Files are organized as tests for either either "language"
(e.g. syntax-driven) or "built-in" (e.g. API-driven). "Language" test
locations are themselves structured according to whether the syntactic
form under test is an Expression or a Statement.
To limit ambiguity when locating/adding tests, re-organize the tests for
Annex B extensions to match this structure.
2016-02-10 10:15:35 -05:00
Gorkem Yakin
26aeed1428
Merge pull request #494 from bocoup/indexof-zero
...
Add tests for zero conversion on Array#indexOf and Array#lastIndexOf
2016-02-05 15:38:45 -08:00
Leonardo Balter
26785d40ca
Add tests for zero conversion on Array#indexOf and Array#lastIndexOf
...
Fixes #435
2016-02-05 19:17:26 -02:00
Gorkem Yakin
7cd2112bf1
Merge pull request #490 from bocoup/reorg-obj
...
Move tests for object literals
2016-02-05 09:04:40 -08:00
Leonardo Balter
75952beee2
Move test file from TypedArray to TypedArrays folder
2016-02-05 11:58:55 -02:00
Leonardo Balter
0a30413b49
fixup! rename test files + review fixes
2016-02-05 11:53:33 -02:00
Leonardo Balter
d033b160cb
fixup! Add tests for TypedArrays constructors
2016-02-05 11:53:32 -02:00
Leonardo Balter
7a8120fb63
fixup! Add tests for TypedArrays constructors
2016-02-05 11:53:32 -02:00
Leonardo Balter
f8a4229bfd
Add tests for TypedArrays constructors
2016-02-05 11:53:32 -02:00
Leonardo Balter
4bdd808d04
Update %TypedArray% function length
2016-02-05 11:53:32 -02:00
Leonardo Balter
7d715a4ef1
Revalidate basic call tests for ES2016 %TypedArray% constructor
2016-02-05 11:53:31 -02:00
Mike Pennisi
700f1469e1
Move tests for object literals
...
Test262 defines tests for expression-producing syntactic forms within
the `language/expressions/` directory. Most tests for object literals
conform to this structure, but 12 such tests were added to the
`language/object-literal/` directory. Move these tests to the canonical
location for object literals.
2016-02-04 09:58:31 -05:00
Jordan Harband
cf83ad5e73
s/esid/id/g
2016-02-01 23:44:48 -08:00
Jordan Harband
940d8698d1
Add test with duplicate keys.
...
Per https://github.com/tc39/test262/pull/484#issuecomment-178145781
2016-02-01 16:57:31 -08:00
Jordan Harband
0a5e8372aa
Review feedback.
2016-02-01 10:44:25 -08:00
Mike Pennisi
4dc81d3788
Add tests for tail-call optimization
...
ECMAScript 2015 introduced tail call optimization for function calls
occuring in a number of positions in the grammar. Assert expected
behavior by triggering a large (but configurable) number of recursive
function calls in these positions. Compliant runtimes will execute such
programs without error; non-compliant runtimes are expected to fail
these tests by throwing an error or crashing when system resources are
exhausted.
2016-02-01 13:20:17 -05:00
Jordan Harband
cf578d5190
Add Object.getOwnPropertyDescriptors tests.
2016-02-01 01:45:23 -08:00
Gorkem Yakin
07aafd0c63
Merge pull request #505 from anba/intl_name
...
Add coverage for 'name' property of Intl built-in functions
2016-02-19 11:04:38 -08:00
Leonardo Balter
efced6eb32
Add test to assert Reflect.enumerate is now undefined
...
Ref #495
2016-02-18 16:40:00 -05:00
Leonardo Balter
65241f1e93
Add test to assert Proxy enumerate trap is not triggered anymore
...
Ref #495
2016-02-18 16:39:41 -05:00
Leonardo Balter
63c1f1ca88
Remove tests for Reflect.enumerate
...
Ref #495
2016-02-18 15:57:14 -05:00
Leonardo Balter
e223738369
Remove tests for Proxy enumerate
...
Ref #495
2016-02-18 15:57:14 -05:00
Leonardo Balter
a61fca93fa
Fix test for TypedArrays.from on callable function
...
TypedArrays constructors are still callable even if they trigger a
TypeError Exception when a new target is not defined
2016-02-18 13:39:49 -05:00
André Bargull
31a9036e9b
Add coverage for 'name' property of Intl built-in functions
2016-02-12 18:58:57 +01:00
Leonardo Balter
e3c5f66a40
Fix case sentitive error on test/built-ins/Object folder
...
Fixes gh-482
2016-01-29 10:02:25 -05:00
Gorkem Yakin
052bf2379b
Merge pull request #475 from bocoup/completion-reform
...
Tests for ES2015/2016 Completion Reform
2016-01-26 12:38:27 -08:00
Tom Schuster
97c61513d8
Stop test262 from hanging Spidermonkey with an unimportant error message
2016-01-23 17:41:59 +01:00
Mike Pennisi
e62d43c815
Update tests according to ES2016 draft semantics
...
The ES2016 draft further refines the completion values for `if` and
`with` statements. Two tests must be removed outright because the
completion value in those cases is no longer accessible from the
runtime.
2016-01-22 15:00:54 -05:00
Mike Pennisi
407b8964ce
Add tests for ES2015 completion reform
...
In order to facilitate proper tail calls, ES2015 modified the completion
value of a number of statements.
These tests use `eval` to verify the new values.
2016-01-22 15:00:03 -05:00
Leonardo Balter
1a64295a0b
Replace TypedArray constructor invalid length test for ES2016 specs
...
Replace a ES2015 test where calling the TypedArray constructor with
a floating number triggered a RangeError. Within the ES2016 specs,
the same call will trigger a TypeError, as the result for
`SameValue(NewTarget, here)` will be checked before.
2016-01-21 10:41:16 -05:00
Mike Pennisi
8f8b663ce7
Add tests for TypedArray intrinsic
2016-01-21 10:41:16 -05:00
Gorkem Yakin
e56687f5e9
Merge pull request #473 from bocoup/for-inof-exprs
...
Add tests for iterator expression in ForIn/Of head
2016-01-19 18:42:11 -08:00
Gorkem Yakin
738a24b109
Merge pull request from jugglinmike/improve-promise-coverage-resolve ( closes #463 )
2016-01-19 16:33:23 -08:00
Mike Pennisi
b1b4f04494
Add tests for Promise Resolve Functions
...
Remove files that tested both PerformPromiseThen and
PromiseResolveFunction in favor of new tests that test
PromiseResolveFunction more directly and completely.
2016-01-19 16:32:36 -08:00
Mike Pennisi
19762b927a
Add tests for iterator expression in ForIn/Of head
...
Although the `for..in` statement allows Expressions to define the
iterator, only an AssignmentExpression may occupy this position in the
`for..of` statement.
2016-01-19 12:27:33 -05:00
Gorkem Yakin
4a862fba95
Merge pull request #465 from jugglinmike/improve-promise-coverage-all-race
...
Improve Promise coverage: PerformPromiseAll & PeformPromiseRace
2016-01-15 16:19:18 -08:00
André Bargull
33395b52f5
Add basic surface tests for NativeErrors
2016-01-15 18:13:36 +01:00
André Bargull
1bac79fbf3
Add basic surface tests for TypedArrays
2016-01-15 18:13:08 +01:00
André Bargull
42edfd6e89
Add missing tests for "length" and "name" properties of %TypedArray% built-in functions
2016-01-15 18:12:42 +01:00
André Bargull
ca61d9b876
Add missing tests for "length" and "name" properties of built-in functions
...
Note: Already uses the updated DataView function lengths from tc39/ecma262#266 (ES2016 Draft 2015-12-20)
2016-01-15 18:12:05 +01:00
André Bargull
bb1bda6dfd
Add missing tests for "length" and "name" properties of AnnexB built-in functions
2016-01-15 18:11:38 +01:00
André Bargull
5e3eed63b9
Move Symbol.species and AnnexB tests to new subfolders
2016-01-15 18:11:03 +01:00
Gorkem Yakin
4d418a9fe7
Merge pull request #468 from bocoup/subclassing
...
Subclassing built-in objects
2016-01-14 11:48:57 -08:00
Gorkem Yakin
cd60a6d83a
Merge pull request #464 from jugglinmike/improve-promise-coverage-cap
...
Improve Promise coverage: NewPromiseCapability
2016-01-13 16:49:47 -08:00
Gorkem Yakin
9d48bb0875
Merge pull request #462 from jugglinmike/improve-promise-coverage-reject
...
Improve Promise coverage: Promise Reject Function
2016-01-13 16:49:21 -08:00
Gorkem Yakin
8e76f6ca62
Merge pull request #461 from jugglinmike/improve-promise-coverage-then
...
Improve Promise coverage: Promise.prototype.then
2016-01-13 16:49:17 -08:00
Gorkem Yakin
c9764dc5b5
Merge pull request #460 from bocoup/destructuring-binding
...
Destructuring Binding - syntax and simple initialization
2016-01-13 16:03:24 -08:00
Gorkem Yakin
e7f4e4324a
Merge pull request #455 from anba/instanceof_op
...
Add tests for instanceof operator when prototype property is primitive or getter
2016-01-13 14:59:17 -08:00
Leonardo Balter
42d1a10d6d
fixup! Add tests for Array - calling super with a single argument
2016-01-13 13:28:00 -05:00
Leonardo Balter
c99ace29d7
Move subclass tests to test/language/statements/class/subclass/builtin-objects
2016-01-12 16:45:03 -05:00
Leonardo Balter
705940d205
Add tests for Subclassing the built-in Proxy Object
2016-01-12 16:40:19 -05:00
Leonardo Balter
d30e98df53
Add tests for Subclassing the built-in Promise Objects
2016-01-12 16:39:00 -05:00
Leonardo Balter
85ee704ad7
Add tests for Subclassing the built-in GeneratorFunction Objects
2016-01-12 15:17:59 -05:00
Leonardo Balter
4e079a8cab
Add tests for Subclassing the built-in DataView Objects
2016-01-12 14:02:00 -05:00
Leonardo Balter
0c40ed0cf0
Add tests for Subclassing the built-in ArrayBuffer Objects
2016-01-11 17:57:47 -05:00
Leonardo Balter
4ad09e5060
Add tests for Subclassing the built-in WeakSet Objects
2016-01-11 17:57:47 -05:00
Leonardo Balter
ff3724fd43
Add tests for Subclassing the built-in WeakMap Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
194b6b597f
Add tests for Subclassing the built-in Set Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
ba1482df8a
Add tests for Subclassing the built-in Map Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
6fdf6dd752
Add tests for Subclassing the built-in TypedArray Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
27764aa355
Add tests for Subclassing the built-in String Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
fc160c78ad
Add tests for Subclassing the built-in RegExp Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
5be3a8019d
Add tests for Subclassing the built-in Date Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
f5b5ad47e5
Add tests for Subclassing the built-in Number Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
67ec7fbf7b
Add tests for Subclassing the built-in NativeError Objects
2016-01-11 17:57:44 -05:00
Leonardo Balter
390c7a7fdb
Add tests for Subclassing the built-in Error Object
2016-01-11 17:57:44 -05:00
Leonardo Balter
a5b3c84fbd
Add tests for Subclassing the built-in Symbol Object
2016-01-11 17:57:43 -05:00
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
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
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
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
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
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
Catherine Farman
b175e34478
fixes increment typo
2015-09-18 11:14:32 -04:00
Gorkem Yakin
df1d78d10f
Merge pull request #399 from bocoup/symbol-match
...
Add tests for @@match
2015-09-14 14:29:28 -07:00
Mike Pennisi
62d5787b09
Add tests for @@match
...
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.
2015-09-14 17:16:37 -04:00
Mike Pennisi
a63d75c1b6
Add tests for well-known Symbol: @@toPrimitive
...
Split up test files as per review feedback.
2015-09-12 14:47:38 -04:00
Gorkem Yakin
32efa4a289
Merge pull request #407 from bocoup/symbol-split
...
Add tests for well-known Symbol: @@split
2015-09-10 16:57:00 -07:00
Mike Pennisi
8879cde471
Add tests for well-known Symbol: @@search
2015-09-08 19:15:19 -04:00
Rick Waldron
acf2d0cb11
Merge pull request #408 from anba/es2015_changes
...
Tests for changes introduced in ES2015 (Annex E)
2015-09-07 15:32:36 -04:00
Rick Waldron
5ddb903e98
Merge pull request #393 from anba/non-browser
...
Improve compatibility for engines without support for Annex B and non-standard features
2015-09-07 15:32:03 -04:00
Rick Waldron
4cb2d26044
Merge pull request #398 from anba/special_casing
...
String.prototype.to{Lower,Upper} tests for special casing
2015-09-07 15:31:42 -04:00
André Bargull
ffec41b7af
Improve compatibility for engines without support for Annex B
2015-09-07 20:40:09 +02:00
André Bargull
3a30a72269
Add tests for special case mappings
2015-09-07 18:22:07 +02:00
André Bargull
df9bf58204
Tests for changes introduced in ES2015 (Annex E)
...
- String case functions iterate over code points
- Has called before Get in Array.p.reverse
- Add test for web-compat Array.p.splice behaviour; Plus missing test for no arguments case
- ToObject no longer applied to this-value in Array.p.toLocaleString
- ToObject no longer applied to this-value in Object.p.toLocaleString
- Add tests for Object.p.propertyIsEnumerable and symbol property keys
- Add tests for Object.p.hasOwnProperty and symbol property keys
- Test property descriptor attributes of message property
- Tests for RegExp constructor checks
- Date constructor when called with date object
- TimeClip never returns negative zero
2015-09-07 17:25:55 +02:00
unknown
35038fdb10
update tests for arrow-function
2015-09-07 14:51:11 +08:00
Rick Waldron
03d2f68c9c
Remove all remaining occurrences of runTestCase
2015-09-04 16:47:13 -04:00
Gorkem Yakin
fb09f50296
Merge pull request #391 from bocoup/Reflect
...
Add tests for Reflect
2015-09-04 12:22:35 -07:00
Rick Waldron
9ccc663936
Merge pull request #415 from anba/remove-runTestCase-finally
...
Replace runTestCase when used with try-finally
2015-09-04 15:20:26 -04:00
Rick Waldron
2bfe4a4716
Merge pull request #416 from anba/remove-runTestCase-language-rest
...
Replace runTestCase in test/language (part 2)
2015-09-04 15:18:40 -04:00
Leonardo Balter
40675b1eb5
Add tests for Reflect.setPrototypeOf
2015-09-04 14:50:15 -04:00
Leonardo Balter
d3743c3ba7
Add tests for Reflect.set
2015-09-04 14:50:15 -04:00
Leonardo Balter
e7f5f3cf58
Add tests for Reflect.preventExtensions
2015-09-04 14:50:14 -04:00
Leonardo Balter
bc51cfa0e0
Add tests for Reflect.ownKeys
2015-09-04 14:50:14 -04:00
Leonardo Balter
a66ae7cbce
Add tests for Reflect.isExtensible
2015-09-04 14:50:14 -04:00
Leonardo Balter
257bd7b48e
Add tests for Reflect.has
2015-09-04 14:50:14 -04:00
Leonardo Balter
b2fd133f88
Add tests for Reflect.getPrototypeOf
2015-09-04 14:50:13 -04:00
Leonardo Balter
ec82bff120
Add tests for Reflect.getOwnPropertyDescriptor
2015-09-04 14:50:13 -04:00
Leonardo Balter
efac2336c2
Add tests for Reflect.get
2015-09-04 14:50:12 -04:00
Leonardo Balter
6326408215
Add tests for Reflect.enumerate
2015-09-04 14:50:12 -04:00
Leonardo Balter
ed233ccb2d
Add tests for Reflect.deleteProperty
2015-09-04 14:50:11 -04:00
Leonardo Balter
2fcf931f81
Add tests for Reflect.defineProperty
2015-09-04 14:50:11 -04:00
Rick Waldron
f74b1cb02c
Remove leftover "includes: [runTestCase.js]"
2015-09-04 13:46:54 -04:00
Leonardo Balter
980e50441f
Add tests for Reflect.construct
2015-09-04 13:33:09 -04:00
Leonardo Balter
bdcf4fd877
Add tests for Reflect.apply
2015-09-04 13:33:08 -04:00
Leonardo Balter
ff961826da
Add tests for the Reflect object
2015-09-04 13:33:08 -04:00
Rick Waldron
a2554d909b
Merge branch 'remove-runTestCase-builtins-other' of https://github.com/anba/test262 into anba-remove-runTestCase-builtins-other
...
# By André Bargull
# Via André Bargull
* 'remove-runTestCase-builtins-other' of https://github.com/anba/test262 :
Replace runTestCase with assert helpers, rest [test/built-ins]
Replace runTestCase with assert helpers [test/built-ins]
Conflicts:
test/built-ins/Array/from/S22.1.2.1_T1.js
test/built-ins/Array/from/S22.1.2.1_T2.js
test/built-ins/Array/from/S22.1.2.1_T3.js
2015-09-04 13:25:41 -04:00
Leonardo Balter
73409cea4e
Add tests for default parameters
2015-09-02 18:01:51 -04:00
Rick Waldron
e80b669a37
Merge pull request #404 from bocoup/update-array-from
...
Update tests for Array.from
2015-09-02 17:37:30 -04:00
Leonardo Balter
3bdc467c51
Update tests for Array.from
...
- fixed a false positive where argument-passed-null.js was returning a TypeError from 22.1.2.1 step 5
- created 2 tests from argument-passed-null to assert this as null and items as null
- fixed reference info on Array.from_arity.js
- fix tests at Array.from_forwards-length-for-array-likes
- static checks on calling-from-valid-1-onlyStrict.js
- static checks on calling-from-valid-1-noStrict.js
- static checks on calling-from-valid-2.js
- removed create-typedarray-from.js, that test belong to es6id 22.2.2.1
- removed mapfn-invalid-typeerror-1.js - false positive from 22.1.2.1 step 5
- moved mapfn-invalid-typeerror-2.js to more spread tests where mapfn is not callable
- ...
2015-09-02 17:36:11 -04:00
Rick Waldron
a2a92d0765
Merge pull request #402 from bocoup/symbol-replace
...
Add tests for well-known Symbol: @@replace
2015-09-02 17:20:17 -04:00
Rick Waldron
574c87b167
Merge pull request #390 from bocoup/Array.prototype.copyWithin
...
Add tests for Array.prototype.copyWithin
2015-09-02 17:16:07 -04:00
Rick Waldron
50423896d5
Merge pull request #414 from bocoup/symbol-to-string-tag
...
Add tests for well-known Symbol: @@toStringTag
2015-09-02 17:15:55 -04:00
Gorkem Yakin
c04984872d
Merge pull request #370 from bocoup/symbol-has-instance
...
Add tests for well-known Symbol, @@hasInstance
2015-08-31 16:32:55 -07:00
Dan Ehrenberg
a58a3a0ad9
Fix Array.from_arity test
...
An extra newline in a comment prevented the import from being parsed properly.
2015-08-25 14:37:37 -07:00
Brian Terlson
c4231d4948
Merge pull request #420 from bakkot/patch-1
...
Wrong error message in function-code/S10.2.1_A1.js
2015-08-24 15:25:32 -07:00
Kevin Gibbons
69969e16b1
Remove extraneous indent in header, for consistency
2015-08-24 15:24:10 -07:00
Kevin Gibbons
8759c88bec
Wrong error message in function-code/S10.2.1_A1.js
2015-08-18 17:47:02 -07:00
Mike Pennisi
4e88365dc6
Add tests for well-known Symbol: @@toPrimitive
2015-08-16 18:37:22 -04:00
André Bargull
4ec97779fd
Replace runTestCase with assert helpers, rest [test/built-ins]
2015-08-13 17:57:23 +02:00
André Bargull
1b14708467
Replace runTestCase with assert helpers [test/built-ins]
2015-08-13 17:50:58 +02:00
André Bargull
bd603294cb
Replace runTestCase with assert, try-finally
2015-08-13 17:43:11 +02:00
André Bargull
52a706c022
Replace runTestCase with assert, try-finally, [test/built-ins/Array]
2015-08-13 17:42:40 +02:00
André Bargull
6b48d9f1b2
Replace runTestCase with assert, try-finally, [test/built-ins/Object]
2015-08-13 17:42:06 +02:00
André Bargull
8447a55e49
Replace runTestCase with assert helpers [test/language/directive-prologue]
2015-08-13 17:35:04 +02:00
André Bargull
789224fbaa
Replace runTestCase with assert helpers [test/language/function-code]
2015-08-13 17:34:40 +02:00
André Bargull
73d5292b77
Replace runTestCase with assert helpers [test/language/expressions]
2015-08-13 17:34:17 +02:00
André Bargull
ee8a222125
Replace runTestCase with assert helpers [test/language/statements]
2015-08-13 17:33:42 +02:00
André Bargull
2d5e7e0d44
Replace runTestCase with assert helpers [test/language/literals]
2015-08-13 17:33:06 +02:00
André Bargull
2fe6cac16a
Replace runTestCase with assert helpers [test/language/reserved-words]
2015-08-13 17:32:43 +02:00
André Bargull
ba1b02a047
Replace runTestCase with assert helpers [test/language/eval-code]
2015-08-13 17:32:19 +02:00
André Bargull
27b234f708
Replace runTestCase with assert helpers [test/language/arguments-object]
2015-08-13 17:31:54 +02:00
Brian Terlson
39b5b7272c
Merge pull request #392 from anba/remove-runTestCase-throws
...
Replace runTestCase with assert.throws
2015-08-11 10:42:07 -07:00
André Bargull
4f35b40617
Replace runTestCase with assert helpers [test/built-ins/Object]
2015-08-11 17:53:40 +02:00
André Bargull
44bc67797e
Replace runTestCase with assert helpers [test/built-ins/Object/defineProperties]
2015-08-11 17:53:17 +02:00
André Bargull
0a37298b46
Replace runTestCase with assert helpers [test/built-ins/Object/defineProperty]
2015-08-11 17:52:55 +02:00
André Bargull
c2a61d1735
Replace runTestCase with assert helpers [test/built-ins/Object/{getOwnPropertyNames, keys}]
2015-08-11 17:52:32 +02:00
André Bargull
ed0a2bad55
Replace runTestCase with assert helpers [test/built-ins/Object/getOwnPropertyDescriptor]
2015-08-11 17:52:09 +02:00
André Bargull
8d358cbd07
Replace runTestCase with assert helpers [test/built-ins/Object/is{Frozen, Extensible, Sealed}]
2015-08-11 17:51:42 +02:00
André Bargull
9cc4016866
Replace runTestCase with assert helpers [test/built-ins/Object/{freeze, preventExtensions, seal}]
2015-08-11 17:51:16 +02:00
André Bargull
4facaaab5f
Replace runTestCase with assert helpers [test/built-ins/Object/create]
2015-08-11 17:50:53 +02:00
André Bargull
589b638ab5
Replace runTestCase with assert.throws [test/built-ins]
2015-08-11 17:44:37 +02:00
André Bargull
edc902aff5
Replace runTestCase with assert.throws [test/built-ins/Array]
2015-08-11 17:44:26 +02:00
André Bargull
f3e919209c
Replace runTestCase with assert.throws [test/built-ins/Object]
2015-08-11 17:43:48 +02:00
André Bargull
1f97345668
Replace runTestCase with assert.throws [test/language/]
2015-08-11 17:43:21 +02:00
André Bargull
7f55f60b5f
Replace runTestCase with assert.throws [test/language/statements]
2015-08-11 17:43:01 +02:00
André Bargull
3de484fe83
Replace runTestCase with assert.throws [test/language/expressions]
2015-08-11 17:42:41 +02:00
Mike Pennisi
d6bbbc9aed
Add tests for well-known Symbol: @@toStringTag
2015-08-07 20:02:44 -04:00
Brian Terlson
9cb89a4e3c
Merge pull request #411 from anba/remove-runTestCase-language
...
Replace runTestCase in test/language
2015-08-06 10:24:08 -07:00
Brian Terlson
d58c8b9a99
Merge pull request #410 from anba/remove-runTestCase-builtins
...
Replace runTestCase in test/built-ins
2015-08-06 10:23:59 -07:00
André Bargull
d45d495ee6
Replace runTestCase with assert helpers [test/language/function-code]
2015-08-06 18:34:38 +02:00
André Bargull
f939067d0e
Replace runTestCase with assert helpers [test/language/future-reserved-words]
2015-08-06 18:34:15 +02:00
André Bargull
4c582732d0
Replace runTestCase with assert helpers [test/language/line-terminators]
2015-08-06 18:33:54 +02:00
André Bargull
31f027dc03
Replace runTestCase with assert helpers [test/language/types]
2015-08-06 18:33:32 +02:00
André Bargull
3c3e0a6adb
Replace runTestCase with assert helpers [test/language/statements/]
2015-08-06 18:33:10 +02:00
André Bargull
713df280e5
Replace runTestCase with assert helpers [test/language/statements/for]
2015-08-06 18:32:38 +02:00
André Bargull
efabdf8474
Replace runTestCase with assert helpers [test/language/expressions/]
2015-08-06 18:32:15 +02:00
André Bargull
c7e160084c
Replace runTestCase with assert helpers [test/language/expressions/object]
2015-08-06 18:31:44 +02:00
André Bargull
4eac0d909e
Replace runTestCase with assert helpers [test/language/expressions/delete]
2015-08-06 18:31:06 +02:00
André Bargull
ba8a41efe9
Replace runTestCase with assert helpers [test/language/arguments-object]
2015-08-06 18:30:42 +02:00
André Bargull
7d6d983ff9
Replace runTestCase with assert helpers [test/built-ins/]
2015-08-06 18:27:21 +02:00
André Bargull
50c29deb29
Replace runTestCase with assert helpers [test/built-ins/RegExp]
2015-08-06 18:26:59 +02:00
André Bargull
6cd7b9e275
Replace runTestCase with assert helpers [test/built-ins/Number]
2015-08-06 18:26:38 +02:00
André Bargull
33a7e03a76
Replace runTestCase with assert helpers [test/built-ins/Math]
2015-08-06 18:26:26 +02:00
André Bargull
8ea6a7e374
Replace runTestCase with assert helpers [test/built-ins/JSON]
2015-08-06 18:25:42 +02:00
André Bargull
bec8782918
Replace runTestCase with assert helpers [test/built-ins/Date]
2015-08-06 18:25:18 +02:00
André Bargull
cf231fb03b
Replace runTestCase with assert helpers [test/built-ins/Error]
2015-08-06 18:24:55 +02:00
André Bargull
60a2879133
Replace runTestCase with assert helpers [test/built-ins/Function]
2015-08-06 18:24:43 +02:00
André Bargull
b1ecdd00e8
Replace runTestCase with assert helpers [test/built-ins/String]
2015-08-06 18:23:58 +02:00
André Bargull
a3bfd5a61f
Replace runTestCase with assert helpers [test/built-ins/Array]
2015-08-06 18:19:54 +02:00
André Bargull
174f24b2f3
Replace runTestCase with assert helpers [test/built-ins/Array/prototype/reduceRight]
2015-08-06 18:19:31 +02:00
André Bargull
df43797c70
Replace runTestCase with assert helpers [test/built-ins/Array/prototype/reduce]
2015-08-06 18:18:58 +02:00
André Bargull
976a687b27
Replace runTestCase with assert helpers [test/built-ins/Array/prototype/map]
2015-08-06 18:18:33 +02:00
André Bargull
e2e4fa4c93
Replace runTestCase with assert helpers [test/built-ins/Array/prototype/filter]
2015-08-06 18:17:56 +02:00
André Bargull
354b7cc11b
Replace runTestCase with assert helpers [test/built-ins/Array/prototype/lastIndexOf]
2015-08-06 18:17:18 +02:00
André Bargull
7510a91a7e
Replace runTestCase with assert helpers [test/built-ins/Array/prototype/indexOf]
2015-08-06 18:16:54 +02:00
André Bargull
659aa4c0f8
Replace runTestCase with assert helpers [test/built-ins/Array/prototype/some]
2015-08-06 18:16:23 +02:00
André Bargull
a87aedd8a5
Replace runTestCase with assert helpers [test/built-ins/Array/prototype/every]
2015-08-06 18:15:59 +02:00
André Bargull
e8246fd9f0
Replace runTestCase with assert helpers [test/built-ins/Array/prototype/forEach]
2015-08-06 18:14:23 +02:00
Mike Pennisi
4693197b0c
Add tests for well-known Symbol: @@split
2015-08-06 09:52:51 -04:00
Brian Terlson
e06ede9a65
Merge pull request #401 from anba/remove_invalid_array_from_test
...
Remove invalid Array.from test
2015-08-05 13:32:32 -07:00
Brian Terlson
3a7db54b3e
Merge pull request #403 from bocoup/fixes-proxy
...
Small fixes on Proxy constructor tests
2015-08-05 11:02:26 -07:00
Mike Pennisi
bb0cbeb655
Add tests for well-known Symbol: @@replace
2015-08-05 09:39:00 -04:00
André Bargull
da6c9b964c
Remove invalid Array.from test
2015-08-05 07:25:31 +02:00
unknown
e3cf0acb1c
update tests for Array.from
2015-08-03 18:20:24 +08:00
Leonardo Balter
fbf3b89870
Small fixes on Proxy constructor tests
2015-07-31 17:03:02 -04:00
Leonardo Balter
e72f4bcd62
fixup! Add tests for Array.prototype.copyWithin
2015-07-31 16:46:46 -04:00
Leonardo Balter
2a32ff4a66
fixup! Add tests for Array.prototype.copyWithin
2015-07-31 16:44:28 -04:00
André Bargull
932bd1a12c
Move intl tests to sub-folders
2015-07-31 17:12:08 +02:00
Brian Terlson
eea8807d40
Merge pull request #355 from anba/regexp-unicode
...
B.1.4 and Unicode RegExps
2015-07-30 15:31:16 -07:00
André Bargull
d1f718f806
Change test descriptions
2015-07-29 17:24:16 +02:00
André Bargull
99e32c6912
Add assertion messages
2015-07-29 17:23:48 +02:00
Mike Pennisi
652e35bd32
Add tests for well-known Symbol, @@hasInstance
...
Assert the behavior of the built-in method on the FunctionPrototype and
the usage of the Symbol by the `instanceof` operator.
2015-07-28 00:08:55 -04:00
Brian Terlson
d40961b334
Merge pull request #378 from bocoup/Array.of
...
Add tests for Array.of
2015-07-27 17:27:20 -07:00
Brian Terlson
a89613b4f1
Merge pull request #388 from bocoup/array-find-and-findindex
...
Update tests for Array#find and Array#findIndex
2015-07-27 17:27:16 -07:00
Leonardo Balter
9ed21dc963
Update tests for Array.of
2015-07-27 20:19:09 -04:00
Leonardo Balter
6a440ee616
Update tests for Array.prototype.findIndex
2015-07-27 20:17:43 -04:00
Leonardo Balter
88435c5201
Update tests for Array.prototype.find
2015-07-27 20:17:43 -04:00
Leonardo Balter
e64e17f750
Add and update tests for Array.prototype.fill
2015-07-27 20:16:39 -04:00
Leonardo Balter
935da0827b
Add tests for Array.prototype.copyWithin
2015-07-27 20:14:45 -04:00
Brian Terlson
02fbde769c
Merge pull request #381 from bocoup/array-iterator-methods
...
Add and update tests for Array.prototype iterator methods.
2015-07-27 17:08:19 -07:00
Brian Terlson
791b25ebbc
Merge pull request #377 from bocoup/symbol-iterator
...
Add tests for @@iterator
2015-07-27 16:45:51 -07:00
Brian Terlson
d54ff00df2
Merge pull request #369 from littledan/master
...
Reinforce test for the use of ToLength(lastIndex) in RegExp
2015-07-24 14:00:45 -07:00
Brian Terlson
cd4461c89e
Merge pull request #380 from bocoup/String.prototype.endsWith
...
Add and update tests for String.prototype.endsWith
2015-07-24 12:51:52 -07:00
Leonardo Balter
33c791e722
String.prototype.startsWith
2015-07-24 15:29:35 -04:00
Leonardo Balter
cc4230564a
String.prototype.endsWith
2015-07-24 15:28:35 -04:00
Brian Terlson
bdd84fb6ae
Merge pull request #352 from bocoup/es6-regexp-u
...
Add tests for RegExp `u` flag
2015-07-24 11:45:18 -07:00
Mike Pennisi
9068608ab7
Add tests for RegExp `u` flag
2015-07-24 14:43:20 -04:00
Mike Pennisi
71fa7b570c
Add tests for @@isConcatSpreadable
2015-07-24 14:42:35 -04:00
Leonardo Balter
096b31a05b
String.prototype.includes
2015-07-23 18:50:59 -04:00
Brian Terlson
57b3d1752b
Merge pull request #366 from bocoup/String.prototype.repeat
...
Add tests for String.prototype.repeat
2015-07-22 17:13:44 -07:00
Brian Terlson
d2c6a3f142
Merge pull request #361 from bocoup/function-name
...
Add tests for function `name` attribute
2015-07-21 18:55:30 -07:00
Mike Pennisi
2fe074134a
Add tests for function `name` attribute
...
This change set includes tests for most invocations of the
SetFunctionName abstract operation in the ES2015 specification.
Practical testing considerations preclude the introduction of tests for
certain invocations:
- The project is still vetting methods to sustainably test the semantics
of the Destructuring Binding pattern across all valid productions.
- 13.3.3.6 Runtime Semantics: IteratorBindingInitialization
- 13.3.3.7 Runtime Semantics: KeyedBindingInitialization
- Without a loader, there is no way to access a function object declared
in an ExportDeclaration, so `name` assignment cannot be tested in
these cases
- 14.1.19 Runtime Semantics: InstantiateFunctionObject
- 14.4.12 Runtime Semantics: InstantiateFunctionObject
- 14.5.15 Runtime Semantics: BindingClassDeclarationEvaluation
- 15.2.3.11 Runtime Semantics: Evaluation
2015-07-21 20:05:34 -04:00
Mike Pennisi
946121ec66
Add tests for RegExp `y` flag
2015-07-21 20:02:07 -04:00
Brian Terlson
e427e67eb6
Merge pull request #358 from bocoup/promise
...
Extend test coverage for Promise built-in
2015-07-21 16:26:55 -07:00
Dan Ehrenberg
9d2451eb72
Reinforce test for the use of ToLength(lastIndex) in RegExp
...
Previously, test262 had only a test that ensured that ToLength (for
example, rather than ToInteger) was used in test'ing a RegExp, not
in calls to exec. Although in the ES5 and ES2015 specs there is only
one code path, in some implementations, ToLength is called in from
separate code paths. This patch makes a new test for exec'ing a
RegExp and ensures that ToLength is called.
2015-07-21 14:26:32 -07:00
Brian Terlson
cdc6be9631
Merge pull request #359 from bocoup/String.raw
...
Add tests for String.raw
2015-07-21 13:02:49 -07:00
Leonardo Balter
95349fcb2c
String.prototype.normalize
2015-07-21 13:58:37 -04:00
Brian Terlson
7992be11ed
Merge pull request #386 from anba/issue-383/test-failures
...
Fix test regressions
2015-07-17 13:06:38 -07:00
Brian Terlson
2284a46ebf
Merge pull request #385 from anba/license
...
Change license headers to standard format
2015-07-17 11:03:07 -07:00
Brian Terlson
28089fe079
Merge pull request #365 from bocoup/codePointAt
...
Add tests for String.prototype.codePointAt
2015-07-17 11:01:58 -07:00
André Bargull
023c7aa69e
- Remove inline license
...
- Remove duplicate word
- Add missing license
2015-07-17 19:55:00 +02:00
André Bargull
a85f5039e0
Remove links to hg.ecmascript.org
2015-07-17 17:43:09 +02:00
André Bargull
85b248844d
Fix test regressions
...
- Add missing 'negative: ReferenceError' in S7.9_A5.7_T1
- Remove stale 'negative: ReferenceError' in block-local-closure-get-before-initialization
- Remove all tail-call expressions in test/built-ins/Function
- And update code in test/built-ins/Function to simply use 'f()' instead of 'var r = f(); return r'
Fixes #383
2015-07-17 17:31:26 +02:00
Brian Terlson
ada5db7569
Merge pull request #357 from anba/intl402-ed2
...
Intl402 ed2
2015-07-16 16:49:03 -07:00
Leonardo Balter
d6a96506f5
Add tests for Array.prototype.values
2015-07-16 19:27:21 -04:00
Leonardo Balter
c6c61bd50d
String.prototype.codePointAt
2015-07-16 18:49:40 -04:00
Brian Terlson
0599e839a3
Merge pull request #349 from bocoup/String.fromCodePoint
...
Add tests for String.fromCodePoint
2015-07-16 15:42:07 -07:00
Brian Terlson
13ebbebfd6
Merge pull request #360 from bocoup/negative-reform
...
Negative reform
2015-07-16 15:31:22 -07:00
Leonardo Balter
bab81c5fca
Update tests for Array.prototype.entries
2015-07-16 18:29:13 -04:00
Leonardo Balter
8f14f236b8
Update tests for Array.prototype.keys
2015-07-16 18:17:12 -04:00
Mike Pennisi
761c384d7c
Add tests for Array.prototype.values
2015-07-16 13:05:17 -04:00
Mike Pennisi
5cb1ba27d3
Add tests for Array.from
...
Limit tests to behavior of method when invoked with an iterable.
2015-07-16 13:05:17 -04:00
Mike Pennisi
741b799286
Add tests for String.prototype[Symbol.iterator]
2015-07-16 13:05:17 -04:00
Mike Pennisi
5c2390699e
Add tests for IteratorPrototype intrinsic
2015-07-16 13:05:17 -04:00
Mike Pennisi
e4a8900a25
Add test for well-known Symbol, @@iterator
2015-07-16 13:05:16 -04:00
Thomas Wood
b10f06ada3
Fix 11.13.1-4-29gs.js incorrect comment explanation
...
SyntaxError => TypeError for writing to a non-writeable field.
Fixes #372
2015-07-15 20:32:47 +01:00
Leonardo Balter
3ffca82742
String.prototype.repeat
2015-07-14 17:54:02 -04:00
Brian Terlson
f25d690a68
Merge pull request #348 from bocoup/WeakMap
...
Add tests for WeakMap
2015-07-10 14:26:57 -07:00
Leonardo Balter
91900ab646
String.raw
2015-07-10 14:33:19 -04:00
Leonardo Balter
a330d0d979
Improve coverage of SetIteratorPrototype
2015-07-10 14:32:03 -04:00
Leonardo Balter
7f1f806f18
WeakMap.prototype attributes
2015-07-10 14:31:27 -04:00
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
Leonardo Balter
57b7d13781
String.fromCodePoint
2015-07-10 14:30:27 -04:00
André Bargull
a57d2736e3
Add additional tests for valid and invalid identity escapes
2015-07-10 20:18:14 +02:00
Mike Pennisi
10e0d977ec
Prefer explicit error checking where possible
...
The `negative` frontmatter tag expresses an expectation for the behavior
of the test file as a whole. The `assert.throws` helper function offers
more fine-grained control over expectations because it may be applied to
specific statements and expressions. This makes it preferable in cases
where it may be used (i.e. when the test body does not describe a syntax
error or early error).
Re-implement assertions for errors to use the `assert.throws` helper
function wherever possible.
2015-07-10 14:12:57 -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
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
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
Mike Pennisi
2bb1003ab1
Extend test coverage for Promise built-in
2015-07-08 14:08:24 -04:00
André Bargull
d5075819e9
Check resolved time zone is valid
2015-07-08 19:13:55 +02:00
André Bargull
438b87b5b6
Intl sub-classing is now restricted to class syntax.
2015-07-08 19:13:31 +02:00
André Bargull
888524ff1d
Intl constructors are no longer able to initialize arbitrary objects as Intl objects. Update tests accordingly.
2015-07-08 19:13:06 +02:00
André Bargull
b5efa1dd83
Update comments to match correct ES2015 chapter
2015-07-08 19:12:39 +02: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
André Bargull
a4205bac61
B.1.4 extensions are not allowed for Unicode RegExps
2015-07-08 17:19:59 +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