blob: 9ff73bb8e1f3eb67880560152d1fb421cc9bc147 [file] [log] [blame]
<html>
<head><title>Page with dynamic mixed contents</title>
<script>
function loadBadImage() {
var image = document.getElementById("my_image");
image.src = "http://localhost:1337/files/ssl/google_files/logo.gif";
checkForLoadFinished();
}
function checkForLoadFinished() {
var image = document.getElementById("my_image");
if (image.complete) {
document.getElementById("status_text").innerHTML = "Bad image loaded";
window.domAutomationController.send(true);
} else {
setTimeout("checkForLoadFinished()", 500);
}
}
</script>
</head>
<body>
This page has some java-script that loads some mixed contents.
<br><br>
You can also press the button below to load the image.
<br>
<input type=button value="Load image" onclick="loadBadImage();"></input>
<div id="status_text">Contents is OK</div>
<img id="my_image" src=""/>
</body>
</html>