Index: LayoutTests/editing/spelling/delete-misspelled-word.html |
diff --git a/LayoutTests/editing/spelling/delete-misspelled-word.html b/LayoutTests/editing/spelling/delete-misspelled-word.html |
index b3ae196f00d3b72a47e657ca9df18a63c713f0fe..d297391bfea1fb5063a836b5f7363df190ac0e1b 100644 |
--- a/LayoutTests/editing/spelling/delete-misspelled-word.html |
+++ b/LayoutTests/editing/spelling/delete-misspelled-word.html |
@@ -28,17 +28,7 @@ testRunner.execCommand("DeleteBackward"); |
testRunner.execCommand("DeleteBackward"); |
document.execCommand("InsertText", false, ' '); |
-var retryCount = 10; |
-function verifyMarker() { |
- var hasMarker = internals.hasSpellingMarker(document, 0, 1); |
- if (hasMarker && --retryCount > 0) { |
- window.setTimeout(verifyMarker, 1); |
- return; |
- } |
- shouldBeFalse('internals.hasSpellingMarker(document, 0, 1)'); |
- finishJSTest(); |
-} |
-window.setTimeout(verifyMarker, 1); |
+shouldBecomeEqual('internals.hasSpellingMarker(document, 0, 1)', 'false', finishJSTest); |
</script> |
<script src="../../fast/js/resources/js-test-post.js"></script> |
</body> |