mirror of https://github.com/tc39/test262.git
Rename `String.prototype.contains` to `String.prototype.includes`
This commit is contained in:
parent
a5438b0ab3
commit
e2aa196a93
|
@ -193,7 +193,7 @@
|
|||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>String.prototype.contains</td>
|
||||
<td>String.prototype.includes</td>
|
||||
<td>None</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
|
|
@ -13,7 +13,7 @@ includes: [runTestCase.js]
|
|||
---*/
|
||||
|
||||
function testcase() {
|
||||
if('word'.contains('w', 5) === false) {
|
||||
if('word'.includes('w', 5) === false) {
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -13,7 +13,7 @@ includes: [runTestCase.js]
|
|||
---*/
|
||||
|
||||
function testcase() {
|
||||
if('word'.contains('o', 3) === false) {
|
||||
if('word'.includes('o', 3) === false) {
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -11,7 +11,7 @@ includes: [runTestCase.js]
|
|||
---*/
|
||||
|
||||
function testcase() {
|
||||
if('word'.contains('a', 0) === false) {
|
||||
if('word'.includes('a', 0) === false) {
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -13,7 +13,7 @@ includes: [runTestCase.js]
|
|||
---*/
|
||||
|
||||
function testcase() {
|
||||
if('word'.contains('w', 0) === true) {
|
||||
if('word'.includes('w', 0) === true) {
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -13,7 +13,7 @@ includes: [runTestCase.js]
|
|||
---*/
|
||||
|
||||
function testcase() {
|
||||
if('word'.contains('w') === true) {
|
||||
if('word'.includes('w') === true) {
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -11,7 +11,7 @@ includes: [runTestCase.js]
|
|||
---*/
|
||||
|
||||
function testcase() {
|
||||
if('word'.contains.length === 1) {
|
||||
if('word'.includes.length === 1) {
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue