CLOSED TREE: TraceMonkey merge head. (a=blockers)
[mozilla-central.git] / docshell / test / navigation / test_sibling-matching-parent.html
blob2ec4bdcf4ffb0f66002d097f121a312acd68ae1a
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/javascript" src="/MochiKit/packed.js"></script>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
8 <script type="text/javascript" src="NavigationUtils.js"></script>
9 <style type="text/css">
10 iframe { width: 90%; height: 50px; }
11 </style>
12 <script>
13 window.onload = function () {
14 document.getElementById('active').innerHTML =
15 '<iframe src="navigate.html#parent.frames[0],location"></iframe>' +
16 '<iframe src="navigate.html#child1,open"></iframe>' +
17 '<iframe src="navigate.html#child2,form"></iframe>' +
18 '<iframe src="navigate.html#child3,hyperlink"></iframe>';
20 xpcWaitForFinishedFrames(function() {
21 isNavigated(frames[0], "Should be able to navigate sibling with on-domain parent by setting location.");
22 isNavigated(frames[1], "Should be able to navigate sibling with on-domain parent by calling window.open.");
23 isNavigated(frames[2], "Should be able to navigate sibling with on-domain parent by submitting form.");
24 isNavigated(frames[3], "Should be able to navigate sibling with on-domain parent by targeted hyperlink.");
26 xpcCleanupWindows();
27 SimpleTest.finish();
28 }, 4);
30 </script>
31 </head>
32 <body>
33 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=408052">Mozilla Bug 408052</a>
34 <div id="frames">
35 <iframe name="child0" src="http://test1.example.org:80/tests/docshell/test/navigation/blank.html"></iframe>
36 <iframe name="child1" src="http://test1.example.org:80/tests/docshell/test/navigation/blank.html"></iframe>
37 <iframe name="child2" src="http://test1.example.org:80/tests/docshell/test/navigation/blank.html"></iframe>
38 <iframe name="child3" src="http://test1.example.org:80/tests/docshell/test/navigation/blank.html"></iframe>
39 </div>
40 <div id="active"></div>
41 <pre id="test">
42 <script type="text/javascript">
43 SimpleTest.waitForExplicitFinish();
44 </script>
45 </pre>
46 </body>
47 </html>