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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/repaint/foreign-object-repaint.svg

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <?xml version="1.0" standalone="no"?> 1 <?xml version="1.0" standalone="no"?>
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintAndPixelTest()"> 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintTest()">
3 <!-- Test for http://crbug.com/329835 --> 3 <!-- Test for http://crbug.com/329835 -->
4 <g x="10" y="10" transform="translate(50 50)"> 4 <g x="10" y="10" transform="translate(50 50)">
5 <foreignObject width="100" height="100"> 5 <foreignObject width="100" height="100">
6 <div id="div1" xmlns="http://www.w3.org/1999/xhtml" style="width: 100px; h eight: 100px; background-color: red;"></div> 6 <div id="div1" xmlns="http://www.w3.org/1999/xhtml" style="width: 100px; h eight: 100px; background-color: red;"></div>
7 </foreignObject> 7 </foreignObject>
8 </g> 8 </g>
9 9
10 <g x="10" y="10" transform="translate(200 200) rotate(45)"> 10 <g x="10" y="10" transform="translate(200 200) rotate(45)">
11 <foreignObject width="100" height="100"> 11 <foreignObject width="100" height="100">
12 <div id="div2" xmlns="http://www.w3.org/1999/xhtml" style="width: 100px; h eight: 100px; background-color: red;"></div> 12 <div id="div2" xmlns="http://www.w3.org/1999/xhtml" style="width: 100px; h eight: 100px; background-color: red;"></div>
13 </foreignObject> 13 </foreignObject>
14 </g> 14 </g>
15 15
16 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js" type=" text/javascript"></script> 16 <script xlink:href="../../fast/repaint/resources/repaint.js" type="text/javasc ript"></script>
17 <script> 17 <script>
18 function repaintTest() { 18 function repaintTest() {
19 document.getElementById('div1').style.background = 'green'; 19 document.getElementById('div1').style.background = 'green';
20 document.getElementById('div2').style.background = 'green'; 20 document.getElementById('div2').style.background = 'green';
21 } 21 }
22 </script> 22 </script>
23 </svg> 23 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698