Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / iframe-set-same-src.html
blobc7957920a5cb7aa0c1eb0d6e728e0b772ba84365
1 <!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>
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";
13 testRunner.notifyDone();
17 </script>
18 </head>
19 <body>
20 <script>
21 if (window.testRunner) {
22 testRunner.dumpAsText();
23 testRunner.waitUntilDone();
25 </script>
27 <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>
28 <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>