Permalink
Browse files

Rename `String.prototype.contains` to `String.prototype.includes`

  • Loading branch information...
mathiasbynens authored and bterlson committed Nov 20, 2014
1 parent a5438b0 commit e2aa196a936cc9b8cdf5857fdd085833d218eb44
View
@@ -193,7 +193,7 @@ <h1>Test262 Coverage for ECMAScript 6 Features</h1>
<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;
}
}

0 comments on commit e2aa196

Please sign in to comment.