Skip to content
Snippets Groups Projects
Commit a7b5a7aa authored by Rick Waldron's avatar Rick Waldron Committed by Leo Balter
Browse files

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

parent 184a37f0
No related branches found
No related tags found
No related merge requests found
Showing
with 22 additions and 13 deletions
...@@ -95,8 +95,8 @@ Reflect.construct ...@@ -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
......
...@@ -4,7 +4,7 @@ ...@@ -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")');
...@@ -6,7 +6,7 @@ author: Ryan Lewis ...@@ -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)');
...@@ -6,7 +6,7 @@ author: Ryan Lewis ...@@ -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")');
...@@ -6,7 +6,7 @@ author: Ryan Lewis ...@@ -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)');
...@@ -6,7 +6,7 @@ author: Ryan Lewis ...@@ -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)');
...@@ -6,7 +6,7 @@ author: Ryan Lewis ...@@ -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)');
...@@ -19,6 +19,7 @@ info: > ...@@ -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!';
......
...@@ -9,6 +9,7 @@ info: > ...@@ -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(
......
...@@ -10,6 +10,7 @@ info: > ...@@ -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(
......
...@@ -10,6 +10,7 @@ info: > ...@@ -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(
......
...@@ -12,7 +12,7 @@ info: > ...@@ -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();
......
...@@ -12,6 +12,7 @@ info: > ...@@ -12,6 +12,7 @@ info: >
ToInteger(endPosition). ToInteger(endPosition).
11. ReturnIfAbrupt(pos). 11. ReturnIfAbrupt(pos).
... ...
features: [String.prototype.endsWith]
---*/ ---*/
var position = { var position = {
......
...@@ -11,7 +11,7 @@ info: > ...@@ -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();
......
...@@ -16,7 +16,7 @@ info: > ...@@ -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 = {};
......
...@@ -11,6 +11,7 @@ info: > ...@@ -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 = {
......
...@@ -11,7 +11,7 @@ info: > ...@@ -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('');
......
...@@ -10,6 +10,7 @@ info: > ...@@ -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 = {
......
...@@ -19,6 +19,7 @@ info: > ...@@ -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(
......
...@@ -18,6 +18,7 @@ info: > ...@@ -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!';
...@@ -45,4 +46,4 @@ assert( ...@@ -45,4 +46,4 @@ assert(
assert( assert(
str.endsWith('', -Infinity), str.endsWith('', -Infinity),
'str.endsWith("", -Infinity) returns true' 'str.endsWith("", -Infinity) returns true'
); );
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment