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

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

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 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 | Annotate | Revision Log
OLDNEW
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="startTest()" width="1000" height="600"> 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="startTest()" width="1000" height="600">
2 <script xlink:href="../../fast/repaint/resources/repaint.js" type="text/java script"></script> 2 <script xlink:href="../../fast/repaint/resources/repaint.js" type="text/java script"></script>
3 <text y="-10">Bug 76559: All red should disappear</text> 3 <text y="-10">Bug 76559: All red should disappear</text>
4 <g id="g" transform="translate(0, 0)"> 4 <g id="g" transform="translate(0, 0)">
5 <defs> 5 <defs>
6 <clipPath id="p"> 6 <clipPath id="p">
7 <rect id="r" x="-10" y="-10" width="20" height="20" /> 7 <rect id="r" x="-10" y="-10" width="20" height="20" />
8 </clipPath> 8 </clipPath>
9 </defs> 9 </defs>
10 <image x="-30" y="-30" width="60" height="60" clip-path="url(#p)" xlink: href=""/> 10 <image x="-30" y="-30" width="60" height="60" clip-path="url(#p)" xlink: href=""/>
(...skipping 16 matching lines...) Expand all
27 r.setAttribute('x', -size / 2); 27 r.setAttribute('x', -size / 2);
28 r.setAttribute('y', -size / 2); 28 r.setAttribute('y', -size / 2);
29 r.setAttribute('width', size); 29 r.setAttribute('width', size);
30 r.setAttribute('height', size); 30 r.setAttribute('height', size);
31 g.setAttribute("transform","translate(" + offset + ",50)"); 31 g.setAttribute("transform","translate(" + offset + ",50)");
32 i.setAttribute("externalResourcesRequired", "true"); 32 i.setAttribute("externalResourcesRequired", "true");
33 i.setAttributeNS('http://www.w3.org/1999/xlink', 'href', img); 33 i.setAttributeNS('http://www.w3.org/1999/xlink', 'href', img);
34 }; 34 };
35 35
36 if (window.testRunner) { 36 if (window.testRunner) {
37 testRunner.dumpAsText(true); 37 testRunner.dumpAsTextWithPixelResults();
38 testRunner.waitUntilDone(); 38 testRunner.waitUntilDone();
39 } 39 }
40 40
41 function finishTest() { 41 function finishTest() {
42 if (window.testRunner) 42 if (window.testRunner)
43 testRunner.notifyDone(); 43 testRunner.notifyDone();
44 } 44 }
45 45
46 function nextStep() { 46 function nextStep() {
47 i.onload = function() { setTimeout(finishTest, 0); }; 47 i.onload = function() { setTimeout(finishTest, 0); };
48 update(200, 50, green); 48 update(200, 50, green);
49 } 49 }
50 50
51 function repaintTest() { 51 function repaintTest() {
52 i.onload = function() { setTimeout(nextStep, 0); }; 52 i.onload = function() { setTimeout(nextStep, 0); };
53 update(50, 100, red); 53 update(50, 100, red);
54 } 54 }
55 </script> 55 </script>
56 </svg> 56 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/repaint/image-href-change.svg ('k') | LayoutTests/svg/text/text-layout-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698