dom/base/test/test_named_frames.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 type="application/javascript" 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();
    22   }
    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>

mercurial