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

Side by Side Diff: LayoutTests/http/tests/security/frame-loading-via-document-write.html

Issue 24021006: Changed the test case to get it inline with the intended behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 | no next file » | 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 <title></title> 3 <title></title>
4 4
5 <script language="JavaScript"> 5 <script language="JavaScript">
6 6
7 function buildFrameset() 7 function buildFrameset()
8 { 8 {
9 if (window.testRunner) { 9 if (window.testRunner) {
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 "</td></tr></table></body></html>"; 43 "</td></tr></table></body></html>";
44 44
45 frames['middleRow'].document.open("text/html","replace"); 45 frames['middleRow'].document.open("text/html","replace");
46 frames['middleRow'].document.charset=document.charset; 46 frames['middleRow'].document.charset=document.charset;
47 frames['middleRow'].document.write(outHTML); 47 frames['middleRow'].document.write(outHTML);
48 frames['middleRow'].document.close(); 48 frames['middleRow'].document.close();
49 49
50 outHTML = "<html><head><scr" + "ipt language=\"JavaScript\" src=\"resources/ frame-loading-via-document-write.js\">"+ 50 outHTML = "<html><head><scr" + "ipt language=\"JavaScript\" src=\"resources/ frame-loading-via-document-write.js\">"+
51 "</scr" + "ipt></head><body onLoad=\"lastTest()\"><table><tr><td>" + 51 "</scr" + "ipt></head><body onLoad=\"lastTest()\"><table><tr><td>" +
52 "<div id=\"result\"></div>"+ 52 "<div id=\"result\"></div>"+
53 "<img src=\"/resources/abe.png\" id=\"myImg\">"+ 53 "<img src=\"resources/abe.png\" id=\"myImg\">"+
54 "</td></tr></table></body></html>"; 54 "</td></tr></table></body></html>";
55 55
56 frames['bottomRow'].document.open("text/html","replace"); 56 frames['bottomRow'].document.open("text/html","replace");
57 frames['bottomRow'].document.charset=document.charset; 57 frames['bottomRow'].document.charset=document.charset;
58 frames['bottomRow'].document.write(outHTML); 58 frames['bottomRow'].document.write(outHTML);
59 frames['bottomRow'].document.close(); 59 frames['bottomRow'].document.close();
60 } 60 }
61 61
62 buildFrameset(); 62 buildFrameset();
63 63
64 </script> 64 </script>
65 </head> 65 </head>
66 66
67 <body> 67 <body>
68 <p>JavaScript FAILED! you should not see this.</p> 68 <p>JavaScript FAILED! you should not see this.</p>
69 </body> 69 </body>
70 70
71 </html> 71 </html>
72 72
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698