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

Unified Diff: LayoutTests/editing/spelling/spellcheck-editable-on-focus.html

Issue 23444027: TEST COMPLETE does not appear at the end of spellchecking tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 4 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
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 aef52b22bc186a6215588f2f9a40c29e7d7a38da..7303dba89a4af8c9a9de770ec13f49770bf328d1 100644
--- a/LayoutTests/editing/spelling/spellcheck-editable-on-focus.html
+++ b/LayoutTests/editing/spelling/spellcheck-editable-on-focus.html
@@ -17,6 +17,8 @@ description("Spell checking should be triggered on focus of an editable. " +
"To test manually type focus above editable and textarea. Misspellings in them " +
"should be marked on focus.");
+jsTestIsAsync = true;
+
var testEditable = document.getElementById('test_editable');
var testTextArea = document.getElementById('test_textarea');
var testTextField = document.getElementById('test_textfield');
@@ -44,8 +46,7 @@ function test()
shouldBe('internals.markerCountForNode(findFirstTextNode(testTextArea), "spelling")', '3');
shouldBe('internals.markerCountForNode(findFirstTextNode(testEditable), "spelling")', '3');
shouldBe('internals.markerCountForNode(findFirstTextNode(testTextField), "spelling")', '3');
- if (window.testRunner)
- testRunner.notifyDone();
+ finishJSTest();
}
}
@@ -66,4 +67,4 @@ function test()
</script>
<script src="../../fast/js/resources/js-test-post.js"></script>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698