Bug 1839316: part 5) Guard the "fetchpriority" attribute behind a pref. r=kershaw...
[gecko.git] / docshell / test / navigation / file_bug508537_1.html
blob182c08567096e51e62a4cd23ffeb8793e9001a49
1 <html>
2 <head>
3 <script>
4 function dynFrameLoad() {
5 var ifrs = document.getElementsByTagName("iframe");
6 opener.ok(String(ifrs[0].contentWindow.location).includes(ifrs[0].src),
7 "Wrong document loaded (1)\n");
8 opener.ok(String(ifrs[1].contentWindow.location).includes(ifrs[1].src),
9 "Wrong document loaded (2)\n");
10 if (opener && ++opener.testCount == 1) {
11 window.location = "goback.html";
12 } else {
13 opener.finishTest();
17 window.addEventListener("load",
18 function() {
19 var container = document.getElementById("t1");
20 container.addEventListener("load", dynFrameLoad, true);
21 container.appendChild(container.appendChild(document.getElementById("i1")));
22 });
23 </script>
24 </head>
25 <body>
26 <h5>Container:</h5>
27 <div id="t1"></div>
28 <h5>Original frames:</h5>
29 <iframe id="i1" src="frame0.html"></iframe>
30 <iframe src="frame1.html"></iframe>
31 </body>
32 </html>