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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/focusing-other-frame.html

Issue 2734013002: Implement cold mode invocation for idle time spell checker (Closed)
Patch Set: rebased Mar 7 Created 3 years, 9 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: third_party/WebKit/LayoutTests/editing/spelling/focusing-other-frame.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/focusing-other-frame.html b/third_party/WebKit/LayoutTests/editing/spelling/focusing-other-frame.html
deleted file mode 100644
index ae5ba9a1c1e53d7c9c107e3f9c7d6fd0b477054a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/spelling/focusing-other-frame.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script src="resources/util.js"></script>
-</head>
-<body>
-<pre id="console"></pre>
-<iframe id="frame1"></iframe>
-<iframe id="frame2"></iframe>
-
-<script>
-var frame1 = document.getElementById('frame1');
-var testEditable1 = frame1.contentWindow.document.createElement('div');
-testEditable1.setAttribute('contentEditable', 'true');
-frame1.contentWindow.document.body.appendChild(testEditable1);
-var frame2 = document.getElementById('frame2');
-var testEditable2 = frame2.contentWindow.document.createElement('div');
-testEditable2.setAttribute('contentEditable', 'true');
-frame2.contentWindow.document.body.appendChild(testEditable2);
-
-var steps = [
- function() {
- testEditable1.focus();
- frame1.contentWindow.document.execCommand('InsertText', false, 'zz');
- },
- function() {
- testEditable2.focus();
- }
-];
-
-var assertions = [
- () => assert_equals(internals.markerCountForNode(testEditable1.childNodes[0], 'spelling'), 0),
- () => assert_equals(internals.markerCountForNode(testEditable1.childNodes[0], 'spelling'), 1)
-];
-
-runSpellingTest(steps, assertions,'Text written in an editable in one frame should be spellchecked when focusing other frame')
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698