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 20 additions and 8 deletions
......@@ -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();
......
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