blob: c7957920a5cb7aa0c1eb0d6e728e0b772ba84365 [file] [log] [blame]
ap4e77b912006-02-11 10:48:56 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3<html>
4<head>
5<script>
6
7 function reportSuccess() {
8 if (document.getElementById("console").firstChild.nodeValue == "FAILURE") {
9 document.getElementById("console").firstChild.nodeValue = "PROCESSING...";
10 document.getElementById("anIFrame").src = "resources/purple.html";
11 } else {
12 document.getElementById("console").firstChild.nodeValue = "SUCCESS";
rniwa@webkit.orgea3cf922012-06-22 06:52:33 +000013 testRunner.notifyDone();
ap4e77b912006-02-11 10:48:56 +000014 }
15 }
16
17</script>
18</head>
19<body>
20 <script>
rniwa@webkit.orgea3cf922012-06-22 06:52:33 +000021 if (window.testRunner) {
22 testRunner.dumpAsText();
23 testRunner.waitUntilDone();
ap4e77b912006-02-11 10:48:56 +000024 }
25 </script>
26
eric@webkit.orgb5c79932009-09-29 19:15:13 +000027<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=3400">bug 3400</a>: setting the .src of an iframe to the same value does not reload page.</p>
ap4e77b912006-02-11 10:48:56 +000028<p id=console>FAILURE</p>
29<iframe style="width:350px;border:dotted green 1px" width="200" height="200" id="anIFrame" onload="javascript:reportSuccess()" src="resources/purple.html"></iframe>
30</body>
31</html>