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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/repaint/modify-transferred-listitem-different-attr.html

Issue 1994373002: Convert some repaint tests into ref tests (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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 @font-face { 3 @font-face {
4 font-family: 'myahem'; 4 font-family: 'myahem';
5 src: url(../../resources/Ahem.ttf); 5 src: url(../../resources/Ahem.ttf);
6 } 6 }
7 text { 7 text {
8 font-family: 'myahem'; 8 font-family: 'myahem';
9 } 9 }
10 </style> 10 </style>
11 <svg width="100" height="100"> 11 <svg width="100" height="100">
12 <text id="ref" x="15 65" y="10 20" fill="red">A B C</text> 12 <text id="ref" x="15 65" y="10 20" fill="red">A B C</text>
13 <text id="target" x="15" y="10 20" fill="green">A B C</text> 13 <text id="target" x="15" y="10 20" fill="green">A B C</text>
14 <text id="source" x="50" y="50 60" fill="blue">X Y Z</text> 14 <text id="source" x="50" y="50 60" fill="blue">X Y Z</text>
15 </svg> 15 </svg>
16 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 16 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
17 <script> 17 <script>
18 testIsAsync = true; 18 testIsAsync = true;
19 window.onload = runRepaintTest; 19 window.onload = runRepaintAndPixelTest;
20 20
21 function repaintTest() { 21 function repaintTest() {
22 var moved = document.querySelector('#source').y.baseVal.removeItem(1); 22 var moved = document.querySelector('#source').y.baseVal.removeItem(1);
23 document.querySelector('#target').x.baseVal.appendItem(moved); 23 document.querySelector('#target').x.baseVal.appendItem(moved);
24 24
25 requestAnimationFrame(function() { 25 requestAnimationFrame(function() {
26 moved.value = 65; 26 moved.value = 65;
27 if (window.testRunner) 27 if (window.testRunner)
28 finishRepaintTest(); 28 finishRepaintTest();
29 }); 29 });
30 } 30 }
31 </script> 31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698