Bug 616542 - Shorten file path length of mochitest; r=ted
[gecko.git] / content / svg / content / test / test_bbox-with-invalid-viewBox.xhtml
blob84b4fe0e2bc6b5d38813b1e3855e1a3475d9c65d
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=433063
5 -->
6 <head>
7 <title>Test for getBBox when the viewBox is invalid</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>
13 <p id="display"></p>
14 <div id="content" style="display: none"></div>
16 <svg id="svg" xmlns="http://www.w3.org/2000/svg"
17 style="width:200px; height:200px;" viewBox="0 0 200 0">
18 <rect width="120" height="120"/>
19 </svg>
21 <pre id="test">
22 <script class="testbody" type="application/javascript">
23 SimpleTest.waitForExplicitFinish();
25 function run()
27 var bbox = $("svg").getBBox();
28 is(bbox.x, 0, "Check bbox.x");
29 is(bbox.y, 0, "Check bbox.y");
30 is(bbox.width, 120, "Check bbox.width");
31 is(bbox.height, 120, "Check bbox.height");
32 SimpleTest.finish();
35 window.addEventListener("load", run, false);
36 </script>
37 </pre>
38 </body>
39 </html>