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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/pointer-events-invalid-fill.svg

Issue 1405283006: Deprecate SVGElement.offsetParent/offsetTop/offsetLeft/offsetWidth/offsetHeight (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the tests instead Created 5 years, 1 month 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 id="svg-root" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" 1 <svg id="svg-root" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"
2 xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()"> 2 xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()">
3 <!--======================================================================--> 3 <!--======================================================================-->
4 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> 4 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
5 <!--= Institute of Technology, European Research Consortium for =--> 5 <!--= Institute of Technology, European Research Consortium for =-->
6 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> 6 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
7 <!--= All Rights Reserved. =--> 7 <!--= All Rights Reserved. =-->
8 <!--= See http://www.w3.org/Consortium/Legal/. =--> 8 <!--= See http://www.w3.org/Consortium/Legal/. =-->
9 <!--======================================================================--> 9 <!--======================================================================-->
10 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" 10 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 <text id='t' x='10' y='150' font-size='13'>Move the pointing device over t he rectangle.</text> 57 <text id='t' x='10' y='150' font-size='13'>Move the pointing device over t he rectangle.</text>
58 </g> 58 </g>
59 59
60 <script> 60 <script>
61 if (window.testRunner) { 61 if (window.testRunner) {
62 testRunner.dumpAsText(); 62 testRunner.dumpAsText();
63 testRunner.waitUntilDone(); 63 testRunner.waitUntilDone();
64 } 64 }
65 function runTest() { 65 function runTest() {
66 if (window.eventSender) { 66 if (window.eventSender) {
67 document.documentElement.offsetLeft; 67 document.documentElement.clientLeft;
68 eventSender.mouseMoveTo(30, 100); 68 eventSender.mouseMoveTo(30, 100);
69 } 69 }
70 } 70 }
71 function report(pass) { 71 function report(pass) {
72 var color = pass ? 'green' : 'red'; 72 var color = pass ? 'green' : 'red';
73 document.getElementById('r1').setAttribute('fill', color); 73 document.getElementById('r1').setAttribute('fill', color);
74 document.getElementById('t').firstChild.nodeValue = pass ? "You've passe d!" : "You've failed."; 74 document.getElementById('t').firstChild.nodeValue = pass ? "You've passe d!" : "You've failed.";
75 if (window.testRunner) 75 if (window.testRunner)
76 testRunner.notifyDone(); 76 testRunner.notifyDone();
77 } 77 }
78 </script> 78 </script>
79 79
80 </g> 80 </g>
81 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> 81 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
82 <text id="revision" x="10" y="340" stroke="none" 82 <text id="revision" x="10" y="340" stroke="none"
83 fill="black">$Revision: 1.4 $</text> 83 fill="black">$Revision: 1.4 $</text>
84 </g> 84 </g>
85 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke= "#000"/> 85 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke= "#000"/>
86 <!-- comment out this watermark once the test is approved --><!-- 86 <!-- comment out this watermark once the test is approved --><!--
87 <g id="draft-watermark"> 87 <g id="draft-watermark">
88 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-w idth="1"/> 88 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-w idth="1"/>
89 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size ="20" x="240" 89 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size ="20" x="240"
90 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white" >DRAFT</text> 90 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white" >DRAFT</text>
91 </g>--> 91 </g>-->
92 </svg> 92 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698