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="../../resources/js-test.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/text-based-repaint.js"></script> |
6 </head> | 6 </head> |
7 <body style="margin: 0px" onload="runRepaintTest()"> | 7 <body style="margin: 0px" onload="runRepaintAndPixelTest()"> |
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", "300px"); | 14 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).wi
dth", "300px"); |
15 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).he
ight", "150px"); | 15 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).he
ight", "150px"); |
16 } | 16 } |
17 | 17 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 <script> | 53 <script> |
54 window.jsTestIsAsync = true; | 54 window.jsTestIsAsync = true; |
55 if (window.testRunner) | 55 if (window.testRunner) |
56 testRunner.waitUntilDone(); | 56 testRunner.waitUntilDone(); |
57 description("This test checks that intrinsic size changes of an embedded SVG
cause immediate updates of the object that embeds it."); | 57 description("This test checks that intrinsic size changes of an embedded SVG
cause immediate updates of the object that embeds it."); |
58 test1(); | 58 test1(); |
59 </script> | 59 </script> |
60 </body> | 60 </body> |
61 </html> | 61 </html> |
OLD | NEW |