| Index: LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html
|
| diff --git a/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html b/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html
|
| index 742913af63bd848bd8ebf74d53334272e16d34ad..73d981b2b20b30b92944a8ed26b42c19d13a6952 100644
|
| --- a/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html
|
| +++ b/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html
|
| @@ -15,6 +15,8 @@ description('Test if WebKit does not spellcheck text when pasting text and conti
|
|
|
| jsTestIsAsync = true;
|
|
|
| +internals.settings.setAsynchronousSpellCheckingEnabled(true);
|
| +
|
| // Insert a misspelled word to initialize a spellchecker.
|
| var srcNode = document.getElementById('src');
|
| srcNode.focus();
|
| @@ -26,32 +28,15 @@ document.execCommand("InsertText", false, 'p');
|
| document.execCommand("InsertText", false, 'p');
|
| document.execCommand("InsertText", false, 'l');
|
| document.execCommand("InsertText", false, 'e');
|
| -shouldBeTrue('internals.hasSpellingMarker(document, 0, 2)');
|
| +shouldBecomeEqual('internals.hasSpellingMarker(document, 0, 2)', 'true', function() {});
|
| window.getSelection().selectAllChildren(srcNode);
|
| document.execCommand('Copy');
|
|
|
| -internals.settings.setAsynchronousSpellCheckingEnabled(true);
|
| internals.setContinuousSpellCheckingEnabled(false);
|
|
|
| document.execCommand('Paste');
|
| +shouldBecomeDifferent('internals.hasSpellingMarker(document, 0, 2)', 'true', finishJSTest);
|
|
|
| -var retryCount = 10;
|
| -var sleepPeriod = 1;
|
| -function verifyMarker() {
|
| - srcNode.focus();
|
| - var hasMarker = internals.hasSpellingMarker(document, 0, 2);
|
| - if (!hasMarker && --retryCount > 0) {
|
| - sleepPeriod *= 2;
|
| - window.setTimeout(verifyMarker, sleepPeriod);
|
| - return;
|
| - }
|
| - if (hasMarker)
|
| - testFailed('The destination node should not have a marker.');
|
| - else
|
| - testPassed('The destination node does not have any markers.');
|
| - finishJSTest();
|
| -}
|
| -window.setTimeout(verifyMarker, sleepPeriod);
|
| </script>
|
| <script src="../../fast/js/resources/js-test-post.js"></script>
|
| </body>
|
|
|