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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/cold_mode_type_idle.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/cold_mode_type_idle.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/cold_mode_type_idle.html b/third_party/WebKit/LayoutTests/editing/spelling/cold_mode_type_idle.html
new file mode 100644
index 0000000000000000000000000000000000000000..35433722d2d5ea13f8346618e425ac7a6f511fdf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/spelling/cold_mode_type_idle.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
+<script src="spellcheck_test.js"></script>
+<script>
+spellcheck_test(
+ '<div contenteditable>|</div>',
+ 'insertText zz',
+ '<div contenteditable>zz</div>',
+ {
+ title: 'No immediate checking during typing',
+ callback: sample => spellcheck_test(
+ sample,
+ '',
+ '<div contenteditable>#zz#</div>',
+ {
+ title: 'Text is eventually checked in cold mode',
+ needsFullCheck: true
+ })
+ });
+</script>

Powered by Google App Engine
This is Rietveld 408576698