Bug 457825 - Support access control headers when downloading fonts. r=jonas,dbaron...
[wine-gecko.git] / testing / mochitest / tests / test_bug344830.html
blobb6647155659be466b4bc7634c6684fda16413808
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=344830
5 -->
6 <head>
7 <title>Test for Bug 344830</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=344830">Mozilla Bug 344830</a>
14 <p id="display"></p>
15 <div id="content" style="display: block">
16 <embed name="svg1"
17 width="200" height="200"
18 type="image/svg+xml"
19 src="/static/bug344830_testembed.svg">
20 </div>
21 <pre id="test">
22 <script class="testbody" type="text/javascript">
24 /** Test for Bug 344830 **/
25 function getSVG() {
26 var embed = document.embeds["svg1"];
27 var svgDocument = embed.getSVGDocument();
28 var element = svgDocument.getElementById("g1");
29 ok(embed, "document.embeds[] works with SVG");
30 ok(svgDocument, "document.embeds[] works with SVG and embed.getSVGDocument()");
31 ok(element, "document.embeds[] works with SVG and svgDocument.getElementById()");
32 SimpleTest.finish();
34 addLoadEvent(getSVG);
35 SimpleTest.waitForExplicitFinish()
38 </script>
39 </pre>
40 </body>
41 </html>