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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-queue.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-queue.html b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-queue.html
index 73bcd3bb94ad478b0b10a8884be5b14278f9ea3b..0ae70d9c9286e10bb2a30aa9c45b2ecc730e3de2 100644
--- a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-queue.html
+++ b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-queue.html
@@ -41,4 +41,26 @@ spellcheck_test(
'</div>'
].join(''),
'Spellchecker handles multiple requests.');
+
+// Regression test for crbug.com/681760
+spellcheck_test(
+ [
+ '<textarea id="textarea1"></textarea>',
+ '<textarea id="textarea2"></textarea>'
+ ].join(''),
+ document => {
+ const textarea1 = document.getElementById('textarea1');
+ const textarea2 = document.getElementById('textarea2');
+ textarea1.focus();
+ document.execCommand('insertText', false, 'foo.');
+ textarea2.focus();
+ document.execCommand('insertText', false, 'baz.');
+ textarea1.focus();
+ document.execCommand('insertText', false, 'zz.');
+ },
+ [
+ '<textarea id="textarea1">#foo#.#zz#.</textarea>',
+ '<textarea id="textarea2">#baz#.</textarea>'
+ ].join(''),
+ 'Spellchecker invokes requests in sequence order.');
</script>
« 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