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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/hit-test-unclosed-subpaths.svg

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 <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintAndPixelTest()">> 1 <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintTest()">>
2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> 2 <script xlink:href="../../fast/repaint/resources/repaint.js"/>
3 <script> 3 <script>
4 function clickHandler(evt) { 4 function clickHandler(evt) {
5 evt.target.style.fill = "green"; 5 evt.target.style.fill = "green";
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.notifyDone(); 7 testRunner.notifyDone();
8 } 8 }
9 9
10 function repaintTest() { 10 function repaintTest() {
11 if (window.eventSender) { 11 if (window.eventSender) {
12 testRunner.waitUntilDone(); 12 testRunner.waitUntilDone();
13 eventSender.mouseMoveTo(50, 50); 13 eventSender.mouseMoveTo(50, 50);
14 eventSender.mouseDown(); 14 eventSender.mouseDown();
15 eventSender.mouseUp(); 15 eventSender.mouseUp();
16 } 16 }
17 } 17 }
18 </script> 18 </script>
19 <path onclick="clickHandler(evt)" fill="red" stroke="black" stroke-width="3" d=" M 10 10 l 0 100 l 100 0 l 0 -100 M 120 10 l 0 100 l 100 0 l 0 -100"/> 19 <path onclick="clickHandler(evt)" fill="red" stroke="black" stroke-width="3" d=" M 10 10 l 0 100 l 100 0 l 0 -100 M 120 10 l 0 100 l 100 0 l 0 -100"/>
20 20
21 <text x="10" y="150">There should be 2 green squares above this (when run under DumpRenderTree)</text> 21 <text x="10" y="150">There should be 2 green squares above this (when run under DumpRenderTree)</text>
22 22
23 </svg> 23 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698