Features.txt: Add string-trimming; replace "#" in feature tags (#1247)

This commit is contained in:
Rick Waldron 2017-10-03 17:02:29 -04:00 committed by Leo Balter
parent 184a37f011
commit a7b5a7aa97
53 changed files with 56 additions and 30 deletions

View File

@ -95,8 +95,8 @@ Reflect.construct
Reflect.set Reflect.set
Reflect.setPrototypeOf Reflect.setPrototypeOf
Set Set
String#endsWith String.prototype.endsWith
String#includes String.prototype.includes
super super
Symbol Symbol
Symbol.hasInstance Symbol.hasInstance

View File

@ -4,7 +4,7 @@
/*--- /*---
author: Ryan Lewis author: Ryan Lewis
description: endsWith should return false when called on 'word' and passed 'r'. 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")'); assert.sameValue('word'.endsWith('r'), false, '"word".endsWith("r")');

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -9,6 +9,7 @@ info: >
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [String.prototype.endsWith]
---*/ ---*/
assert.sameValue( assert.sameValue(

View File

@ -10,6 +10,7 @@ info: >
The length property of the endsWith method is 1. The length property of the endsWith method is 1.
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [String.prototype.endsWith]
---*/ ---*/
assert.sameValue( assert.sameValue(

View File

@ -10,6 +10,7 @@ info: >
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [String.prototype.endsWith]
---*/ ---*/
assert.sameValue( assert.sameValue(

View File

@ -12,7 +12,7 @@ info: >
ToInteger(endPosition). ToInteger(endPosition).
11. ReturnIfAbrupt(pos). 11. ReturnIfAbrupt(pos).
... ...
features: [Symbol] features: [Symbol, String.prototype.endsWith]
---*/ ---*/
var position = Symbol(); var position = Symbol();

View File

@ -12,6 +12,7 @@ info: >
ToInteger(endPosition). ToInteger(endPosition).
11. ReturnIfAbrupt(pos). 11. ReturnIfAbrupt(pos).
... ...
features: [String.prototype.endsWith]
---*/ ---*/
var position = { var position = {

View File

@ -11,7 +11,7 @@ info: >
7. Let searchStr be ToString(searchString). 7. Let searchStr be ToString(searchString).
8. ReturnIfAbrupt(searchStr). 8. ReturnIfAbrupt(searchStr).
... ...
features: [Symbol] features: [Symbol, String.prototype.endsWith]
---*/ ---*/
var s = Symbol(); var s = Symbol();

View File

@ -16,7 +16,7 @@ info: >
2. Let isRegExp be Get(argument, @@match). 2. Let isRegExp be Get(argument, @@match).
3. ReturnIfAbrupt(isRegExp). 3. ReturnIfAbrupt(isRegExp).
features: [Symbol.match] features: [Symbol.match, String.prototype.endsWith]
---*/ ---*/
var obj = {}; var obj = {};

View File

@ -11,6 +11,7 @@ info: >
7. Let searchStr be ToString(searchString). 7. Let searchStr be ToString(searchString).
8. ReturnIfAbrupt(searchStr). 8. ReturnIfAbrupt(searchStr).
... ...
features: [String.prototype.endsWith]
---*/ ---*/
var obj = { var obj = {

View File

@ -11,7 +11,7 @@ info: >
2. Let S be ToString(O). 2. Let S be ToString(O).
3. ReturnIfAbrupt(S). 3. ReturnIfAbrupt(S).
... ...
features: [Symbol] features: [Symbol, String.prototype.endsWith]
---*/ ---*/
var s = Symbol(''); var s = Symbol('');

View File

@ -10,6 +10,7 @@ info: >
1. Let O be RequireObjectCoercible(this value). 1. Let O be RequireObjectCoercible(this value).
2. Let S be ToString(O). 2. Let S be ToString(O).
3. ReturnIfAbrupt(S). 3. ReturnIfAbrupt(S).
features: [String.prototype.endsWith]
---*/ ---*/
var o = { var o = {

View File

@ -19,6 +19,7 @@ info: >
... ...
Note: (min(max(pos, 0), len) - searchString.length) < 0; Note: (min(max(pos, 0), len) - searchString.length) < 0;
features: [String.prototype.endsWith]
---*/ ---*/
assert.sameValue( assert.sameValue(

View File

@ -18,6 +18,7 @@ info: >
16. If the sequence of elements of S starting at start of length searchLength 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. is the same as the full element sequence of searchStr, return true.
... ...
features: [String.prototype.endsWith]
---*/ ---*/
var str = 'The future is cool!'; var str = 'The future is cool!';

View File

@ -19,6 +19,7 @@ info: >
16. If the sequence of elements of S starting at start of length searchLength 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. is the same as the full element sequence of searchStr, return true.
... ...
features: [String.prototype.endsWith]
---*/ ---*/
var str = 'The future is cool!'; var str = 'The future is cool!';

View File

@ -18,6 +18,7 @@ info: >
16. If the sequence of elements of S starting at start of length searchLength 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. is the same as the full element sequence of searchStr, return true.
... ...
features: [String.prototype.endsWith]
---*/ ---*/
var str = 'The future is cool!'; var str = 'The future is cool!';

View File

@ -12,6 +12,7 @@ info: >
5. ReturnIfAbrupt(isRegExp). 5. ReturnIfAbrupt(isRegExp).
6. If isRegExp is true, throw a TypeError exception. 6. If isRegExp is true, throw a TypeError exception.
... ...
features: [String.prototype.endsWith]
---*/ ---*/
var searchString = /./; var searchString = /./;

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ author: Ryan Lewis
description: > description: >
String should return false if a location is passed that is String should return false if a location is passed that is
greather than the length of the string. 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)'); assert.sameValue('word'.includes('w', 5), false, '"word".includes("w", 5)');

View File

@ -6,7 +6,7 @@ author: Ryan Lewis
description: > description: >
String should return false if a letter is not found in the word String should return false if a letter is not found in the word
starting from the passed location. starting from the passed location.
features: [String#includes] features: [String.prototype.includes]
---*/ ---*/
assert.sameValue('word'.includes('o', 3), false, '"word".includes("o", 3)'); assert.sameValue('word'.includes('o', 3), false, '"word".includes("o", 3)');

View File

@ -4,7 +4,7 @@
/*--- /*---
author: Ryan Lewis author: Ryan Lewis
description: String should return false if a letter is not found in the word. 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)'); assert.sameValue('word'.includes('a', 0), false, '"word".includes("a", 0)');

View File

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

View File

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

View File

@ -4,7 +4,6 @@
/*--- /*---
author: Ryan Lewis author: Ryan Lewis
description: String should have the property length with size of 1. 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'); assert.sameValue('word'.includes.length, 1, '"word".includes.length');

View File

@ -20,6 +20,7 @@ info: >
at index j of searchStr, return true; but if there is no such integer k, at index j of searchStr, return true; but if there is no such integer k,
return false. return false.
... ...
features: [String.prototype.includes]
---*/ ---*/
var str = 'The future is cool!'; var str = 'The future is cool!';

View File

@ -9,6 +9,7 @@ info: >
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [String.prototype.includes]
---*/ ---*/
assert.sameValue( assert.sameValue(

View File

@ -10,6 +10,7 @@ info: >
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [String.prototype.includes]
---*/ ---*/
assert.sameValue( assert.sameValue(

View File

@ -10,6 +10,7 @@ info: >
17 ECMAScript Standard Built-in Objects 17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [String.prototype.includes]
---*/ ---*/
assert.sameValue( assert.sameValue(

View File

@ -13,6 +13,7 @@ info: >
10. ReturnIfAbrupt(pos). 10. ReturnIfAbrupt(pos).
... ...
features: [Symbol] features: [Symbol]
features: [String.prototype.includes]
---*/ ---*/
var position = Symbol(); var position = Symbol();

View File

@ -12,6 +12,7 @@ info: >
produces the value 0). produces the value 0).
10. ReturnIfAbrupt(pos). 10. ReturnIfAbrupt(pos).
... ...
features: [String.prototype.includes]
---*/ ---*/
var position = { var position = {

View File

@ -11,7 +11,7 @@ info: >
7. Let searchStr be ToString(searchString). 7. Let searchStr be ToString(searchString).
8. ReturnIfAbrupt(searchStr). 8. ReturnIfAbrupt(searchStr).
... ...
features: [Symbol] features: [Symbol, String.prototype.includes]
---*/ ---*/
var s = Symbol(); var s = Symbol();

View File

@ -16,7 +16,7 @@ info: >
2. Let isRegExp be Get(argument, @@match). 2. Let isRegExp be Get(argument, @@match).
3. ReturnIfAbrupt(isRegExp). 3. ReturnIfAbrupt(isRegExp).
features: [Symbol.match] features: [Symbol.match, String.prototype.includes]
---*/ ---*/
var obj = {}; var obj = {};

View File

@ -11,6 +11,7 @@ info: >
7. Let searchStr be ToString(searchString). 7. Let searchStr be ToString(searchString).
8. ReturnIfAbrupt(searchStr). 8. ReturnIfAbrupt(searchStr).
... ...
features: [String.prototype.includes]
---*/ ---*/
var obj = { var obj = {

View File

@ -10,7 +10,7 @@ info: >
1. Let O be RequireObjectCoercible(this value). 1. Let O be RequireObjectCoercible(this value).
2. Let S be ToString(O). 2. Let S be ToString(O).
3. ReturnIfAbrupt(S). 3. ReturnIfAbrupt(S).
features: [Symbol] features: [Symbol, String.prototype.includes]
---*/ ---*/
var s = Symbol(''); var s = Symbol('');

View File

@ -10,8 +10,8 @@ info: >
1. Let O be RequireObjectCoercible(this value). 1. Let O be RequireObjectCoercible(this value).
2. Let S be ToString(O). 2. Let S be ToString(O).
3. ReturnIfAbrupt(S). 3. ReturnIfAbrupt(S).
features: [String.prototype.includes]
---*/ ---*/
var o = { var o = {
toString: function() { toString: function() {
throw new Test262Error(); throw new Test262Error();

View File

@ -17,6 +17,7 @@ info: >
at index j of searchStr, return true; but if there is no such integer k, at index j of searchStr, return true; but if there is no such integer k,
return false. return false.
... ...
features: [String.prototype.includes]
---*/ ---*/
var str = 'The future is cool!'; var str = 'The future is cool!';

View File

@ -17,6 +17,7 @@ info: >
at index j of searchStr, return true; but if there is no such integer k, at index j of searchStr, return true; but if there is no such integer k,
return false. return false.
... ...
features: [String.prototype.includes]
---*/ ---*/
var str = 'The future is cool!'; var str = 'The future is cool!';

View File

@ -18,6 +18,7 @@ info: >
at index j of searchStr, return true; but if there is no such integer k, at index j of searchStr, return true; but if there is no such integer k,
return false. return false.
... ...
features: [String.prototype.includes]
---*/ ---*/
var str = 'The future is cool!'; var str = 'The future is cool!';

View File

@ -17,6 +17,7 @@ info: >
at index j of searchStr, return true; but if there is no such integer k, at index j of searchStr, return true; but if there is no such integer k,
return false. return false.
... ...
features: [String.prototype.includes]
---*/ ---*/
var str = 'The future is cool!'; var str = 'The future is cool!';

View File

@ -12,8 +12,8 @@ info: >
5. ReturnIfAbrupt(isRegExp). 5. ReturnIfAbrupt(isRegExp).
6. If isRegExp is true, throw a TypeError exception. 6. If isRegExp is true, throw a TypeError exception.
... ...
features: [String.prototype.includes]
---*/ ---*/
var searchString = /./; var searchString = /./;
assert.throws(TypeError, function() { assert.throws(TypeError, function() {

View File

@ -17,8 +17,8 @@ info: >
at index j of searchStr, return true; but if there is no such integer k, at index j of searchStr, return true; but if there is no such integer k,
return false. return false.
... ...
features: [String.prototype.includes]
---*/ ---*/
var str = 'The future is cool!'; var str = 'The future is cool!';
assert.sameValue( assert.sameValue(

View File

@ -17,8 +17,8 @@ info: >
at index j of searchStr, return true; but if there is no such integer k, at index j of searchStr, return true; but if there is no such integer k,
return false. return false.
... ...
features: [String.prototype.includes]
---*/ ---*/
var str = 'The future is cool!'; var str = 'The future is cool!';
assert.sameValue( assert.sameValue(

View File

@ -9,8 +9,8 @@ info: >
1. Let O be RequireObjectCoercible(this value). 1. Let O be RequireObjectCoercible(this value).
2. Let S be ToString(O). 2. Let S be ToString(O).
features: [String.prototype.includes]
---*/ ---*/
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
String.prototype.includes.call(null, ''); String.prototype.includes.call(null, '');
}); });

View File

@ -9,8 +9,8 @@ info: >
1. Let O be RequireObjectCoercible(this value). 1. Let O be RequireObjectCoercible(this value).
2. Let S be ToString(O). 2. Let S be ToString(O).
features: [String.prototype.includes]
---*/ ---*/
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
String.prototype.includes.call(undefined, ''); String.prototype.includes.call(undefined, '');
}); });