Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: third_party/WebKit/LayoutTests/svg/as-object/embedded-svg-size-changes.html

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/text-based-repaint.js"></script> 5 <script src="../../fast/repaint/resources/repaint.js"></script>
6 </head> 6 </head>
7 <body style="margin: 0px" onload="runRepaintAndPixelTest()"> 7 <body style="margin: 0px" onload="runRepaintTest()">
8 8
9 <script type="text/javascript"> 9 <script type="text/javascript">
10 window.outputRepaintRects = false; 10 window.outputRepaintRects = false;
11 function test1() { 11 function test1() {
12 object1 = document.getElementsByTagName("object")[0]; 12 object1 = document.getElementsByTagName("object")[0];
13 debug("Check initial &lt;object&gt; size, before external resource loade d"); 13 debug("Check initial &lt;object&gt; size, before external resource loade d");
14 14
15 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).wi dth", "300px"); 15 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).wi dth", "300px");
16 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).he ight", "150px"); 16 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).he ight", "150px");
17 } 17 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 <script> 54 <script>
55 window.jsTestIsAsync = true; 55 window.jsTestIsAsync = true;
56 if (window.testRunner) 56 if (window.testRunner)
57 testRunner.waitUntilDone(); 57 testRunner.waitUntilDone();
58 description("This test checks that intrinsic size changes of an embedded SVG cause immediate updates of the object that embeds it."); 58 description("This test checks that intrinsic size changes of an embedded SVG cause immediate updates of the object that embeds it.");
59 test1(); 59 test1();
60 </script> 60 </script>
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698