| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../editing.js"></script> | 4 <script src="../editing.js"></script> |
| 5 <script src="resources/util.js"></script> | 5 <script src="resources/util.js"></script> |
| 6 <script src="../../fast/js/resources/js-test-pre.js"></script> | 6 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body onload="test();"> | 8 <body onload="test();"> |
| 9 <pre id="console"></pre> | 9 <pre id="console"></pre> |
| 10 <div id="container"> | 10 <div id="container"> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 || !internals.markerCountForNode(findFirstTextNode(testTextField), "
spelling"))) { | 43 || !internals.markerCountForNode(findFirstTextNode(testTextField), "
spelling"))) { |
| 44 window.setTimeout(function() { waitForMarkersToAppear(nretry - 1); }
, 5); | 44 window.setTimeout(function() { waitForMarkersToAppear(nretry - 1); }
, 5); |
| 45 } else { | 45 } else { |
| 46 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextAre
a), "spelling")', '3'); | 46 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextAre
a), "spelling")', '3'); |
| 47 shouldBe('internals.markerCountForNode(findFirstTextNode(testEditabl
e), "spelling")', '3'); | 47 shouldBe('internals.markerCountForNode(findFirstTextNode(testEditabl
e), "spelling")', '3'); |
| 48 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextFie
ld), "spelling")', '3'); | 48 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextFie
ld), "spelling")', '3'); |
| 49 finishJSTest(); | 49 finishJSTest(); |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 | 52 |
| 53 if (window.testRunner) { | |
| 54 testRunner.dumpAsText(); | |
| 55 testRunner.waitUntilDone(); | |
| 56 } | |
| 57 | |
| 58 shouldBe('internals.markerCountForNode(findFirstTextNode(testEditable), "spe
lling")', '0'); | 53 shouldBe('internals.markerCountForNode(findFirstTextNode(testEditable), "spe
lling")', '0'); |
| 59 testEditable.focus(); | 54 testEditable.focus(); |
| 60 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextArea), "spe
lling")', '0'); | 55 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextArea), "spe
lling")', '0'); |
| 61 testTextArea.focus(); | 56 testTextArea.focus(); |
| 62 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextField), "sp
elling")', '0'); | 57 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextField), "sp
elling")', '0'); |
| 63 testTextField.focus(); | 58 testTextField.focus(); |
| 64 waitForMarkersToAppear(10); | 59 waitForMarkersToAppear(10); |
| 65 } | 60 } |
| 66 | 61 |
| 67 </script> | 62 </script> |
| 68 <script src="../../fast/js/resources/js-test-post.js"></script> | 63 <script src="../../fast/js/resources/js-test-post.js"></script> |
| 69 </body> | 64 </body> |
| 70 </html> | 65 </html> |
| OLD | NEW |