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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-queue.html

Issue 2635173002: Ensure same invocation order as creation order for SpellCheckRequests (Closed)
Patch Set: Use std::find_if Created 3 years, 11 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/spellcheck/SpellCheckRequester.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script> 4 <script src="../assert_selection.js"></script>
5 <script src="spellcheck_test.js"></script> 5 <script src="spellcheck_test.js"></script>
6 6
7 <script> 7 <script>
8 function pasteToAllChildren(text, container) { 8 function pasteToAllChildren(text, container) {
9 const document = container.ownerDocument; 9 const document = container.ownerDocument;
10 const selection = document.getSelection(); 10 const selection = document.getSelection();
(...skipping 23 matching lines...) Expand all
34 pasteToAllChildren('zz apple orange', container); 34 pasteToAllChildren('zz apple orange', container);
35 }, 35 },
36 [ 36 [
37 '<div id="container">', 37 '<div id="container">',
38 '<textarea>#zz# apple orange</textarea>', 38 '<textarea>#zz# apple orange</textarea>',
39 '<div contenteditable>#zz# apple orange</div>', 39 '<div contenteditable>#zz# apple orange</div>',
40 '<input value="#zz# apple orange">', 40 '<input value="#zz# apple orange">',
41 '</div>' 41 '</div>'
42 ].join(''), 42 ].join(''),
43 'Spellchecker handles multiple requests.'); 43 'Spellchecker handles multiple requests.');
44
45 // Regression test for crbug.com/681760
46 spellcheck_test(
47 [
48 '<textarea id="textarea1"></textarea>',
49 '<textarea id="textarea2"></textarea>'
50 ].join(''),
51 document => {
52 const textarea1 = document.getElementById('textarea1');
53 const textarea2 = document.getElementById('textarea2');
54 textarea1.focus();
55 document.execCommand('insertText', false, 'foo.');
56 textarea2.focus();
57 document.execCommand('insertText', false, 'baz.');
58 textarea1.focus();
59 document.execCommand('insertText', false, 'zz.');
60 },
61 [
62 '<textarea id="textarea1">#foo#.#zz#.</textarea>',
63 '<textarea id="textarea2">#baz#.</textarea>'
64 ].join(''),
65 'Spellchecker invokes requests in sequence order.');
44 </script> 66 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698