Skip to content

Commit

Permalink
Features.txt: Add string-trimming; replace "#" in feature tags (tc39#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron authored and leobalter committed Oct 3, 2017
1 parent 184a37f commit a7b5a7a
Show file tree
Hide file tree
Showing 53 changed files with 56 additions and 30 deletions.
4 changes: 2 additions & 2 deletions features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ Reflect.construct
Reflect.set
Reflect.setPrototypeOf
Set
String#endsWith
String#includes
String.prototype.endsWith
String.prototype.includes
super
Symbol
Symbol.hasInstance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
author: Ryan Lewis
description: endsWith should return false when called on 'word' and passed 'r'.
features: [String#endsWith]
features: [String.prototype.endsWith]
---*/

assert.sameValue('word'.endsWith('r'), false, '"word".endsWith("r")');
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author: Ryan Lewis
description: >
endsWith should return false when called on 'word' and passed 'd',
with an endPosition of 3.
features: [String#endsWith]
features: [String.prototype.endsWith]
---*/

assert.sameValue('word'.endsWith('d', 3), false, '"word".endsWith("d", 3)');
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author: Ryan Lewis
description: >
endsWith should return true when called on 'word' and passed 'd'
and with no endPosition (defaults to 4).
features: [String#endsWith]
features: [String.prototype.endsWith]
---*/

assert.sameValue('word'.endsWith('d'), true, '"word".endsWith("d")');
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author: Ryan Lewis
description: >
endsWith should return true when called on 'word' and passed 'd'
and with an endPosition of 4.
features: [String#endsWith]
features: [String.prototype.endsWith]
---*/

assert.sameValue('word'.endsWith('d', 4), true, '"word".endsWith("d", 4)');
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author: Ryan Lewis
description: >
endsWith should return true when called on 'word' and passed 'd'
and with an endPosition of 25.
features: [String#endsWith]
features: [String.prototype.endsWith]
---*/

assert.sameValue('word'.endsWith('d', 25), true, '"word".endsWith("d", 25)');
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author: Ryan Lewis
description: >
endsWith should return true when called on 'word' and passed 'r',
with an endPosition of 3.
features: [String#endsWith]
features: [String.prototype.endsWith]
---*/

assert.sameValue('word'.endsWith('r', 3), true, '"word".endsWith("r", 3)');
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ info: >
is the same as the full element sequence of searchStr, return true.
17. Otherwise, return false.
...
features: [String.prototype.endsWith]
---*/

var str = 'The future is cool!';
Expand Down
1 change: 1 addition & 0 deletions test/built-ins/String/prototype/endsWith/endsWith.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ info: >
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
features: [String.prototype.endsWith]
---*/

assert.sameValue(
Expand Down
1 change: 1 addition & 0 deletions test/built-ins/String/prototype/endsWith/length.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ info: >
The length property of the endsWith method is 1.
includes: [propertyHelper.js]
features: [String.prototype.endsWith]
---*/

assert.sameValue(
Expand Down
1 change: 1 addition & 0 deletions test/built-ins/String/prototype/endsWith/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ info: >
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
features: [String.prototype.endsWith]
---*/

assert.sameValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ info: >
ToInteger(endPosition).
11. ReturnIfAbrupt(pos).
...
features: [Symbol]
features: [Symbol, String.prototype.endsWith]
---*/

var position = Symbol();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ info: >
ToInteger(endPosition).
11. ReturnIfAbrupt(pos).
...
features: [String.prototype.endsWith]
---*/

var position = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ info: >
7. Let searchStr be ToString(searchString).
8. ReturnIfAbrupt(searchStr).
...
features: [Symbol]
features: [Symbol, String.prototype.endsWith]
---*/

var s = Symbol();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info: >
2. Let isRegExp be Get(argument, @@match).
3. ReturnIfAbrupt(isRegExp).
features: [Symbol.match]
features: [Symbol.match, String.prototype.endsWith]
---*/

var obj = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ info: >
7. Let searchStr be ToString(searchString).
8. ReturnIfAbrupt(searchStr).
...
features: [String.prototype.endsWith]
---*/

var obj = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ info: >
2. Let S be ToString(O).
3. ReturnIfAbrupt(S).
...
features: [Symbol]
features: [Symbol, String.prototype.endsWith]
---*/

var s = Symbol('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ info: >
1. Let O be RequireObjectCoercible(this value).
2. Let S be ToString(O).
3. ReturnIfAbrupt(S).
features: [String.prototype.endsWith]
---*/

var o = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ info: >
...
Note: (min(max(pos, 0), len) - searchString.length) < 0;
features: [String.prototype.endsWith]
---*/

assert.sameValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ info: >
16. If the sequence of elements of S starting at start of length searchLength
is the same as the full element sequence of searchStr, return true.
...
features: [String.prototype.endsWith]
---*/

var str = 'The future is cool!';
Expand Down Expand Up @@ -45,4 +46,4 @@ assert(
assert(
str.endsWith('', -Infinity),
'str.endsWith("", -Infinity) returns true'
);
);
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ info: >
16. If the sequence of elements of S starting at start of length searchLength
is the same as the full element sequence of searchStr, return true.
...
features: [String.prototype.endsWith]
---*/

var str = 'The future is cool!';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ info: >
16. If the sequence of elements of S starting at start of length searchLength
is the same as the full element sequence of searchStr, return true.
...
features: [String.prototype.endsWith]
---*/

var str = 'The future is cool!';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ info: >
5. ReturnIfAbrupt(isRegExp).
6. If isRegExp is true, throw a TypeError exception.
...
features: [String.prototype.endsWith]
---*/

var searchString = /./;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ info: >
is the same as the full element sequence of searchStr, return true.
17. Otherwise, return false.
...
features: [String.prototype.endsWith]
---*/

var str = 'The future is cool!';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ info: >
is the same as the full element sequence of searchStr, return true.
17. Otherwise, return false.
...
features: [String.prototype.endsWith]
---*/

var str = 'The future is cool!';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ info: >
1. Let O be RequireObjectCoercible(this value).
2. Let S be ToString(O).
features: [String.prototype.endsWith]
---*/

assert.throws(TypeError, function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ info: >
1. Let O be RequireObjectCoercible(this value).
2. Let S be ToString(O).
features: [String.prototype.endsWith]
---*/

assert.throws(TypeError, function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author: Ryan Lewis
description: >
String should return false if a location is passed that is
greather than the length of the string.
features: [String#includes]
features: [String.prototype.includes]
---*/

assert.sameValue('word'.includes('w', 5), false, '"word".includes("w", 5)');
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author: Ryan Lewis
description: >
String should return false if a letter is not found in the word
starting from the passed location.
features: [String#includes]
features: [String.prototype.includes]
---*/

assert.sameValue('word'.includes('o', 3), false, '"word".includes("o", 3)');
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
author: Ryan Lewis
description: String should return false if a letter is not found in the word.
features: [String#includes]
features: [String.prototype.includes]
---*/

assert.sameValue('word'.includes('a', 0), false, '"word".includes("a", 0)');
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author: Ryan Lewis
description: >
String should return true when called on 'word' and passed 'w' and
the location 0.
features: [String#includes]
features: [String.prototype.includes]
---*/

assert.sameValue('word'.includes('w', 0), true, '"word".includes("w", 0)');
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author: Ryan Lewis
description: >
String should return true when called on 'word' and passed 'w' and
with no location (defaults to 0).
features: [String#includes]
features: [String.prototype.includes]
---*/

assert.sameValue('word'.includes('w'), true, '"word".includes("w")');
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
/*---
author: Ryan Lewis
description: String should have the property length with size of 1.
features: [String#includes]
features: [String.prototype.includes]
---*/

assert.sameValue('word'.includes.length, 1, '"word".includes.length');
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ info: >
at index j of searchStr, return true; but if there is no such integer k,
return false.
...
features: [String.prototype.includes]
---*/

var str = 'The future is cool!';
Expand Down
1 change: 1 addition & 0 deletions test/built-ins/String/prototype/includes/includes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ info: >
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
features: [String.prototype.includes]
---*/

assert.sameValue(
Expand Down
1 change: 1 addition & 0 deletions test/built-ins/String/prototype/includes/length.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ info: >
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
features: [String.prototype.includes]
---*/

assert.sameValue(
Expand Down
1 change: 1 addition & 0 deletions test/built-ins/String/prototype/includes/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ info: >
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
features: [String.prototype.includes]
---*/

assert.sameValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ info: >
10. ReturnIfAbrupt(pos).
...
features: [Symbol]
features: [String.prototype.includes]
---*/

var position = Symbol();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ info: >
produces the value 0).
10. ReturnIfAbrupt(pos).
...
features: [String.prototype.includes]
---*/

var position = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ info: >
7. Let searchStr be ToString(searchString).
8. ReturnIfAbrupt(searchStr).
...
features: [Symbol]
features: [Symbol, String.prototype.includes]
---*/

var s = Symbol();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info: >
2. Let isRegExp be Get(argument, @@match).
3. ReturnIfAbrupt(isRegExp).
features: [Symbol.match]
features: [Symbol.match, String.prototype.includes]
---*/

var obj = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ info: >
7. Let searchStr be ToString(searchString).
8. ReturnIfAbrupt(searchStr).
...
features: [String.prototype.includes]
---*/

var obj = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ info: >
1. Let O be RequireObjectCoercible(this value).
2. Let S be ToString(O).
3. ReturnIfAbrupt(S).
features: [Symbol]
features: [Symbol, String.prototype.includes]
---*/

var s = Symbol('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ info: >
1. Let O be RequireObjectCoercible(this value).
2. Let S be ToString(O).
3. ReturnIfAbrupt(S).
features: [String.prototype.includes]
---*/

var o = {
toString: function() {
throw new Test262Error();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ info: >
at index j of searchStr, return true; but if there is no such integer k,
return false.
...
features: [String.prototype.includes]
---*/

var str = 'The future is cool!';
Expand Down
Loading

0 comments on commit a7b5a7a

Please sign in to comment.