browser/modules/test/chrome/test_sharedframe.xul

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:0d908ce13939
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
4 type="text/css"?>
5
6 <!--
7 https://bugzilla.mozilla.org/show_bug.cgi?id=811247
8 -->
9 <window title="Mozilla Bug 811247"
10 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
11 <script type="application/javascript"
12 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
13
14 <!-- test results are displayed in the html:body -->
15 <body xmlns="http://www.w3.org/1999/xhtml">
16 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=811247"
17 target="_blank">Mozilla Bug 811247</a>
18 </body>
19
20 <script type="application/javascript"><![CDATA[
21
22 /* Test for Bug 811247
23 *
24 * The test must run on a separate window becase .swapFrameLoaders currently won't swap
25 * iframes that are inside frames with history enabled, which is the case of the test running
26 * in the content area of a regular browser window; so we need a blank xul window for that
27 */
28 SimpleTest.waitForExplicitFinish();
29
30 let testWin;
31
32 function done() {
33 testWin.close();
34 SimpleTest.finish();
35 }
36
37 addLoadEvent(function() {
38 testWin = window.open("sharedframe.xul", "", "chrome,dialog,width=400,height=400");
39 });
40 ]]></script>
41 </window>

mercurial