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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/check_after_consecutive_inserttext_commands.html

Issue 2221783004: TypingCommand should not cancel previous spellcheck request if no new request in initiated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <div id="div" contenteditable></div>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 // Regression test for crbug.com/635452
7
8 if (window.internals)
9 internals.settings.setUnifiedTextCheckerEnabled(true);
10
11 async_test(function(t) {
12 var div = document.getElementById('div');
13 div.focus();
14 document.execCommand("InsertText", false, 'z');
15 document.execCommand("InsertText", false, 'z');
16 document.execCommand("InsertText", false, ' ');
17 document.execCommand("InsertText", false, 'a');
18 document.execCommand("InsertText", false, 'p');
19 document.execCommand("InsertText", false, 'p');
20 document.execCommand("InsertText", false, 'l');
21 document.execCommand("InsertText", false, 'e');
22 step_timeout(() => {
23 assert_true(window.internals !== undefined, 'window.internals is require d to inspect markers');
24 assert_true(internals.hasSpellingMarker(document, 0, 2), '"zz" should be marked');
25 t.done();
26 }, 50);
27 }, 'Misspelled words should be marked after consecutive InsertText commands.');
28 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698