1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docshell/test/navigation/file_static_and_dynamic_1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +<html> 1.5 + <head> 1.6 + <script> 1.7 + function test() { 1.8 + var ifr = document.createElement("iframe"); 1.9 + ifr.src = "frame0.html"; 1.10 + document.getElementById("dynamic").appendChild(ifr); 1.11 + var staticFrame = document.getElementById("staticframe"); 1.12 + staticFrame.onload = window.location = "goback.html"; 1.13 + staticFrame.contentWindow.location = "frame1.html"; 1.14 + } 1.15 + 1.16 + function start() { 1.17 + if (++opener.testCount == 1) { 1.18 + test(); 1.19 + } else { 1.20 + var staticFrame = document.getElementById("staticframe"); 1.21 + opener.ok(new String(staticFrame.contentWindow.location).indexOf(staticFrame.src) >= 0, 1.22 + "Wrong document loaded!"); 1.23 + opener.nextTest(); 1.24 + window.close(); 1.25 + } 1.26 + } 1.27 + </script> 1.28 + </head> 1.29 + <body onload="setTimeout('start()', 0)"> 1.30 + <h5>Dynamic</h5> 1.31 + <div id="dynamic"></div> 1.32 + <h5>Static</h5> 1.33 + <div id="static"><iframe id="staticframe" src="frame0.html"></iframe></div> 1.34 + </body> 1.35 +</html>