OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Document::nodesFromRect : basic text nodes and links test - bug 47795</
title> | 4 <title>Document::nodesFromRect : basic text nodes and links test - bug 47795</
title> |
5 <style type="text/css"> @import "resources/nodesFromRect.css"; </style> | 5 <style type="text/css"> @import "resources/nodesFromRect.css"; </style> |
6 <script src="../../js/resources/js-test-pre.js"></script> | 6 <script src="../../../resources/js-test.js"></script> |
7 <script src="resources/nodesFromRect.js"></script> | 7 <script src="resources/nodesFromRect.js"></script> |
8 <script type="application/javascript"> | 8 <script type="application/javascript"> |
9 function runTest() | 9 function runTest() |
10 { | 10 { |
11 var e = {}; | 11 var e = {}; |
12 | 12 |
13 // Set up shortcut access to elements | 13 // Set up shortcut access to elements |
14 e['html'] = document.getElementsByTagName("html")[0]; | 14 e['html'] = document.getElementsByTagName("html")[0]; |
15 ['a1', 'iframe1', 'body'].forEach(function(a) { | 15 ['a1', 'iframe1', 'body'].forEach(function(a) { |
16 e[a] = document.getElementById(a); | 16 e[a] = document.getElementById(a); |
(...skipping 26 matching lines...) Expand all Loading... |
43 window.onload = runTest; | 43 window.onload = runTest; |
44 </script> | 44 </script> |
45 </head> | 45 </head> |
46 <body id="body"> | 46 <body id="body"> |
47 <a id="a1" href="#">A</a> | 47 <a id="a1" href="#">A</a> |
48 <iframe id="iframe1" src="data:text/html,<div>div</div><p>p</p>"></iframe> | 48 <iframe id="iframe1" src="data:text/html,<div>div</div><p>p</p>"></iframe> |
49 | 49 |
50 <div id="console"></div> | 50 <div id="console"></div> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |