Title: [281641] trunk/LayoutTests
- Revision
- 281641
- Author
- [email protected]
- Date
- 2021-08-26 12:09:28 -0700 (Thu, 26 Aug 2021)
Log Message
[iOS] editing/input/cocoa/autocorrect-on.html occasionally fails with a text diff
https://bugs.webkit.org/show_bug.cgi?id=229560
rdar://82191308
Reviewed by Andy Estes.
Adjust the test so that it doesn't require "Tset" to be autocorrected to "Test". Instead, just check that it was
changed from "Tset" to anything else.
* editing/input/cocoa/autocorrect-on-expected.txt:
* editing/input/cocoa/autocorrect-on.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (281640 => 281641)
--- trunk/LayoutTests/ChangeLog 2021-08-26 19:03:13 UTC (rev 281640)
+++ trunk/LayoutTests/ChangeLog 2021-08-26 19:09:28 UTC (rev 281641)
@@ -1,3 +1,17 @@
+2021-08-26 Wenson Hsieh <[email protected]>
+
+ [iOS] editing/input/cocoa/autocorrect-on.html occasionally fails with a text diff
+ https://bugs.webkit.org/show_bug.cgi?id=229560
+ rdar://82191308
+
+ Reviewed by Andy Estes.
+
+ Adjust the test so that it doesn't require "Tset" to be autocorrected to "Test". Instead, just check that it was
+ changed from "Tset" to anything else.
+
+ * editing/input/cocoa/autocorrect-on-expected.txt:
+ * editing/input/cocoa/autocorrect-on.html:
+
2021-08-26 Ayumi Kojima <[email protected]>
[ BigSur arm64 EWS ] ASSERTION FAILED: willBeComposited == needsToBeComposited(layer, queryData) on security/contentSecurityPolicy/plugins-types-blocks-quicktime-plugin-replacement.html (flaky crash).
Modified: trunk/LayoutTests/editing/input/cocoa/autocorrect-on-expected.txt (281640 => 281641)
--- trunk/LayoutTests/editing/input/cocoa/autocorrect-on-expected.txt 2021-08-26 19:03:13 UTC (rev 281640)
+++ trunk/LayoutTests/editing/input/cocoa/autocorrect-on-expected.txt 2021-08-26 19:09:28 UTC (rev 281641)
@@ -8,7 +8,7 @@
PASS insertedText became true
PASS insertedText became true
PASS insertedReplacementText became true
-PASS contenteditable.textContent is "Test."
+PASS contenteditable.textContent is not stringToType
PASS insertedText became true
PASS insertedText became true
PASS insertedText became true
@@ -15,7 +15,7 @@
PASS insertedText became true
PASS insertedText became true
PASS insertedReplacementText became true
-PASS textarea.value is "Test."
+PASS textarea.value is not stringToType
PASS successfullyParsed is true
TEST COMPLETE
Modified: trunk/LayoutTests/editing/input/cocoa/autocorrect-on.html (281640 => 281641)
--- trunk/LayoutTests/editing/input/cocoa/autocorrect-on.html 2021-08-26 19:03:13 UTC (rev 281640)
+++ trunk/LayoutTests/editing/input/cocoa/autocorrect-on.html 2021-08-26 19:09:28 UTC (rev 281641)
@@ -20,11 +20,10 @@
<pre id="description"></pre>
<pre id="console"></pre>
<script>
- const stringToType = "Tset.";
- const autocorrectedString = "Test.";
- window.jsTestIsAsync = true;
- window.insertedText = false;
- window.insertedReplacementText = false;
+ stringToType = "Tset.";
+ jsTestIsAsync = true;
+ insertedText = false;
+ insertedReplacementText = false;
description("This test verifies that autocorrection=on enables autocorrection. To manually test, type 'Tset' into both editable areas and a period, and verify that it is not autocorrected.");
function handleInput(event) {
@@ -80,10 +79,10 @@
textarea.addEventListener("input", handleInput);
await runTestForElement(contenteditable, stringToType);
- shouldBeEqualToString("contenteditable.textContent", autocorrectedString);
+ shouldNotBe("contenteditable.textContent", "stringToType");
await runTestForElement(textarea, stringToType);
- shouldBeEqualToString("textarea.value", autocorrectedString);
+ shouldNotBe("textarea.value", "stringToType");
contenteditable.remove();
textarea.remove();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes