Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: LayoutTests/editing/spelling/spellcheck-disable-enable.html

Issue 23530023: spellcheck-disable-enable.html fails when asynchronous spellchecking is on (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/spelling/spellcheck-disable-enable.html
diff --git a/LayoutTests/editing/spelling/spellcheck-disable-enable.html b/LayoutTests/editing/spelling/spellcheck-disable-enable.html
index 6c4d6e1184c94802d4f5d75794632d0122980456..384e72d6cf1d295508cfa95f5635429dd8c6fc26 100644
--- a/LayoutTests/editing/spelling/spellcheck-disable-enable.html
+++ b/LayoutTests/editing/spelling/spellcheck-disable-enable.html
@@ -30,32 +30,22 @@ function test(destination, frame_doc)
return;
}
- internals.settings.setAsynchronousSpellCheckingEnabled(true);
+ internals.settings.setAsynchronousSpellCheckingEnabled(false);
internals.settings.setUnifiedTextCheckerEnabled(true);
- function waitForMarkersToAppear(node, nretry)
- {
- if (nretry > 0 && !internals.markerCountForNode(node, "spelling")) {
- window.setTimeout(function() { waitForMarkersToAppear(node, nretry - 1); }, 1);
- }
- }
-
destination_elm = destination;
destination_elm_in_frame = frame_doc.body;
destination_elm.focus();
document.execCommand("InsertText", false, "zz.");
- waitForMarkersToAppear(destination_elm.childNodes[0], 10);
shouldBe('internals.markerCountForNode(destination_elm.childNodes[0], "spelling")', '1');
destination_elm_in_frame.focus();
frame_doc.execCommand("InsertText", false, "zz.");
- waitForMarkersToAppear(destination_elm_in_frame.childNodes[0], 10);
shouldBe('internals.markerCountForNode(destination_elm_in_frame.childNodes[0], "spelling")', '1');
internals.setContinuousSpellCheckingEnabled(false);
shouldBe('internals.markerCountForNode(destination_elm.childNodes[0], "spelling")', '0');
shouldBe('internals.markerCountForNode(destination_elm_in_frame.childNodes[0], "spelling")', '0');
destination_elm.focus();
internals.setContinuousSpellCheckingEnabled(true);
- waitForMarkersToAppear(destination_elm.childNodes[0], 10);
shouldBe('internals.markerCountForNode(destination_elm.childNodes[0], "spelling")', '1');
finishJSTest();
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698