Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-call.html

Issue 9895001: Merge 111098 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-frame-access-call-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/cross-frame-access-call-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698