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

Side by Side Diff: LayoutTests/svg/custom/use-detach.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 <?xml version="1.0" standalone="no"?> 1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/R EC-SVG-20010904/DTD/svg10.dtd"> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/R EC-SVG-20010904/DTD/svg10.dtd">
3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" viewBox="0 0 250 250" onload="runRepaintAndPixelTest()"> 3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" viewBox="0 0 250 250" onload="runRepaintAndPixelTest()">
4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> 4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
5 <script type="text/javascript"> 5 <script type="text/javascript">
6 <![CDATA[ 6 <![CDATA[
7 window.testIsAsync = true;
7 function repaintTest() { 8 function repaintTest() {
8 var elem = document.getElementById('use'); 9 var elem = document.getElementById('use');
9 elem.setAttributeNS(null,'display','inline'); 10 elem.setAttributeNS(null,'display','inline');
10
11 if (window.testRunner)
12 testRunner.waitUntilDone();
13 window.setTimeout("step2()", 0); 11 window.setTimeout("step2()", 0);
14 } 12 }
15 function step2() { 13 function step2() {
16 var elem = document.getElementById('use'); 14 var elem = document.getElementById('use');
17 elem.setAttributeNS(null,'display','none'); 15 elem.setAttributeNS(null,'display','none');
18 window.setTimeout("step3()", 0); 16 window.setTimeout("step3()", 0);
19 } 17 }
20 function step3() { 18 function step3() {
21 var elem = document.getElementById('use'); 19 var elem = document.getElementById('use');
22 elem.setAttributeNS(null,'display','inline'); 20 elem.setAttributeNS(null,'display','inline');
23 if (window.testRunner) 21 finishRepaintTest();
24 testRunner.notifyDone();
25 } 22 }
26 ]]> 23 ]]>
27 </script> 24 </script>
28 <g transform="matrix(1 0 0 1 5 5)"> 25 <g transform="matrix(1 0 0 1 5 5)">
29 <defs> 26 <defs>
30 <text id="use_text" x="50" y="31" font-size="12" text-anchor="middle">use< /text> 27 <text id="use_text" x="50" y="31" font-size="12" text-anchor="middle">use< /text>
31 <circle id="use_circle" r="5" cx="50" cy="40" fill="#ff0000"/> 28 <circle id="use_circle" r="5" cx="50" cy="40" fill="#ff0000"/>
32 29
33 </defs> 30 </defs>
34 <g id="use" stroke="#000000" fill="#000000" display="none"> 31 <g id="use" stroke="#000000" fill="#000000" display="none">
35 <use xlink:href="#use_text"/> 32 <use xlink:href="#use_text"/>
36 <use xlink:href="#use_circle"/> 33 <use xlink:href="#use_circle"/>
37 </g> 34 </g>
38 <rect x="0" y="0" width="100" height="50" opacity="0.2"/> 35 <rect x="0" y="0" width="100" height="50" opacity="0.2"/>
39 </g> 36 </g>
40 <g transform="matrix(1 0 0 1 10 70)"> 37 <g transform="matrix(1 0 0 1 10 70)">
41 <text font-family="'Courier'" font-size="12"> 38 <text font-family="'Courier'" font-size="12">
42 39
43 <tspan x="0" y="0">For this test case to be successful, the</tspan> 40 <tspan x="0" y="0">For this test case to be successful, the</tspan>
44 <tspan x="0" y="15">box above must show text and a circle. </tspan> 41 <tspan x="0" y="15">box above must show text and a circle. </tspan>
45 <tspan x="0" y="30">Bug 14927</tspan> 42 <tspan x="0" y="30">Bug 14927</tspan>
46 </text> 43 </text>
47 </g> 44 </g>
48 </svg> 45 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/resource-client-removal-expected.txt ('k') | LayoutTests/svg/repaint/image-href-change.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698