| Index: third_party/WebKit/LayoutTests/editing/spelling/check_after_consecutive_inserttext_commands.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/spelling/check_after_consecutive_inserttext_commands.html b/third_party/WebKit/LayoutTests/editing/spelling/check_after_consecutive_inserttext_commands.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1fc9ac17cc2ca11320148def0be2446b1081e764
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/spelling/check_after_consecutive_inserttext_commands.html
|
| @@ -0,0 +1,28 @@
|
| +<!doctype html>
|
| +<div id="div" contenteditable></div>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script>
|
| +// Regression test for crbug.com/635452
|
| +
|
| +if (window.internals)
|
| + internals.settings.setUnifiedTextCheckerEnabled(true);
|
| +
|
| +async_test(function(t) {
|
| + var div = document.getElementById('div');
|
| + div.focus();
|
| + document.execCommand("InsertText", false, 'z');
|
| + document.execCommand("InsertText", false, 'z');
|
| + document.execCommand("InsertText", false, ' ');
|
| + document.execCommand("InsertText", false, 'a');
|
| + document.execCommand("InsertText", false, 'p');
|
| + document.execCommand("InsertText", false, 'p');
|
| + document.execCommand("InsertText", false, 'l');
|
| + document.execCommand("InsertText", false, 'e');
|
| + step_timeout(() => {
|
| + assert_true(window.internals !== undefined, 'window.internals is required to inspect markers');
|
| + assert_true(internals.hasSpellingMarker(document, 0, 2), '"zz" should be marked');
|
| + t.done();
|
| + }, 50);
|
| +}, 'Misspelled words should be marked after consecutive InsertText commands.');
|
| +</script>
|
|
|