Title: [267696] trunk/LayoutTests
Revision
267696
Author
[email protected]
Date
2020-09-28 05:25:01 -0700 (Mon, 28 Sep 2020)

Log Message

Fix test failures inadventently introduced in r267644
https://bugs.webkit.org/show_bug.cgi?id=217049

Patch by Angelos Oikonomopoulos <[email protected]> on 2020-09-28
Reviewed by Adrian Perez de Castro.

r267644 strips trailing whitespace in two LayoutTests/js/*expected.txt files
but doesn't update the corresponding js string literals to not produce such.
* js/script-tests/parser-syntax-check.js:
* js/script-tests/regexp-sticky.js:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (267695 => 267696)


--- trunk/LayoutTests/ChangeLog	2020-09-28 08:18:22 UTC (rev 267695)
+++ trunk/LayoutTests/ChangeLog	2020-09-28 12:25:01 UTC (rev 267696)
@@ -1,3 +1,15 @@
+2020-09-28  Angelos Oikonomopoulos  <[email protected]>
+
+        Fix test failures inadventently introduced in r267644
+        https://bugs.webkit.org/show_bug.cgi?id=217049
+
+        Reviewed by Adrian Perez de Castro.
+
+        r267644 strips trailing whitespace in two LayoutTests/js/*expected.txt files
+        but doesn't update the corresponding js string literals to not produce such.
+        * js/script-tests/parser-syntax-check.js:
+        * js/script-tests/regexp-sticky.js:
+
 2020-09-27  Rob Buis  <[email protected]>
 
         Resync web-platform-tests/html/semantics/the-iframe-element from upstream

Modified: trunk/LayoutTests/js/script-tests/parser-syntax-check.js (267695 => 267696)


--- trunk/LayoutTests/js/script-tests/parser-syntax-check.js	2020-09-28 08:18:22 UTC (rev 267695)
+++ trunk/LayoutTests/js/script-tests/parser-syntax-check.js	2020-09-28 12:25:01 UTC (rev 267696)
@@ -696,8 +696,8 @@
 invalid("1 % delete");
 invalid("1 % ++");
 invalid("1 % --");
-invalid("1 % \n++");
-invalid("1 % \n--");
+invalid("1 %\n++");
+invalid("1 %\n--");
 invalid('let {w} = (foo-=()), {} = ("a" ^= "b");');
 invalid('const {w} = (foo-=()), {} = ("a" ^= "b");');
 invalid('var {w} = (foo-=()), {} = ("a" ^= "b");');

Modified: trunk/LayoutTests/js/script-tests/regexp-sticky.js (267695 => 267696)


--- trunk/LayoutTests/js/script-tests/regexp-sticky.js	2020-09-28 08:18:22 UTC (rev 267695)
+++ trunk/LayoutTests/js/script-tests/regexp-sticky.js	2020-09-28 12:25:01 UTC (rev 267696)
@@ -73,7 +73,7 @@
 testStickyExec("Test lastIndex resets", /\d/y, "12345", 0, ["1", "2", "3", "4", "5", null, "1", "2", "3", "4", "5", null]);
 testStickyExec("Ignore Case", new RegExp("test", "iy"), "TESTtestTest", 0, ["TEST", "test", "Test", null]);
 testStickyExec("Alternates, differing lengths long to short", new RegExp("bb|a", "y"), "a", 0, ["a", null]);
-testStickyExec("Alternates, differing lengths long to short with mutliple matches ", new RegExp("abc|ab|a", "y"), "aababcaabcab", 0, ["a", "ab", "abc", "a", "abc", "ab", null]);
+testStickyExec("Alternates, differing lengths long to short with mutliple matches", new RegExp("abc|ab|a", "y"), "aababcaabcab", 0, ["a", "ab", "abc", "a", "abc", "ab", null]);
 testStickyExec("Alternates, differing lengths, short to long", new RegExp("Dog |Cat |Mouse ", "y"), "Mouse Dog Cat ", 0, ["Mouse ", "Dog ", "Cat ", null]);
 testStickyExec("BOL Anchored, starting at 0", /^X/y, "XXX", 0, ["X", null]);
 testStickyExec("BOL Anchored, starting at 1", /^X/y, "XXX", 1, [null, "X", null]);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to