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

Side by Side Diff: chrome/test/data/ssl/page_with_dynamic_insecure_content.html

Issue 4429001: SSLUITest's work with ephemeral port testserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit-fixing. Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head><title>Page with dynamic insecure content</title> 2 <head><title>Page with dynamic insecure content</title>
3 3
4 <script> 4 <script>
5 function loadBadImage() { 5 function loadBadImage() {
6 var image = document.getElementById("my_image"); 6 var image = document.getElementById("my_image");
7 image.src = "http://localhost:1337/files/ssl/google_files/logo.gif"; 7 image.src = "http://REPLACE_WITH_HOST_AND_PORT/files/ssl/google_files/logo.g if";
8 checkForLoadFinished(); 8 checkForLoadFinished();
9 } 9 }
10 10
11 function checkForLoadFinished() { 11 function checkForLoadFinished() {
12 var image = document.getElementById("my_image"); 12 var image = document.getElementById("my_image");
13 if (image.complete) { 13 if (image.complete) {
14 document.getElementById("status_text").innerHTML = "Bad image loaded"; 14 document.getElementById("status_text").innerHTML = "Bad image loaded";
15 window.domAutomationController.send(true); 15 window.domAutomationController.send(true);
16 } else { 16 } else {
17 setTimeout("checkForLoadFinished()", 500); 17 setTimeout("checkForLoadFinished()", 500);
18 } 18 }
19 } 19 }
20 </script> 20 </script>
21 21
22 </head> 22 </head>
23 <body> 23 <body>
24 24
25 This page has some java-script that loads some insecure content. 25 This page has some java-script that loads some insecure content.
26 <br><br> 26 <br><br>
27 You can also press the button below to load the image. 27 You can also press the button below to load the image.
28 <br> 28 <br>
29 <input type=button value="Load image" onclick="loadBadImage();"></input> 29 <input type=button value="Load image" onclick="loadBadImage();"></input>
30 30
31 <div id="status_text">Contents is OK</div> 31 <div id="status_text">Contents is OK</div>
32 <img id="my_image" src=""/> 32 <img id="my_image" src=""/>
33 33
34 34
35 </body> 35 </body>
36 </html> 36 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/ssl/page_runs_insecure_content.html ('k') | chrome/test/data/ssl/page_with_unsafe_contents.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698