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
Brian Terlson
d9f1758ef4
Merge pull request #340 from bocoup/raw
...
Implement `raw` flag
2015-07-07 14:35:11 -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
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
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
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
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
20d39432b9
Merge pull request #337 from bocoup/remove-fn-exists
...
Remove unnecessary "include" file
2015-06-26 11:02:45 -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
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
afd6450bd2
Merge pull request #327 from bocoup/object-assign-extensions
...
Extend coverage for Object.assign
2015-06-23 17:48:49 -07:00
Brian Terlson
ddc687d0cb
Merge pull request #320 from bocoup/WeakSet
...
Add tests for WeakSet
2015-06-23 17:41:19 -07:00
Mike Pennisi
ad064a631c
fixup! Fix bug in test
2015-06-23 13:42:19 -04:00
Mike Pennisi
5e8b276bf5
fixup! Fix bug in test
2015-06-23 12:03:09 -04:00
Mike Pennisi
6f2feb0157
Fix bug in test
...
This test's description concerns the behavior of `Promise.all` when the
IteratorStep abstract operation fails due to an abrupt completion
returned by the iterator's `next` method. The test body did not actually
assert that functionality.
Update the test body to correctly define the requisite iterator and
assert that the specific error created is the one thrown from the
invocation of `Promise.all`
2015-06-23 10:30:01 -04:00
Mike Pennisi
3fb882acd0
Add tests for Object.setPrototypeOf
2015-06-19 12:13:28 -04:00
Mike Pennisi
39cd09f7a8
Extend coverage for Object.assign
2015-06-19 10:38:22 -04:00
Mike Pennisi
29ecced632
Update handling of directive prologues
...
Some tests specifically concern the application of the `use strict`
directive as it appears in JavaScript source code. These tests should
*not* be run with the `onlyStrict` flag because relying on the test
runner to enable strict mode makes the semantics of the source code
irrelevant. Update these tests to use the `noStrict` flag.
Other tests concern language semantics that are only valid in strict
mode, but the mechanism for enabling strictness is inconseqential.
Update these tests to use the `onlyStrict` flag and remove any redundant
`use strict` directive prologues contained within.
Still other tests are valid both within and outside of strict mode.
In keeping with the majority of other tests, do not specify any
restrictions on the environments in which these tests may be run.
2015-06-18 17:38:34 -04:00
Mike Pennisi
6231fe20a4
Re-write test body to match test description
2015-06-18 17:38:33 -04:00
Mike Pennisi
fabf5f3320
Correct typo in test descriptions
2015-06-18 17:38:33 -04:00
Mike Pennisi
41c8717b3e
Correct test description
2015-06-18 17:38:33 -04:00
Mike Pennisi
21d1fc5309
Remove invalid test
2015-06-18 17:38:33 -04:00
Mike Pennisi
ef1fddd533
Fix invalid tests
2015-06-18 17:38:33 -04:00
Mike Pennisi
92a735dad7
Create distinct tests for arguments object types
2015-06-18 16:01:49 -04:00
Mike Pennisi
03f8ca8336
Move `for-of` tests to appropriate directory
2015-06-18 15:53:24 -04:00
Mike Pennisi
a321e87a2d
Add tests for `for..of` iteration over built-ins
2015-06-18 15:53:19 -04:00
Yanli Xu
07b21a5e44
add tests for Object.assign
2015-06-18 15:23:15 +08:00
Brian Terlson
42d16da901
Merge pull request #286 from bocoup/obj-method-def
...
Add tests for MethodDefinition forms new to ES6
2015-06-17 19:56:29 -04:00
Brian Terlson
e1500bff66
Merge pull request #322 from bocoup/remove-print
...
Remove $PRINT helper function
2015-06-17 19:54:58 -04:00
Mike Pennisi
48dbddebdb
Fix typo in test meta-data
...
The `Negative` tag accepts a string value (not a list)
2015-06-17 15:44:54 -04:00
Mike Pennisi
6863328f88
fixup! Introduce additional tests for ES6 templates
...
Include tests using arrow functions
2015-06-16 16:08:03 -04:00
Mike Pennisi
e42f977122
fixup! Introduce additional tests for ES6 templates
...
Ensure test files assert the described behavior. Extend coverage to
strict and non-strict mode explicitly.
2015-06-16 15:10:09 -04:00
Mike Pennisi
fe11a1ea1a
Remove $PRINT helper function
...
The `$PRINT` helper function has no effect on test behavior. The
following tests use it to report assertion outcomes (and as a result
will fail silently):
- test/language/function-code/S10.2.1_A4_T2.js
- test/language/function-code/S10.2.1_A5.1_T1.js
- test/language/function-code/S10.2.1_A5.1_T2.js
- test/language/function-code/S10.2.1_A5.2_T1.js
Remove the function definition and all references within tests. Update
tests that use it as an error reporting mechanism to instead use an
appropriate `assert` helper function.
2015-06-16 13:43:23 -04:00
Brian Terlson
f668e94b6f
Merge pull request #318 from pvginkel/fill-is-es6
...
The Array.prototype.fill function is an ES6 function.
2015-06-16 13:31:23 -04:00
Brian Terlson
54de5fb509
Merge pull request #319 from pvginkel/missing-features
...
The Array.prototype.find function is an ES6 function.
2015-06-16 13:30:12 -04:00
Brian Terlson
cd35655beb
Merge pull request #317 from bocoup/es6-numeric-literals
...
ES6 numeric literals
2015-06-16 13:28:35 -04:00
Mike Pennisi
57f3466cf7
Fix tautological pattern in tests
...
In neglecting to assert the type of error thrown (or that any error was
thrown at all), these tests cannot fail. Refactor the tests to use the
`assert.throws` helper method, which takes these details into
consideration.
2015-06-16 12:55:56 -04:00
Leonardo Balter
2c4077c17a
Proxy: construct
2015-06-15 22:37:59 -04:00
Leonardo Balter
450b830026
Proxy: apply
2015-06-15 22:37:59 -04:00
Leonardo Balter
3f214e715f
Proxy: ownKeys
2015-06-15 22:37:58 -04:00
Leonardo Balter
28f9d8dbd2
Proxy: enumerate
2015-06-15 22:37:58 -04:00
Leonardo Balter
d9edb3593a
Proxy: deleteProperty
2015-06-15 22:37:58 -04:00
Leonardo Balter
99ca320b01
Proxy: set
2015-06-15 22:37:57 -04:00
Leonardo Balter
21a1fbe68e
Proxy: get
2015-06-15 22:37:57 -04:00
Leonardo Balter
54e82687d7
Proxy: has
2015-06-15 22:37:57 -04:00
Leonardo Balter
b2d4bcfd0e
Proxy: defineProperty
2015-06-15 22:37:57 -04:00
Leonardo Balter
a2f0f2888d
Proxy: getOwnPropertyDescriptor
2015-06-15 22:37:57 -04:00
Leonardo Balter
79a256cd5a
Proxy: preventExtensions
2015-06-15 22:37:56 -04:00
Leonardo Balter
15a9a15815
Proxy: isExtensible
2015-06-15 22:37:56 -04:00
Leonardo Balter
54f3f23f72
Proxy: setPrototypeOf
2015-06-15 22:37:56 -04:00
Leonardo Balter
d012f5c680
Proxy: getPrototypeOf
2015-06-15 22:37:56 -04:00
Leonardo Balter
c3e71dcb0b
Proxy.revocable
2015-06-15 22:37:56 -04:00
Leonardo Balter
9bbe7c6272
Proxy: Core
2015-06-15 22:37:55 -04:00
Leonardo Balter
b898493f53
WeakSet
2015-06-15 22:37:24 -04:00
Pieter van Ginkel
e108edfd92
The Array.prototype.find function is an ES6 function.
...
A number of Array.prototype.find tests were missing a feature specification.
2015-06-14 06:22:33 +02:00
Pieter van Ginkel
1428368f81
The Array.prototype.fill function is an ES6 function.
...
One of the Array.prototype.fill tests specifies an es5id. Changed to an es6id.
2015-06-13 17:52:12 +02:00
Mike Pennisi
3fb19f53dc
Add tests for OctalIntegerLiterals
2015-06-12 16:06:52 -04:00
Mike Pennisi
c273e30235
Add tests for BinaryIntegerLiterals
2015-06-12 16:06:52 -04:00
Mike Pennisi
ef7ddf9f7e
Improve frontmatter usage
...
Define explanatory text using the `info` tag and include single-line
descriptions.
2015-06-12 15:36:20 -04:00
Mike Pennisi
80c67e56c1
Remove duplicative test
...
The assertions of this file are also made in another more complete test:
`tv-line-terminator-sequence.js`. Remove this file in favor of that one.
2015-06-12 12:02:33 -04:00
Mike Pennisi
5ca7a58e75
Introduce additional tests for ES6 templates
2015-06-12 12:02:01 -04:00
Mike Pennisi
bd3d160ba1
Reorganize existing tests
2015-06-12 11:30:44 -04:00
Brian Terlson
a1437652ab
Merge pull request #313 from evilpie/includes
...
Use the more common array syntax for includes
2015-06-11 12:07:48 -04:00
Tom Schuster
64fd1026dd
Use the more common array syntax for includes
2015-06-10 14:56:16 +02:00
Brian Terlson
36cbdcf8ec
Merge pull request #312 from bocoup/add-omitted-negative
...
Insert omitted `negative` tag
2015-06-09 17:01:59 -07:00
Brian Terlson
7eb27329b3
Merge pull request #307 from bocoup/remove-fail
...
Remove `$FAIL` function
2015-06-09 16:59:13 -07:00
Mike Pennisi
c7fb97765e
Insert omitted `negative` tag
...
This test exercises an early error, so it should be declared with the
`negative` tag.
2015-06-09 19:48:29 -04:00
Mike Pennisi
92890e6723
Remove `$FAIL` function
...
This function is equivalent to `$ERROR` (which is automatically included
in test environments). Remove the harness file that defines the
function, remove references to the file from test `includes` lists, and
update scripts to instead invoke the `$ERROR` function.
2015-06-09 19:44:25 -04:00
Brian Terlson
6462958efc
Merge pull request #303 from pvginkel/environment-object-deletion
...
Fixed testing deletion of an environment object.
2015-06-09 15:00:49 -07:00
Mike Pennisi
f2cc736d94
Remove remaining includes for `assert.js` helper
2015-06-09 15:00:00 -04:00
Erik Arvidsson
d28af4b101
No need to include asserts.js
2015-06-09 14:49:04 -04:00
Pieter van Ginkel
632beef930
Improved description of 11.4.1-4.a-5.
...
The previous description of the 11.4.1-4.a-5 test case implied that an environment object could not be deleted while inside a with. However, the actual test was to test whether the variable declaration could be deleted. The description has been updated to better reflect this.
2015-06-09 11:29:54 +02:00
Brian Terlson
32edc4873e
Merge pull request #300 from bocoup/modules-early-errors
...
Add tests for early errors in module syntax
2015-06-08 12:20:20 -07:00
Brian Terlson
a47916e6ec
Merge pull request #288 from bocoup/for-of-additions
...
for..of additions
2015-06-08 12:18:34 -07:00
Pieter van Ginkel
44ee5c85ea
Generator test should specify generators feature.
2015-06-05 12:34:39 +02:00
Pieter van Ginkel
943face280
Fixed testing deletion of an environment object.
...
Test 11.4.1-4.a-5 states that it verifies that an environment object cannot be deleted. However, this was giving a false positive. It was actually testing where a "var" declaration on an environment object cannot be deleted (there are other tests for this). This test case fails on Chrome 43, Firefox 38 and Internet Explorer 11.
2015-06-03 19:31:52 +02:00
Mike Pennisi
b8b462316b
Add tests for early errors in module syntax
...
Introduce the `module` flag to unambiguously identify tests that are
intended to be interpreted as module code.
2015-06-03 13:15:15 -04:00
Brian Terlson
991817bb48
Merge pull request #267 from bocoup/destructuring-assignment
...
Add tests for destructuring assignment
2015-06-03 10:13:16 -05:00
Brian Terlson
918cf1bb1c
Merge pull request #292 from pvginkel/master
...
Add tests for variable instantiation for eval in strict mode
2015-06-03 10:10:05 -05:00
Mike Pennisi
69b89d85b3
Add tests for destructuring assignment
2015-06-03 10:46:51 -04:00
Brian Terlson
23b997dce0
Merge pull request #287 from bocoup/generator-prototype
...
Extend coverage for GeneratorPrototype methods
2015-06-02 20:20:54 -05:00
Brian Terlson
3b6953a3b4
Merge pull request #285 from anba/for-in-undefined
...
Additional tests with incorrect for-in context
2015-06-02 20:19:19 -05:00
Brian Terlson
546e594867
Merge pull request #284 from bocoup/iteration-restructuring
...
Iteration restructuring
2015-06-02 20:18:25 -05:00
Brian Terlson
afb994a4cb
Merge pull request #274 from anba/arguments-nonconfigurable
...
MOP operations on non-configurable arguments-object property
2015-06-02 19:10:11 -05:00
Brian Terlson
f41d108840
Merge pull request #275 from anba/increment-reference
...
Increment/Decrement with property accessor expression
2015-06-02 19:09:33 -05:00
Brian Terlson
b3e9752b30
Merge pull request #273 from anba/assignment-reference
...
Assignment with left-hand side property accessor
2015-06-02 19:09:28 -05:00
Jordan Harband
00fb43009a
Promise methods should not be enumerable, per https://people.mozilla.org/~jorendorff/es6-draft.html#table-4
2015-06-01 17:26:59 -07:00
Pieter van Ginkel
6883892d32
Add tests for variable instantiation for eval in strict mode
...
Test case 10.4.2-3-c-2-s verifies that eval can't instantiate variables in the calling context. However, it does not verify that the variable isn't matched to the global context either. Added test case 10.4.2-3-c-3-s to check for this.
2015-05-30 09:24:33 +02:00
Mike Pennisi
c541cc4336
Increase coverage for for..of iteration
2015-05-27 15:14:51 -04:00
Mike Pennisi
0900ac0ae8
Annotate tests with required features
2015-05-27 11:36:10 -04:00
Mike Pennisi
19e6755f61
Correct test frontmatter
2015-05-26 17:31:34 -04:00
Mike Pennisi
b2a62444fc
fixup! Add tests for MethodDefinition forms new to ES6
...
Update test according to latest change to ES6 spec:
https://twitter.com/awbjs/status/603251578070552576
2015-05-26 14:52:21 -04:00
Mike Pennisi
1b03d842ac
Add tests for GeneratorPrototype#return
...
Implement tests according to the pattern defined by the existing tests
for `GeneratorPrototype#throw`.
2015-05-26 13:47:58 -04:00
Mike Pennisi
30a4a5da7d
fixup! Add tests for MethodDefinition forms new to ES6
...
Avoid extending builtin prototype and consistently define a shadowing
property on the object instance to help recognize a possible
implementation bug.
2015-05-26 12:33:51 -04:00
André Bargull
3987990563
Additional tests with incorrect for-in context
...
- Add missing ".prototype" lookup in Array.prototype tests (Follow-up of #280 )
- Add noStrict flag in global/S10.2.3_A2.2_*.js (implicit this-binding is part of the test)
- Provide correct this-binding in function/13.2-*.js
- Add missing assert.throws in "set-iterator-close-after-add-failure.js"
2015-05-26 17:52:52 +02:00
Mike Pennisi
e0387bcee8
Refactor tests for built-in @@iterator methods
...
Assert the value of the properties and update the test frontmatter to
include the `Symbol.iterator` feature.
2015-05-26 11:39:20 -04:00
Mike Pennisi
eefc23df50
Move tests for iterator prototype methods
...
Define tests for intrinsic Iterators under the appropriate subdirectory
of `built-ins`.
2015-05-26 11:39:19 -04:00
Mike Pennisi
099d10cb34
Remove extraneous invocation
2015-05-25 16:51:36 -04:00
Mike Pennisi
a2e1fc713e
Correct test
...
As written, the test behavior and description do not match--the
`throw` invocation takes place while generator execution is paused
*within* the `finally` block (not following it).
Ensure that the test exercises the described behavior (and remove
extraneous invocation of method under test).
2015-05-25 16:51:35 -04:00
Mike Pennisi
ef5594b675
Correct test
...
As written, the test behavior and description do not match--the `throw`
invocation takes place while generator execution is paused *within* the
`try..catch` statement (not following it).
Ensure that the test exercises the described behavior (and remove
extraneous invocation of method under test).
2015-05-25 16:51:35 -04:00
Mike Pennisi
332c4dab05
Correct typos in test description
2015-05-25 16:51:35 -04:00
Mike Pennisi
a62932fc42
Move test file to more appropriate directory
2015-05-25 16:51:35 -04:00
Mike Pennisi
31bdf48bec
Add tests for MethodDefinition forms new to ES6
2015-05-25 11:23:47 -04:00
Mike Pennisi
cde990b79c
Rename tests
2015-05-25 11:23:46 -04:00
Brian Terlson
5341ad5985
Merge pull request #279 from bocoup/case-sensitive
...
fix case sensitive filenames
2015-05-24 14:38:13 -07:00
Pieter van Ginkel
3663302c21
S15.4.4.4_A4.1 length enumerable should be checked on Array.prototype.concat
...
The test checks Array.concat which is undefined; instead it should check Array.prototype.concat.
2015-05-24 07:59:47 +02:00
Leonardo Balter
479ba6532d
fix case sensitive filenames
2015-05-22 10:56:34 -04:00