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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/misspellings.html

Issue 2643563003: Fix leak with accessibility/misspellings.html (Closed)
Patch Set: 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 | no next file » | 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 4
5 <!-- Layout tests use a mock spell checker with only a few words in its dictiona ry. --> 5 <!-- Layout tests use a mock spell checker with only a few words in its dictiona ry. -->
6 6
7 <div id="editable" contentEditable="true" spellcheck="true"></div> 7 <div id="editable" contentEditable="true" spellcheck="true"></div>
8 8
9 <p id="paragraph" tabIndex="0" spellcheck="true">Hi, how adaasj sdklj?</p> 9 <p id="paragraph" tabIndex="0" spellcheck="true">Hi, how adaasj sdklj?</p>
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 testObject.step(() => { 111 testObject.step(() => {
112 currentTest.verification(); 112 currentTest.verification();
113 testObject.done(); 113 testObject.done();
114 }); 114 });
115 }); 115 });
116 } 116 }
117 testObject.cleanup = currentTest.cleanup; 117 testObject.cleanup = currentTest.cleanup;
118 118
119 currentTest.action(); 119 currentTest.action();
120 120
121 // Force idle time spell checker to run. 121 // TODO(xiaochengh): Force idle time spell checker to run after it is
122 if (window.testRunner) 122 // enabled in layout tests.
123 testRunner.runIdleTasks(() => {});
124 } 123 }
125 124
126 add_result_callback(testObject => { 125 add_result_callback(testObject => {
127 setTimeout(() => { 126 setTimeout(() => {
128 if (window.testRunner) 127 if (window.testRunner)
129 testRunner.removeSpellCheckResolvedCallback(); 128 testRunner.removeSpellCheckResolvedCallback();
130 testObject.cleanup(); 129 testObject.cleanup();
131 runTestIfAny(); 130 runTestIfAny();
132 }, 0); 131 }, 0);
133 }); 132 });
134 133
135 runTestIfAny(); 134 runTestIfAny();
136 </script> 135 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698