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

Side by Side Diff: LayoutTests/svg/custom/scroll-hit-test.xhtml

Issue 205263004: Convert svg repaint tests to pixel test only repaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove fixedpos Created 6 years, 9 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 | Annotate | Revision Log
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 src="../../fast/repaint/resources/repaint.js"></script> 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
4 </head> 4 </head>
5 <body style="margin: 0" onload="runRepaintTest()"> 5 <body style="margin: 0" onload="runRepaintAndPixelTest()">
6 <div id="div" style="width:100px; height:100px; overflow:hidden"> 6 <div id="div" style="width:100px; height:100px; overflow:hidden">
7 <svg id="svg" width="200px" height="200px" xmlns="http://www.w3.org/2000/svg "> 7 <svg id="svg" width="200px" height="200px" xmlns="http://www.w3.org/2000/svg ">
8 <rect fill="orange" width="100px" height="100px" /> 8 <rect fill="orange" width="100px" height="100px" />
9 <rect id="rect" onclick="clicked()" fill="green" y="100px" x="100px" width ="100px" height="100px" /> 9 <rect id="rect" onclick="clicked()" fill="green" y="100px" x="100px" width ="100px" height="100px" />
10 </svg> 10 </svg>
11 </div> 11 </div>
12 <script> 12 <script>
13 <![CDATA[ 13 <![CDATA[
14 function clicked() { 14 function clicked() {
15 document.getElementById("rect").style.fill = "green"; 15 document.getElementById("rect").style.fill = "green";
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.notifyDone(); 17 testRunner.notifyDone();
18 } 18 }
19 19
20 function repaintTest() { 20 function repaintTest() {
21 var div = document.getElementById("div"); 21 var div = document.getElementById("div");
22 div.scrollTop = 100; 22 div.scrollTop = 100;
23 div.scrollLeft = 100; 23 div.scrollLeft = 100;
24 if (window.eventSender) { 24 if (window.eventSender) {
25 testRunner.waitUntilDone(); 25 testRunner.waitUntilDone();
26 eventSender.mouseMoveTo(50, 50); 26 eventSender.mouseMoveTo(50, 50);
27 eventSender.mouseDown(); 27 eventSender.mouseDown();
28 eventSender.mouseUp(); 28 eventSender.mouseUp();
29 } 29 }
30 } 30 }
31 ]]> 31 ]]>
32 </script> 32 </script>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698