| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 5 <div id="test"> | 5 <div id="test"> |
| 6 </div> | 6 </div> |
| 7 <p id="description"></p> | 7 <p id="description"></p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script> | 9 <script> |
| 10 description('Test the extraction of the text surrounding an element.'); | 10 description('Test the extraction of the text surrounding an element.'); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 shouldBeEqualToString('surroundingText(\'<p id="here">.</p>\', 0, 2)', '.'); | 59 shouldBeEqualToString('surroundingText(\'<p id="here">.</p>\', 0, 2)', '.'); |
| 60 | 60 |
| 61 document.body.removeChild(document.getElementById('test')); | 61 document.body.removeChild(document.getElementById('test')); |
| 62 finishJSTest(); | 62 finishJSTest(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 window.onload = run; | 65 window.onload = run; |
| 66 window.jsTestIsAsync = true; | 66 window.jsTestIsAsync = true; |
| 67 window.successfullyParsed = true; | 67 window.successfullyParsed = true; |
| 68 </script> | 68 </script> |
| 69 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 70 </body> | 69 </body> |
| 71 </html> | 70 </html> |
| OLD | NEW |