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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/as-object/nested-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"> 7 <body style="margin: 0px">
8 <script type="text/javascript"> 8 <script type="text/javascript">
9 window.jsTestIsAsync = true; 9 window.jsTestIsAsync = true;
10 window.outputRepaintRects = false; 10 window.outputRepaintRects = false;
11 if (window.testRunner) 11 if (window.testRunner)
12 testRunner.waitUntilDone(); 12 testRunner.waitUntilDone();
13 13
14 function test1() { 14 function test1() {
15 object1 = document.getElementsByTagName("object")[0]; 15 object1 = document.getElementsByTagName("object")[0];
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).wi dth", "400px"); 55 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).wi dth", "400px");
56 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).he ight", "200px"); 56 shouldBeEqualToString("document.defaultView.getComputedStyle(object1).he ight", "200px");
57 57
58 debug(""); 58 debug("");
59 debug("Test passed if you see two green rectangles"); 59 debug("Test passed if you see two green rectangles");
60 60
61 finishJSTest(); 61 finishJSTest();
62 } 62 }
63 </script> 63 </script>
64 64
65 <object style="border: 1px red solid; width: 400px; height: 200px;" onload="runR epaintAndPixelTest()" data="resources/nested-embedded-svg-size-changes-target.ht ml"></object> 65 <object style="border: 1px red solid; width: 400px; height: 200px;" onload="runR epaintTest()" data="resources/nested-embedded-svg-size-changes-target.html"></ob ject>
66 <p id="description"></p> 66 <p id="description"></p>
67 <div id="console"></div> 67 <div id="console"></div>
68 68
69 <script> 69 <script>
70 description("This test checks that intrinsic size changes of an embedded SVG cause immediate updates of the object that embeds it."); 70 description("This test checks that intrinsic size changes of an embedded SVG cause immediate updates of the object that embeds it.");
71 test1(); 71 test1();
72 </script> 72 </script>
73 </body> 73 </body>
74 </html> 74 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698