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

Unified Diff: LayoutTests/platform/chromium/editing/spelling/delete-misspelled-word.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/platform/chromium/editing/spelling/delete-misspelled-word.html
diff --git a/LayoutTests/platform/chromium/editing/spelling/delete-misspelled-word.html b/LayoutTests/platform/chromium/editing/spelling/delete-misspelled-word.html
deleted file mode 100644
index 1e36f1ab9f71ee32682cd6e1d60d48859aede35f..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/editing/spelling/delete-misspelled-word.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src=../../../../fast/js/resources/js-test-pre.js language="javascript" type="text/javascript"></script>
-<title>Testing moving cursor to a misspelled word</title>
-</head>
-<body>
-<div id="src" contenteditable="true" spellcheck="true"></div><br/>
-<script language="javascript">
-description('Test if Chrome spellchecks a word again when changing a misspelled word.' +
- 'To test manually, type a misspelled word "zz " and type a backspace key twice.' +
- 'This test succeeds when "z" is not marked as misspelled.');
-
-jsTestIsAsync = true;
-
-var node = document.getElementById('src');
-node.focus();
-function insertText(text) {
- document.execCommand("InsertText", false, text);
-}
-shouldBeTrue('insertText("z"); insertText("z"); insertText(" "); internals.hasSpellingMarker(document, 0, 2)');
-
-debug('Enable asynchronous spellchecking, delete two characters, and insert a space');
-internals.settings.setAsynchronousSpellCheckingEnabled(true);
-internals.settings.setUnifiedTextCheckerEnabled(true);
-
-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);
-</script>
-<script src="../../../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698