1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
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";
12 document
.getElementById("console").firstChild
.nodeValue
= "SUCCESS";
13 testRunner
.notifyDone();
21 if (window
.testRunner
) {
22 testRunner
.dumpAsText();
23 testRunner
.waitUntilDone();
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>