ap | 4e77b91 | 2006-02-11 10:48:56 +0000 | [diff] [blame] | 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> |
| 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.org | ea3cf92 | 2012-06-22 06:52:33 +0000 | [diff] [blame] | 13 | testRunner.notifyDone(); |
ap | 4e77b91 | 2006-02-11 10:48:56 +0000 | [diff] [blame] | 14 | } |
| 15 | } |
| 16 | |
| 17 | </script> |
| 18 | </head> |
| 19 | <body> |
| 20 | <script> |
rniwa@webkit.org | ea3cf92 | 2012-06-22 06:52:33 +0000 | [diff] [blame] | 21 | if (window.testRunner) { |
| 22 | testRunner.dumpAsText(); |
| 23 | testRunner.waitUntilDone(); |
ap | 4e77b91 | 2006-02-11 10:48:56 +0000 | [diff] [blame] | 24 | } |
| 25 | </script> |
| 26 | |
eric@webkit.org | b5c7993 | 2009-09-29 19:15:13 +0000 | [diff] [blame] | 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> |
ap | 4e77b91 | 2006-02-11 10:48:56 +0000 | [diff] [blame] | 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> |