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

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

Issue 23444027: TEST COMPLETE does not appear at the end of spellchecking tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 3 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <script src="resources/js-test-selection-shared.js"></script> 5 <script src="resources/js-test-selection-shared.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p id="description"></p> 8 <p id="description"></p>
9 <div id="console"></div> 9 <div id="console"></div>
10 <script> 10 <script>
11 description('For Bug 72939: Asynchronous SpellChecker should consider multiple r equests.'); 11 description('For Bug 72939: Asynchronous SpellChecker should consider multiple r equests.');
12 12
13 if (window.testRunner) 13 jsTestIsAsync = true;
14 testRunner.waitUntilDone(); 14
15 if (window.internals) 15 if (window.internals)
16 internals.settings.setAsynchronousSpellCheckingEnabled(true); 16 internals.settings.setAsynchronousSpellCheckingEnabled(true);
17 17
18 var testRoot = document.createElement("div"); 18 var testRoot = document.createElement("div");
19 document.body.insertBefore(testRoot, document.body.firstChild); 19 document.body.insertBefore(testRoot, document.body.firstChild);
20 20
21 var source1 = document.createElement("div"); 21 var source1 = document.createElement("div");
22 source1.innerHTML = "foo bar"; 22 source1.innerHTML = "foo bar";
23 testRoot.appendChild(source1); 23 testRoot.appendChild(source1);
24 24
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 function verifyIfAny() 74 function verifyIfAny()
75 { 75 {
76 var next = tests.shift(); 76 var next = tests.shift();
77 if (next) { 77 if (next) {
78 next(); 78 next();
79 return; 79 return;
80 } 80 }
81 81
82 testRoot.style.display = "none"; 82 testRoot.style.display = "none";
83 if (window.testRunner) 83 finishJSTest();
84 testRunner.notifyDone();
85 } 84 }
86 85
87 function findFirstTextNode(node) 86 function findFirstTextNode(node)
88 { 87 {
89 function iterToFindFirstTextNode(node) 88 function iterToFindFirstTextNode(node)
90 { 89 {
91 if (node instanceof Text) 90 if (node instanceof Text)
92 return node; 91 return node;
93 92
94 var childNodes = node.childNodes; 93 var childNodes = node.childNodes;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 copyAndPaste(source2, destinations[i]); 176 copyAndPaste(source2, destinations[i]);
178 177
179 verifyIfAny(); 178 verifyIfAny();
180 179
181 var successfullyParsed = true; 180 var successfullyParsed = true;
182 181
183 </script> 182 </script>
184 <script src="../../fast/js/resources/js-test-post.js"></script> 183 <script src="../../fast/js/resources/js-test-post.js"></script>
185 </body> 184 </body>
186 </html> 185 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/spelling/spellcheck-paste-expected.txt ('k') | LayoutTests/editing/spelling/spellcheck-queue-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698