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.setPrototypeOf
Set
String#endsWith
String#includes
String.prototype.endsWith
String.prototype.includes
super
Symbol
Symbol.hasInstance

View File

@ -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")');

View File

@ -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)');

View File

@ -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")');

View File

@ -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)');

View File

@ -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)');

View File

@ -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)');

View File

@ -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!';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 = {};

View File

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

View File

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

View File

@ -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 = {

View File

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

View File

@ -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!';
@ -45,4 +46,4 @@ assert(
assert(
str.endsWith('', -Infinity),
'str.endsWith("", -Infinity) returns true'
);
);

View File

@ -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!';

View File

@ -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!';

View File

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

View File

@ -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!';

View File

@ -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!';

View File

@ -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() {

View File

@ -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() {

View File

@ -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)');

View File

@ -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)');

View File

@ -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)');

View File

@ -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)');

View File

@ -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")');

View File

@ -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');

View File

@ -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!';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 = {};

View File

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

View File

@ -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('');

View File

@ -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();

View File

@ -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!';

View File

@ -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!';
@ -34,4 +35,4 @@ assert(
assert(
str.includes('', Infinity),
'str.includes("", Infinity) returns true'
);
);

View File

@ -18,6 +18,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!';

View File

@ -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!';

View File

@ -12,8 +12,8 @@ info: >
5. ReturnIfAbrupt(isRegExp).
6. If isRegExp is true, throw a TypeError exception.
...
features: [String.prototype.includes]
---*/
var searchString = /./;
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,
return false.
...
features: [String.prototype.includes]
---*/
var str = 'The future is cool!';
assert.sameValue(

View File

@ -17,8 +17,8 @@ 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!';
assert.sameValue(

View File

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

View File

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