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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/postMessage/target-origin.html

Issue 2015713002: Resolve console output in postMessage tests with site-per-process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bug reference Created 4 years, 6 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/recv.js"></script> 4 <script src="resources/recv.js"></script>
5 <script> 5 <script>
6 if (window.testRunner) { 6 if (window.testRunner) {
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 // We have different console output in --site-per-process mode. See https:// crbug.com/614413.
9 testRunner.setDumpConsoleMessages(false);
8 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
9 } 11 }
10 12
11 var totalExpectedReplies = 0; 13 var totalExpectedReplies = 0;
12 var receivedMessages = []; 14 var receivedMessages = [];
13 15
14 function tryPostMessage(win, origin, shouldExpectReply) { 16 function tryPostMessage(win, origin, shouldExpectReply) {
15 try { 17 try {
16 win.postMessage("Trying origin=" + origin, origin); 18 win.postMessage("Trying origin=" + origin, origin);
17 if (shouldExpectReply) 19 if (shouldExpectReply)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 </script> 67 </script>
66 <body onload="test()"> 68 <body onload="test()">
67 <div>window.location.href = <script>document.write(window.location.href);</scrip t></div> 69 <div>window.location.href = <script>document.write(window.location.href);</scrip t></div>
68 <div><iframe src="http://localhost:8000/security/postMessage/resources/post-mess age-listener.html" 70 <div><iframe src="http://localhost:8000/security/postMessage/resources/post-mess age-listener.html"
69 id="iframe-localhost" width="800" height="300" style="border: 1px solid black; "> 71 id="iframe-localhost" width="800" height="300" style="border: 1px solid black; ">
70 </iframe><iframe src="http://127.0.0.1:8000/security/postMessage/resources/post- message-listener.html" 72 </iframe><iframe src="http://127.0.0.1:8000/security/postMessage/resources/post- message-listener.html"
71 id="iframe-127" width="800" height="300" style="border: 1px solid black;"></if rame> 73 id="iframe-127" width="800" height="300" style="border: 1px solid black;"></if rame>
72 <div id="result">waiting...</div> 74 <div id="result">waiting...</div>
73 </body> 75 </body>
74 </html> 76 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698