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

Side by Side Diff: LayoutTests/svg/custom/resource-client-removal.svg

Issue 316193003: Fix some async repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline more tests Created 6 years, 6 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 width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink=" http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()"> 1 <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink=" http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> 2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
3 <script> 3 <script>
4 <![CDATA[ 4 <![CDATA[
5 window.testIsAsync = true;
5 function repaintTest() { 6 function repaintTest() {
6 container = document.getElementById("inneruse"); 7 container = document.getElementById("inneruse");
7 stop = document.getElementById("offset"); 8 stop = document.getElementById("offset");
8 if (window.testRunner)
9 testRunner.waitUntilDone();
10 setTimeout(offset, 0); 9 setTimeout(offset, 0);
11 } 10 }
12 var turns = 5; 11 var turns = 5;
13 function offset(){ 12 function offset(){
14 container.setAttribute ("transform", ""); 13 container.setAttribute ("transform", "");
15 stop.setAttribute ("offset", "1.0"); 14 stop.setAttribute ("offset", "1.0");
16 turns--; 15 turns--;
17 if (turns > 0) 16 if (turns > 0)
18 window.setTimeout("offset()", 0) 17 window.setTimeout("offset()", 0)
19 else if (window.testRunner) 18 else
20 testRunner.notifyDone(); 19 finishRepaintTest();
21 } 20 }
22 ]]> 21 ]]>
23 </script> 22 </script>
24 <defs> 23 <defs>
25 <linearGradient id="grad"> 24 <linearGradient id="grad">
26 <stop offset="0" style="stop-color: green"/> 25 <stop offset="0" style="stop-color: green"/>
27 <stop id="offset" offset="1" style="stop-color: green"/> 26 <stop id="offset" offset="1" style="stop-color: green"/>
28 </linearGradient> 27 </linearGradient>
29 <path id="hp" d="M 0 0 L 100 0 L 100 100 L 0 100" /> 28 <path id="hp" d="M 0 0 L 100 0 L 100 100 L 0 100" />
30 </defs> 29 </defs>
31 <g id="inneruse"> 30 <g id="inneruse">
32 <use xlink:href="#hp" style="fill:url(#grad)"/> 31 <use xlink:href="#hp" style="fill:url(#grad)"/>
33 </g> 32 </g>
34 <use xlink:href="#inneruse" style="fill:url(#grad)"/> 33 <use xlink:href="#inneruse" style="fill:url(#grad)"/>
35 </svg> 34 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/mask-invalidation.svg ('k') | LayoutTests/svg/custom/resource-client-removal-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698