OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="resources/cross-frame-access.js"></script> | 3 <script src="resources/cross-frame-access.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for-get
-test.html" style=""></iframe> | 6 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for-get
-test.html" style=""></iframe> |
7 <pre id="console"></pre> | 7 <pre id="console"></pre> |
8 <script> | 8 <script> |
9 | 9 |
10 window.targetWindow = frames[0]; | 10 window.targetWindow = frames[0]; |
11 | 11 |
12 window.onload = function() | 12 window.onload = function() |
13 { | 13 { |
14 if (window.testRunner) | 14 if (window.testRunner) |
15 testRunner.dumpAsText(); | 15 testRunner.dumpAsText(); |
16 | 16 |
17 log("\n----- tests for getting/setting the frames array access and the prope
rties associated with it -----\n"); | 17 log("\n----- tests for getting/setting the frames array access and the prope
rties associated with it -----\n"); |
18 | 18 |
19 // frames array | 19 // frames array |
20 shouldBe("targetWindow.frames.length", 1); | 20 shouldBe("targetWindow.frames.length", 1); |
21 shouldBeTrue("canGet('targetWindow.frames[0]')"); | 21 shouldBeTrue("canGet('targetWindow.frames[0]')"); |
22 shouldBeTrue("canGet('targetWindow[0]')"); | 22 shouldBeTrue("canGet('targetWindow[0]')"); |
| 23 |
| 24 // Work around DRT bug that causes subsequent tests to fail. |
| 25 window.stop(); |
23 } | 26 } |
24 </script> | 27 </script> |
25 </body> | 28 </body> |
26 </html> | 29 </html> |
OLD | NEW |