Bug 1892041 - Part 1: Update test262 features. r=spidermonkey-reviewers,dminor
[gecko.git] / dom / base / test / test_named_frames.html
blob675a36e0cfe30d4d3e94bf5c7461f0afc8575bb8
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=823227
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 823227</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 <script type="application/javascript">
13 /** Test for Bug 823227 **/
15 SimpleTest.waitForExplicitFinish();
16 function doTest() {
17 is(frames[0].foo, frames[0][0],
18 "Should be able to look up frames by name in SVG documents");
19 is(frames[1].foo, frames[1][0],
20 "Should be able to look up frames by name in XML documents");
21 SimpleTest.finish();
24 addLoadEvent(doTest);
26 </script>
27 </head>
28 <body>
29 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=823227">Mozilla Bug 823227</a>
30 <p id="display"></p>
31 <div id="content" style="display: none">
32 <iframe src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><foreignObject><iframe name='foo' id='foo' xmlns='http://www.w3.org/1999/xhtml'/></foreignObject></svg>"></iframe>
33 <iframe src="data:text/xml,<root><iframe name='foo' id='foo' xmlns='http://www.w3.org/1999/xhtml'/></root>"></iframe>
34 </div>
35 <pre id="test">
36 </pre>
37 </body>
38 </html>