| Index: test/webkit/regexp-char-insensitive.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/regexp-char-insensitive.js
|
| similarity index 63%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/regexp-char-insensitive.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..14a10f686d46db6057b9a9e7312b55ca99570f39 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/regexp-char-insensitive.js
|
| @@ -22,10 +22,26 @@
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| description(
|
| -"Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating."
|
| +"This test checks the case-insensitive matching of character literals."
|
| );
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| +shouldBeTrue("/\u00E5/i.test('/\u00E5/')");
|
| +shouldBeTrue("/\u00E5/i.test('/\u00C5/')");
|
| +shouldBeTrue("/\u00C5/i.test('/\u00E5/')");
|
| +shouldBeTrue("/\u00C5/i.test('/\u00C5/')");
|
|
|
| +shouldBeFalse("/\u00E5/i.test('P')");
|
| +shouldBeFalse("/\u00E5/i.test('PASS')");
|
| +shouldBeFalse("/\u00C5/i.test('P')");
|
| +shouldBeFalse("/\u00C5/i.test('PASS')");
|
|
|
| +shouldBeNull("'PASS'.match(/\u00C5/i)");
|
| +shouldBeNull("'PASS'.match(/\u00C5/i)");
|
| +
|
| +shouldBe("'PAS\u00E5'.replace(/\u00E5/ig, 'S')", "'PASS'");
|
| +shouldBe("'PAS\u00E5'.replace(/\u00C5/ig, 'S')", "'PASS'");
|
| +shouldBe("'PAS\u00C5'.replace(/\u00E5/ig, 'S')", "'PASS'");
|
| +shouldBe("'PAS\u00C5'.replace(/\u00C5/ig, 'S')", "'PASS'");
|
| +
|
| +shouldBe("'PASS'.replace(/\u00E5/ig, '%C3%A5')", "'PASS'");
|
| +shouldBe("'PASS'.replace(/\u00C5/ig, '%C3%A5')", "'PASS'");
|
|
|