Title: [197740] releases/WebKitGTK/webkit-2.12/LayoutTests
Revision
197740
Author
[email protected]
Date
2016-03-08 00:46:16 -0800 (Tue, 08 Mar 2016)

Log Message

Merge r197417 - FTL should simplify StringReplace with an empty replacement string
https://bugs.webkit.org/show_bug.cgi?id=154871

Reviewed by Michael Saboff.

Really add this new test.

* js/regress/script-tests/string-replace-empty.js: Added.
* js/regress/string-replace-empty-expected.txt: Added.
* js/regress/string-replace-empty.html: Added.

Modified Paths

Added Paths

Diff

Modified: releases/WebKitGTK/webkit-2.12/LayoutTests/ChangeLog (197739 => 197740)


--- releases/WebKitGTK/webkit-2.12/LayoutTests/ChangeLog	2016-03-08 08:38:40 UTC (rev 197739)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/ChangeLog	2016-03-08 08:46:16 UTC (rev 197740)
@@ -1,3 +1,16 @@
+2016-03-01  Filip Pizlo  <[email protected]>
+
+        FTL should simplify StringReplace with an empty replacement string
+        https://bugs.webkit.org/show_bug.cgi?id=154871
+
+        Reviewed by Michael Saboff.
+
+        Really add this new test.
+
+        * js/regress/script-tests/string-replace-empty.js: Added.
+        * js/regress/string-replace-empty-expected.txt: Added.
+        * js/regress/string-replace-empty.html: Added.
+
 2016-02-29  Filip Pizlo  <[email protected]>
 
         Turn String.prototype.replace into an intrinsic

Added: releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/script-tests/string-replace-empty.js (0 => 197740)


--- releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/script-tests/string-replace-empty.js	                        (rev 0)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/script-tests/string-replace-empty.js	2016-03-08 08:46:16 UTC (rev 197740)
@@ -0,0 +1,8 @@
+(function() {
+    var result;
+    for (var i = 0; i < 400000; ++i) {
+        result = "foo".replace(/f/g, "");
+    }
+    if (result != "oo")
+        throw "Error: bad result: "+ result;
+})();

Added: releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/string-replace-empty-expected.txt (0 => 197740)


--- releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/string-replace-empty-expected.txt	                        (rev 0)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/string-replace-empty-expected.txt	2016-03-08 08:46:16 UTC (rev 197740)
@@ -0,0 +1,10 @@
+JSRegress/string-replace-empty
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS no exception thrown
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/string-replace-empty.html (0 => 197740)


--- releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/string-replace-empty.html	                        (rev 0)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/string-replace-empty.html	2016-03-08 08:46:16 UTC (rev 197740)
@@ -0,0 +1,12 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src=""
+</head>
+<body>
+<script src=""
+<script src=""
+<script src=""
+<script src=""
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to