REGRESSION: [ Mac WK2 ] fast/text/international/unicode-bidi-other-neutrals.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=205808

Patch by Doug Kelly <dougk@apple.com> on 2020-01-16
Reviewed by Maciej Stachowiak.

Update the testcase for bidi text runs ending with other neutrals to dumpAsText, instead of trying
to compare visual content.

* fast/text/international/unicode-bidi-other-neutrals-expected.html: Removed.
* fast/text/international/unicode-bidi-other-neutrals-expected.txt: Added.
* fast/text/international/unicode-bidi-other-neutrals.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@254705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index b110d9f..5df5bcd 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,17 @@
+2020-01-16  Doug Kelly  <dougk@apple.com>
+
+        REGRESSION: [ Mac WK2 ] fast/text/international/unicode-bidi-other-neutrals.html is a flaky failure
+        https://bugs.webkit.org/show_bug.cgi?id=205808
+
+        Reviewed by Maciej Stachowiak.
+
+        Update the testcase for bidi text runs ending with other neutrals to dumpAsText, instead of trying
+        to compare visual content.
+
+        * fast/text/international/unicode-bidi-other-neutrals-expected.html: Removed.
+        * fast/text/international/unicode-bidi-other-neutrals-expected.txt: Added.
+        * fast/text/international/unicode-bidi-other-neutrals.html:
+
 2020-01-16  Diego Pino Garcia  <dpino@igalia.com>
 
         [GTK] Rebaseline several tests
diff --git a/LayoutTests/fast/text/international/unicode-bidi-other-neutrals-expected.html b/LayoutTests/fast/text/international/unicode-bidi-other-neutrals-expected.html
deleted file mode 100644
index 2f77bec..0000000
--- a/LayoutTests/fast/text/international/unicode-bidi-other-neutrals-expected.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <meta charset="utf-8"/>
-  </head>
-  <body>
-    <font dir="ltr">a</font>
-    <marquee>b</marquee>
-  </body>
-</html>
diff --git a/LayoutTests/fast/text/international/unicode-bidi-other-neutrals-expected.txt b/LayoutTests/fast/text/international/unicode-bidi-other-neutrals-expected.txt
new file mode 100644
index 0000000..c4d0e65
--- /dev/null
+++ b/LayoutTests/fast/text/international/unicode-bidi-other-neutrals-expected.txt
@@ -0,0 +1 @@
+This test verifies WebKit does not assert when encountering other neutrals at the end of a bidi text run. Test passes if WebKit does not assert in a development build. PASS
diff --git a/LayoutTests/fast/text/international/unicode-bidi-other-neutrals.html b/LayoutTests/fast/text/international/unicode-bidi-other-neutrals.html
index 2f77bec..d3cb876 100644
--- a/LayoutTests/fast/text/international/unicode-bidi-other-neutrals.html
+++ b/LayoutTests/fast/text/international/unicode-bidi-other-neutrals.html
@@ -1,10 +1,16 @@
 <!DOCTYPE html>
 <html>
-  <head>
-    <meta charset="utf-8"/>
-  </head>
-  <body>
-    <font dir="ltr">a</font>
-    <marquee>b</marquee>
-  </body>
+    <head>
+        <meta charset="utf-8"/>
+        <script>
+            function testresult() {
+                if (window.testRunner)
+                    testRunner.dumpAsText();
+            }
+        </script>
+    </head>
+    <body onload="testresult();">
+        <font dir="ltr">This test verifies WebKit does not assert when encountering other neutrals at the end of a bidi text run.  Test passes if WebKit does not assert in a development build.</font>
+        <marquee>PASS</marquee>
+    </body>
 </html>