| Index: test/webkit/regexp-find-first-asserted.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/regexp-find-first-asserted.js
|
| similarity index 81%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/regexp-find-first-asserted.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..ce8628fd35dd34b181d0376933fe82ac747f6e5d 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/regexp-find-first-asserted.js
|
| @@ -22,10 +22,10 @@
|
| // 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."
|
| +'Tests some regular expressions that were doing the wrong thing with the "find first asserted" optimization.'
|
| );
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| -
|
| +shouldBe('/.*<body>(.*)<\\/body>.*/.exec("foo<body>bar</body>baz").toString()', '"foo<body>bar</body>baz,bar"');
|
| +shouldBe('/\\s*<!--([\s\S]*)\\/\\/\\s*-->\\s*/.exec("<!--// -->").toString()', '"<!--// -->,"');
|
|
|
| +debug('');
|
|
|