Index: LayoutTests/editing/spelling/spellcheck-editable-on-focus.html |
diff --git a/LayoutTests/editing/spelling/spellcheck-editable-on-focus.html b/LayoutTests/editing/spelling/spellcheck-editable-on-focus.html |
index 0aa189b2856f93394cf1cfab1560c627b909f907..aef52b22bc186a6215588f2f9a40c29e7d7a38da 100644 |
--- a/LayoutTests/editing/spelling/spellcheck-editable-on-focus.html |
+++ b/LayoutTests/editing/spelling/spellcheck-editable-on-focus.html |
@@ -36,9 +36,9 @@ function test() |
function waitForMarkersToAppear(nretry) |
{ |
if (nretry > 0 |
- && !internals.markerCountForNode(findFirstTextNode(testEditable), "spelling") |
- && !internals.markerCountForNode(findFirstTextNode(testTextArea), "spelling") |
- && !internals.markerCountForNode(findFirstTextNode(testTextField), "spelling")) { |
+ && (!internals.markerCountForNode(findFirstTextNode(testEditable), "spelling") |
+ || !internals.markerCountForNode(findFirstTextNode(testTextArea), "spelling") |
+ || !internals.markerCountForNode(findFirstTextNode(testTextField), "spelling"))) { |
window.setTimeout(function() { waitForMarkersToAppear(nretry - 1); }, 5); |
} else { |
shouldBe('internals.markerCountForNode(findFirstTextNode(testTextArea), "spelling")', '3'); |