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

Side by Side Diff: LayoutTests/svg/repaint/image-with-clip-path.svg

Issue 615033002: Refactor of various layout tests to use RAF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix use-detatch.svg Created 6 years, 2 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="runRepaintAndPixelTest()">
2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js" type ="text/javascript"></script> 2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js" type ="text/javascript"></script>
3 <script xlink:href="../../resources/run-after-display.js"></script>
3 <text y="-10">Bug 76559: All red should disappear</text> 4 <text y="-10">Bug 76559: All red should disappear</text>
4 <g id="g" transform="translate(0, 0)"> 5 <g id="g" transform="translate(0, 0)">
5 <defs> 6 <defs>
6 <clipPath id="p"> 7 <clipPath id="p">
7 <rect id="r" x="-10" y="-10" width="20" height="20" /> 8 <rect id="r" x="-10" y="-10" width="20" height="20" />
8 </clipPath> 9 </clipPath>
9 </defs> 10 </defs>
10 <image x="-30" y="-30" width="60" height="60" clip-path="url(#p)" xlink: href=""/> 11 <image x="-30" y="-30" width="60" height="60" clip-path="url(#p)" xlink: href=""/>
11 </g> 12 </g>
12 <script> 13 <script>
(...skipping 11 matching lines...) Expand all
24 r.setAttribute('height', size); 25 r.setAttribute('height', size);
25 g.setAttribute("transform","translate(" + offset + ",50)"); 26 g.setAttribute("transform","translate(" + offset + ",50)");
26 i.setAttributeNS('http://www.w3.org/1999/xlink', 'href', img); 27 i.setAttributeNS('http://www.w3.org/1999/xlink', 'href', img);
27 }; 28 };
28 29
29 function finishTest() { 30 function finishTest() {
30 finishRepaintTest(); 31 finishRepaintTest();
31 } 32 }
32 33
33 function nextStep() { 34 function nextStep() {
34 i.onload = function() { setTimeout(finishTest, 0); }; 35 i.onload = function() { requestAnimationFrame(finishTest); };
35 update(200, 50, green); 36 update(200, 50, green);
36 } 37 }
37 38
38 function repaintTest() { 39 function repaintTest() {
39 i.onload = function() { setTimeout(nextStep, 0); }; 40 i.onload = function() { runAfterDisplay(nextStep); };
40 update(50, 100, red); 41 update(50, 100, red);
41 } 42 }
42 </script> 43 </script>
43 </svg> 44 </svg>
OLDNEW
« LayoutTests/resources/js-test.js ('K') | « LayoutTests/svg/custom/use-detach.svg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698