OLD | NEW |
1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
2 <head> | 2 <head> |
3 <script>window.enablePixelTesting = true;</script> | 3 <script>window.enablePixelTesting = true;</script> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script src="../../fast/repaint/resources/repaint.js"></script> | 5 <script src="../../fast/repaint/resources/repaint.js"></script> |
6 </head> | 6 </head> |
7 <body style="margin: 0px"> | 7 <body style="margin: 0px"> |
8 | 8 |
9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
10 function test1() { | 10 function test1() { |
11 object1 = document.getElementsByTagName("object")[0]; | 11 object1 = document.getElementsByTagName("object")[0]; |
12 debug("Check initial <object> size, before external resource loade
d"); | 12 debug("Check initial <object> size, before external resource loade
d"); |
13 | 13 |
14 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).wi
dth", "400px"); | 14 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).wi
dth", "400px"); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 <object style="border: 1px red solid; width: 400px; height: 200px;" onload="runR
epaintTest()" data="resources/nested-embedded-svg-size-changes-target.html"></ob
ject> | 64 <object style="border: 1px red solid; width: 400px; height: 200px;" onload="runR
epaintTest()" data="resources/nested-embedded-svg-size-changes-target.html"></ob
ject> |
65 <p id="description"></p> | 65 <p id="description"></p> |
66 <div id="console"></div> | 66 <div id="console"></div> |
67 | 67 |
68 <script> | 68 <script> |
69 description("This test checks that intrinsic size changes of an embedded SVG
cause immediate updates of the object that embeds it."); | 69 description("This test checks that intrinsic size changes of an embedded SVG
cause immediate updates of the object that embeds it."); |
70 test1(); | 70 test1(); |
71 </script> | 71 </script> |
72 </body> | 72 </body> |
73 </html> | 73 </html> |
OLD | NEW |