| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |