| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <style> | 5 <style> |
| 6 .spacer { | 6 .spacer { |
| 7 line-height: 100em; | 7 line-height: 100em; |
| 8 } | 8 } |
| 9 </style> | 9 </style> |
| 10 </head> | 10 </head> |
| 11 <body> | 11 <body> |
| 12 <p> | 12 <p> |
| 13 This test verifies that links to anchors without content work as exp
ected. | 13 This test verifies that links to anchors without content work as exp
ected. |
| 14 </p> | 14 </p> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 var scrollTopBeforeClick = document.documentElement.scrollTop; | 35 var scrollTopBeforeClick = document.documentElement.scrollTop; |
| 36 document.getElementById('goto-2').click(); | 36 document.getElementById('goto-2').click(); |
| 37 if (document.documentElement.scrollTop > scrollTopBeforeClick) | 37 if (document.documentElement.scrollTop > scrollTopBeforeClick) |
| 38 testPassed('Clicking link 2 scrolled to block 2.'); | 38 testPassed('Clicking link 2 scrolled to block 2.'); |
| 39 else | 39 else |
| 40 testFailed('Clicking link 2 didn\'t scroll as expected.'); | 40 testFailed('Clicking link 2 didn\'t scroll as expected.'); |
| 41 </script> | 41 </script> |
| 42 </body> | 42 </body> |
| 43 </html> | 43 </html> |
| OLD | NEW |