mirror of https://github.com/tc39/test262.git
Features.txt: Add string-trimming; replace "#" in feature tags (#1247)
This commit is contained in:
parent
184a37f011
commit
a7b5a7aa97
|
@ -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
|
||||
|
|
|
@ -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")');
|
||||
|
|
|
@ -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)');
|
||||
|
|
|
@ -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")');
|
||||
|
|
|
@ -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)');
|
||||
|
|
|
@ -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)');
|
||||
|
|
|
@ -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)');
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -9,6 +9,7 @@ info: >
|
|||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
includes: [propertyHelper.js]
|
||||
features: [String.prototype.endsWith]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
|
|
|
@ -10,6 +10,7 @@ info: >
|
|||
The length property of the endsWith method is 1.
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [String.prototype.endsWith]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
|
|
|
@ -10,6 +10,7 @@ info: >
|
|||
17 ECMAScript Standard Built-in Objects
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [String.prototype.endsWith]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
|
|
|
@ -12,7 +12,7 @@ info: >
|
|||
ToInteger(endPosition).
|
||||
11. ReturnIfAbrupt(pos).
|
||||
...
|
||||
features: [Symbol]
|
||||
features: [Symbol, String.prototype.endsWith]
|
||||
---*/
|
||||
|
||||
var position = Symbol();
|
||||
|
|
|
@ -12,6 +12,7 @@ info: >
|
|||
ToInteger(endPosition).
|
||||
11. ReturnIfAbrupt(pos).
|
||||
...
|
||||
features: [String.prototype.endsWith]
|
||||
---*/
|
||||
|
||||
var position = {
|
||||
|
|
|
@ -11,7 +11,7 @@ info: >
|
|||
7. Let searchStr be ToString(searchString).
|
||||
8. ReturnIfAbrupt(searchStr).
|
||||
...
|
||||
features: [Symbol]
|
||||
features: [Symbol, String.prototype.endsWith]
|
||||
---*/
|
||||
|
||||
var s = Symbol();
|
||||
|
|
|
@ -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 = {};
|
||||
|
|
|
@ -11,6 +11,7 @@ info: >
|
|||
7. Let searchStr be ToString(searchString).
|
||||
8. ReturnIfAbrupt(searchStr).
|
||||
...
|
||||
features: [String.prototype.endsWith]
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
|
|
|
@ -11,7 +11,7 @@ info: >
|
|||
2. Let S be ToString(O).
|
||||
3. ReturnIfAbrupt(S).
|
||||
...
|
||||
features: [Symbol]
|
||||
features: [Symbol, String.prototype.endsWith]
|
||||
---*/
|
||||
|
||||
var s = Symbol('');
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -19,6 +19,7 @@ info: >
|
|||
...
|
||||
|
||||
Note: (min(max(pos, 0), len) - searchString.length) < 0;
|
||||
features: [String.prototype.endsWith]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -12,6 +12,7 @@ info: >
|
|||
5. ReturnIfAbrupt(isRegExp).
|
||||
6. If isRegExp is true, throw a TypeError exception.
|
||||
...
|
||||
features: [String.prototype.endsWith]
|
||||
---*/
|
||||
|
||||
var searchString = /./;
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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)');
|
||||
|
|
|
@ -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)');
|
||||
|
|
|
@ -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)');
|
||||
|
|
|
@ -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)');
|
||||
|
|
|
@ -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")');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -9,6 +9,7 @@ info: >
|
|||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
includes: [propertyHelper.js]
|
||||
features: [String.prototype.includes]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
|
|
|
@ -10,6 +10,7 @@ info: >
|
|||
17 ECMAScript Standard Built-in Objects
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [String.prototype.includes]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
|
|
|
@ -10,6 +10,7 @@ info: >
|
|||
17 ECMAScript Standard Built-in Objects
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [String.prototype.includes]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
|
|
|
@ -13,6 +13,7 @@ info: >
|
|||
10. ReturnIfAbrupt(pos).
|
||||
...
|
||||
features: [Symbol]
|
||||
features: [String.prototype.includes]
|
||||
---*/
|
||||
|
||||
var position = Symbol();
|
||||
|
|
|
@ -12,6 +12,7 @@ info: >
|
|||
produces the value 0).
|
||||
10. ReturnIfAbrupt(pos).
|
||||
...
|
||||
features: [String.prototype.includes]
|
||||
---*/
|
||||
|
||||
var position = {
|
||||
|
|
|
@ -11,7 +11,7 @@ info: >
|
|||
7. Let searchStr be ToString(searchString).
|
||||
8. ReturnIfAbrupt(searchStr).
|
||||
...
|
||||
features: [Symbol]
|
||||
features: [Symbol, String.prototype.includes]
|
||||
---*/
|
||||
|
||||
var s = Symbol();
|
||||
|
|
|
@ -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 = {};
|
||||
|
|
|
@ -11,6 +11,7 @@ info: >
|
|||
7. Let searchStr be ToString(searchString).
|
||||
8. ReturnIfAbrupt(searchStr).
|
||||
...
|
||||
features: [String.prototype.includes]
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
|
|
|
@ -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('');
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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, '');
|
||||
});
|
||||
|
|
|
@ -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, '');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue