Annotate tests with required features

This commit is contained in:
Mike Pennisi 2015-05-27 11:24:42 -04:00
parent 19e6755f61
commit 0900ac0ae8
7 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,7 @@
es6id: 13.6.4.13 es6id: 13.6.4.13
description: > description: >
Generator function should return valid iterable objects. Generator function should return valid iterable objects.
features: [generators]
---*/ ---*/
function* values() { function* values() {

View File

@ -4,6 +4,7 @@
es6id: 13.6.4.13 es6id: 13.6.4.13
description: > description: >
Generic objects with `@@iterator` protocols should function as iterables. Generic objects with `@@iterator` protocols should function as iterables.
features: [Symbol.iterator]
---*/ ---*/
var iterable = {}; var iterable = {};

View File

@ -5,6 +5,7 @@ es6id: 13.6.4.13
description: > description: >
Iterators that are implemented as proxies should behave identically to Iterators that are implemented as proxies should behave identically to
non-proxy versions. non-proxy versions.
features: [Proxy, Symbol.iterator]
---*/ ---*/
var iterable = {}; var iterable = {};

View File

@ -5,6 +5,7 @@ es6id: 13.6.4.13 S5.c
description: > description: >
The iterator's `next` method should be accessed with each iteration as per The iterator's `next` method should be accessed with each iteration as per
the `IteratorStep` abstract operation (7.4.5). the `IteratorStep` abstract operation (7.4.5).
features: [Symbol.iterator]
---*/ ---*/
var iterable = {}; var iterable = {};

View File

@ -5,6 +5,7 @@ es6id: 7.4.3
description: > description: >
The `done` value of iteration result objects should be interpreted as The `done` value of iteration result objects should be interpreted as
incomplete as per `ToBoolean` (7.1.2). incomplete as per `ToBoolean` (7.1.2).
features: [Symbol.iterator]
---*/ ---*/
var iterable = {}; var iterable = {};

View File

@ -5,6 +5,7 @@ es6id: 13.6.4.13 S5.c
description: > description: >
If Type(result) is not Object, throw a TypeError exception as per If Type(result) is not Object, throw a TypeError exception as per
`IteratorNext` (7.4.2 S4) `IteratorNext` (7.4.2 S4)
features: [Symbol.iterator]
---*/ ---*/
var iterable = {}; var iterable = {};

View File

@ -5,6 +5,7 @@ es6id: 13.6.4.13 S5.f
description: > description: >
The `value` of iteration result objects should be retrieved using the Get The `value` of iteration result objects should be retrieved using the Get
abstract operation. abstract operation.
features: [Symbol.iterator]
---*/ ---*/
var iterable = {}; var iterable = {};