| 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]; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 shouldBe("window.print.call(targetWindow);", "undefined"); | 47 shouldBe("window.print.call(targetWindow);", "undefined"); |
| 48 shouldBe("window.stop.call(targetWindow);", "undefined"); | 48 shouldBe("window.stop.call(targetWindow);", "undefined"); |
| 49 shouldBe("window.alert.call(targetWindow, 'message');", "undefined"); | 49 shouldBe("window.alert.call(targetWindow, 'message');", "undefined"); |
| 50 shouldBe("window.scrollBy.call(targetWindow, 0, 0);", "undefined"); | 50 shouldBe("window.scrollBy.call(targetWindow, 0, 0);", "undefined"); |
| 51 shouldBe("window.scrollTo.call(targetWindow, 0, 0);", "undefined"); | 51 shouldBe("window.scrollTo.call(targetWindow, 0, 0);", "undefined"); |
| 52 shouldBe("window.scroll.call(targetWindow, 0, 0);", "undefined"); | 52 shouldBe("window.scroll.call(targetWindow, 0, 0);", "undefined"); |
| 53 shouldBe("window.moveBy.call(targetWindow, 0, 0);", "undefined"); | 53 shouldBe("window.moveBy.call(targetWindow, 0, 0);", "undefined"); |
| 54 shouldBe("window.moveTo.call(targetWindow, 0, 0);", "undefined"); | 54 shouldBe("window.moveTo.call(targetWindow, 0, 0);", "undefined"); |
| 55 shouldBe("window.resizeBy.call(targetWindow, 0, 0);", "undefined"); | 55 shouldBe("window.resizeBy.call(targetWindow, 0, 0);", "undefined"); |
| 56 shouldBe("window.resizeTo.call(targetWindow, 0, 0);", "undefined"); | 56 shouldBe("window.resizeTo.call(targetWindow, 0, 0);", "undefined"); |
| 57 shouldBe("window.showModalDialog.call(targetWindow);", "undefined"); |
| 57 | 58 |
| 58 // FIXME: showModalDialog now works on DRT and thus breaks this test. Will
uncomment after adding a separate test for Mac for showModalDialog - Bug #39897 | 59 // Throws an EvalError and logs to the error console |
| 59 // Throws a TypeError and logs to the error console | 60 shouldBe("window.eval.call(targetWindow, '1+2');", '"EvalError: The \\"this\
\" value passed to eval must be the global object from which eval originated"'); |
| 60 // shouldBe("window.showModalDialog.call(targetWindow);", '"TypeError: Resul
t of expression \'window.showModalDialog\' [undefined] is not an object."'); | |
| 61 | 61 |
| 62 // - Tests for the Location object - | 62 // - Tests for the Location object - |
| 63 // undefined value indicates failure | 63 // undefined value indicates failure |
| 64 shouldBe("window.location.toString.call(targetWindow.location)", "undefined"
); | 64 shouldBe("window.location.toString.call(targetWindow.location)", "undefined"
); |
| 65 | 65 |
| 66 // Work around DRT bug that causes subsequent tests to fail. | 66 // Work around DRT bug that causes subsequent tests to fail. |
| 67 window.stop(); | 67 window.stop(); |
| 68 } | 68 } |
| 69 </script> | 69 </script> |
| 70 </body> | 70 </body> |
| 71 </html> | 71 </html> |
| OLD | NEW |