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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/repaint/shape-transform-change.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 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <script src="../../resources/run-after-layout-and-paint.js"></script> 3 <script src="../../resources/run-after-layout-and-paint.js"></script>
4 <script> 4 <script>
5 window.testIsAsync = true; 5 window.testIsAsync = true;
6 window.onload = runRepaintTest; 6 window.onload = runRepaintAndPixelTest;
7 7
8 function repaintTest() { 8 function repaintTest() {
9 runAfterLayoutAndPaint(function() { 9 runAfterLayoutAndPaint(function() {
10 document.getElementsByTagName('rect')[1].setAttribute('transform', 'scale(2) '); 10 document.getElementsByTagName('rect')[1].setAttribute('transform', 'scale(2) ');
11 if (window.testRunner) 11 if (window.testRunner)
12 finishRepaintTest(); 12 finishRepaintTest();
13 }); 13 });
14 }; 14 };
15 </script> 15 </script>
16 <svg width="200" height="200"> 16 <svg width="200" height="200">
17 <rect width="200" height="200" fill="red"/> 17 <rect width="200" height="200" fill="red"/>
18 <rect width="100" height="100" fill="green"/> 18 <rect width="100" height="100" fill="green"/>
19 </svg> 19 </svg>
20 <p>Test if applying a transform to a &lt;rect> properly repaints the &lt;rect>.< /p> 20 <p>Test if applying a transform to a &lt;rect> properly repaints the &lt;rect>.< /p>
21 <p>Pass if there's a green 200x200 (px) rectangle below, and no red visible.</p> 21 <p>Pass if there's a green 200x200 (px) rectangle below, and no red visible.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698