| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <link rel="stylesheet" href="../../../../fast/js/resources/js-test-style.css"> | |
| 5 <script src=../../../../fast/js/resources/js-test-pre.js language="javascript" t
ype="text/javascript"></script> | |
| 6 <title>Testing that searching for text restarts at the last active match.</title
> | |
| 7 </head> | |
| 8 <body> | |
| 9 <div id="container"> | |
| 10 Failure: If the second search ends up finding the text in this line we d
idn't restart the search from the last active match: last_step.<br /> | |
| 11 Start: The first search should match this word: first_step.<br /> | |
| 12 Success: The second search should match this word: last_step. Subsequent
searches should fail. | |
| 13 </div> | |
| 14 <pre id="console" style="visibility: hidden;"></pre> | |
| 15 <script> | |
| 16 function log(message) | |
| 17 { | |
| 18 document.getElementById("console").appendChild(document.createTextNode(messa
ge + "\n")); | |
| 19 } | |
| 20 | |
| 21 if (!window.testRunner) | |
| 22 testFailed('This test requires the testRunner object'); | |
| 23 else { | |
| 24 shouldBeTrue('testRunner.findString("first_", [])'); | |
| 25 shouldBeTrue('testRunner.findString("first_step", [])'); | |
| 26 shouldBeTrue('testRunner.findString("last_step", [])'); | |
| 27 shouldBeFalse('testRunner.findString("last_step", [])'); | |
| 28 } | |
| 29 | |
| 30 document.getElementById("console").style.removeProperty("visibility"); | |
| 31 | |
| 32 var successfullyParsed = true; | |
| 33 </script> | |
| 34 <script src="../../../../fast/js/resources/js-test-post.js"></script> | |
| 35 </body> | |
| 36 </html> | |
| OLD | NEW |