1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
8 testRunner
.waitUntilDone();
10 function rightFrameLoaded() {
11 rightFrameLoadCount
++;
12 if (rightFrameLoadCount
== 2) {
13 // Console is set by runTest
14 console
.firstChild
.nodeValue
= "SUCCESS";
16 if (window
.testRunner
) {
17 // Put the test result in the main document so we can dump as text
18 var text
= console
.ownerDocument
.documentElement
.innerHTML
;
23 testRunner
.dumpAsText();
24 testRunner
.notifyDone();
30 console
= document
.getElementById("left_frame").contentWindow
.document
.getElementById("console");
31 if (console
.firstChild
.nodeValue
== "FAILURE") {
32 console
.firstChild
.nodeValue
= "PROCESSING...";
33 document
.getElementById("right_frame").contentWindow
.location
.href
= "resources/purple.html";
35 alert('TEST FAILURE: Unexpected onload call')
39 rightFrameLoadCount
= 0;
42 <frameset onload=
"runTest()" cols=
"50%,*">
43 <frame id=
"left_frame" src=
"data:text/html,<body><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><p>Testing that setting contentWindow.location.href of a frame to the same value works</p><p id=console>FAILURE</p></body>">
44 <frame id=
"right_frame" onload=
"javascript:rightFrameLoaded()" src=
"resources/purple.html"></frame>