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="../../fast/js/resources/js-test-pre.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" onload="runRepaintTest()"> | 7 <body style="margin: 0px" onload="runRepaintTest()"> |
8 | 8 |
9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
10 function test1() { | 10 function test1() { |
(...skipping 24 matching lines...) Expand all Loading... |
35 object1 = document.getElementsByTagName("object")[0]; | 35 object1 = document.getElementsByTagName("object")[0]; |
36 | 36 |
37 debug(""); | 37 debug(""); |
38 debug("Check final <object> size, after resizing finished"); | 38 debug("Check final <object> size, after resizing finished"); |
39 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).wi
dth", "400px"); | 39 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).wi
dth", "400px"); |
40 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).he
ight", "200px"); | 40 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).he
ight", "200px"); |
41 | 41 |
42 debug(""); | 42 debug(""); |
43 debug("Test passed if you see two green rectangles"); | 43 debug("Test passed if you see two green rectangles"); |
44 | 44 |
45 completeTest(); | 45 finishJSTest(); |
46 } | |
47 | |
48 function completeTest() { | |
49 var script = document.createElement("script"); | |
50 script.onload = function() { | |
51 if (window.testRunner) | |
52 testRunner.notifyDone(); | |
53 }; | |
54 | |
55 script.src = "../../fast/js/resources/js-test-post.js"; | |
56 document.body.appendChild(script); | |
57 } | 46 } |
58 </script> | 47 </script> |
59 | 48 |
60 <object style="border: 1px red solid" data="resources/embedded-svg-size-changes.
svg"></object> | 49 <object style="border: 1px red solid" data="resources/embedded-svg-size-changes.
svg"></object> |
61 <p id="description"></p> | 50 <p id="description"></p> |
62 <div id="console"></div> | 51 <div id="console"></div> |
63 | 52 |
64 <script> | 53 <script> |
| 54 window.jsTestIsAsync = true; |
65 if (window.testRunner) | 55 if (window.testRunner) |
66 testRunner.waitUntilDone(); | 56 testRunner.waitUntilDone(); |
67 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."); |
68 test1(); | 58 test1(); |
69 </script> | 59 </script> |
70 </body> | 60 </body> |
71 </html> | 61 </html> |
OLD | NEW |