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

Side by Side Diff: LayoutTests/svg/custom/prevent-default.svg

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 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintTest()"> 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintAndPixelTest()">
2 <script xlink:href="../../fast/repaint/resources/repaint.js"/> 2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
3 <defs> 3 <defs>
4 <script type="text/ecmascript"> 4 <script type="text/ecmascript">
5 <![CDATA[ 5 <![CDATA[
6 function changeColor(evt) { 6 function changeColor(evt) {
7 evt.target.setAttribute('fill', 'green'); 7 evt.target.setAttribute('fill', 'green');
8 evt.stopPropagation(); 8 evt.stopPropagation();
9 evt.preventDefault(); 9 evt.preventDefault();
10 if (window.testRunner) 10 if (window.testRunner)
11 testRunner.notifyDone(); 11 testRunner.notifyDone();
12 } 12 }
13 13
14 function repaintTest() { 14 function repaintTest() {
15 if (window.eventSender) { 15 if (window.eventSender) {
16 testRunner.waitUntilDone(); 16 testRunner.waitUntilDone();
17 eventSender.mouseMoveTo(50, 50); 17 eventSender.mouseMoveTo(50, 50);
18 eventSender.mouseDown(); 18 eventSender.mouseDown();
19 eventSender.mouseUp(); 19 eventSender.mouseUp();
20 } 20 }
21 } 21 }
22 ]]> 22 ]]>
23 </script> 23 </script>
24 </defs> 24 </defs>
25 <a xlink:href="javascript:void(document.getElementById('rect').style.fill='red ')"> 25 <a xlink:href="javascript:void(document.getElementById('rect').style.fill='red ')">
26 <rect id='rect' onclick="changeColor(evt)" width='100' height='100' fill='or ange' /> 26 <rect id='rect' onclick="changeColor(evt)" width='100' height='100' fill='or ange' />
27 </a> 27 </a>
28 </svg> 28 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/pending-resource-after-removal.xhtml ('k') | LayoutTests/svg/custom/relative-sized-content.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698