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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/css/cursor-replace.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 version="1.1" xmlns="http://www.w3.org/2000/svg"> 1 <svg version="1.1" xmlns="http://www.w3.org/2000/svg">
2 <script> 2 <script>
3 function runTest() { 3 function runTest() {
4 g.offsetTop; 4 g.clientTop;
5 g.removeChild(g.firstChild); 5 g.removeChild(g.firstChild);
6 if (g.firstChild) 6 if (g.firstChild)
7 setTimeout(runTest(),0); 7 setTimeout(runTest(),0);
8 else 8 else
9 location.reload(); 9 location.reload();
10 } 10 }
11 11
12 window.onload = function() { 12 window.onload = function() {
13 if (window.testRunner) { 13 if (window.testRunner) {
14 testRunner.dumpAsText(); 14 testRunner.dumpAsText();
15 testRunner.waitUntilDone(); 15 testRunner.waitUntilDone();
16 } 16 }
17 17
18 g = document.getElementById("g1"); 18 g = document.getElementById("g1");
19 if (location.hash != "#2") { 19 if (location.hash != "#2") {
20 if (location.hash) 20 if (location.hash)
21 location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toStrin g(); 21 location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toStrin g();
22 else 22 else
23 location.hash = "#1"; 23 location.hash = "#1";
24 document.getElementById("g2").style.setProperty('cursor', 'url(#c2)'); 24 document.getElementById("g2").style.setProperty('cursor', 'url(#c2)');
25 setTimeout(runTest(),0); 25 setTimeout(runTest(),0);
26 } else { 26 } else {
27 document.getElementById("t1").appendChild(document.createTextNode("PASS: Successfully changed cursors.")); 27 document.getElementById("t1").appendChild(document.createTextNode("PASS: Successfully changed cursors."));
28 if (window.testRunner) 28 if (window.testRunner)
29 testRunner.notifyDone(); 29 testRunner.notifyDone();
30 } 30 }
31 } 31 }
32 </script> 32 </script>
33 <g id="g1"> 33 <g id="g1">
34 <cursor id="c1"></cursor> 34 <cursor id="c1"></cursor>
35 <g cursor="url(#c1)" id="g2"></g> 35 <g cursor="url(#c1)" id="g2"></g>
36 <cursor id="c2"></cursor> 36 <cursor id="c2"></cursor>
37 <text id="t1" x="20" y="20"></text> 37 <text id="t1" x="20" y="20"></text>
38 </g> 38 </g>
39 </svg> 39 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698