content/html/document/test/test_bug499092.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:0354ec134b4b
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=499092
5 -->
6 <head>
7 <title>Test for Bug 499092</title>
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=499092">Mozilla Bug 499092</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
15
16 </div>
17 <pre id="test">
18 <script type="application/javascript">
19 /** Test for Bug 499092 **/
20 SimpleTest.waitForExplicitFinish();
21 var content = document.getElementById("content");
22
23 function testHtml() {
24 is(this.contentDocument.title, "HTML OK");
25 SimpleTest.finish();
26 }
27
28 function testXml() {
29 is(this.contentDocument.title, "XML OK");
30 var iframeHtml = document.createElement("iframe");
31 iframeHtml.onload = testHtml;
32 iframeHtml.src = "bug499092.html";
33 content.appendChild(iframeHtml);
34 }
35
36 var iframeXml = document.createElement("iframe");
37 iframeXml.onload = testXml;
38 iframeXml.src = "bug499092.xml";
39 content.appendChild(iframeXml);
40 </script>
41 </pre>
42 </body>
43 </html>

mercurial