OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 } | 7 } |
8 | 8 |
| 9 if (window.internals) |
| 10 internals.settings.setTreatIPAddressAsDomain(true); |
| 11 |
9 function log(msg) { | 12 function log(msg) { |
10 var line = document.createElement('div'); | 13 var line = document.createElement('div'); |
11 line.appendChild(document.createTextNode(msg)); | 14 line.appendChild(document.createTextNode(msg)); |
12 document.getElementById('console').appendChild(line); | 15 document.getElementById('console').appendChild(line); |
13 } | 16 } |
14 | 17 |
15 function doTest() { | 18 function doTest() { |
16 // Grab a pointer to the document because we'll lose access to it after | 19 // Grab a pointer to the document because we'll lose access to it after |
17 // we set our document.domain property. | 20 // we set our document.domain property. |
18 var doc0 = frames[0].frames[0].document; | 21 var doc0 = frames[0].frames[0].document; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 </script> | 53 </script> |
51 </head> | 54 </head> |
52 <body> | 55 <body> |
53 <iframe | 56 <iframe |
54 onload="doTest()" | 57 onload="doTest()" |
55 src="resources/iframe-with-about-blank-children.html"> | 58 src="resources/iframe-with-about-blank-children.html"> |
56 </iframe> | 59 </iframe> |
57 <div id="console"></div> | 60 <div id="console"></div> |
58 </body> | 61 </body> |
59 </html> | 62 </html> |
OLD | NEW |