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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/repaint/remove-border-property-on-root.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> 3 <script>
4 window.testIsAsync = true; 4 window.testIsAsync = true;
5 window.onload = runRepaintTest; 5 window.onload = runRepaintAndPixelTest;
6 6
7 function repaintTest() { 7 function repaintTest() {
8 setTimeout(function() { 8 setTimeout(function() {
9 requestAnimationFrame(function() { 9 requestAnimationFrame(function() {
10 document.querySelector('svg').style.removeProperty('border'); 10 document.querySelector('svg').style.removeProperty('border');
11 if (window.testRunner) 11 if (window.testRunner)
12 finishRepaintTest(); 12 finishRepaintTest();
13 }); 13 });
14 }, 0); 14 }, 0);
15 }; 15 };
16 </script> 16 </script>
17 <svg style="border: 10px solid red; position: absolute" width="100" height="100" > 17 <svg style="border: 10px solid red; position: absolute" width="100" height="100" >
18 </svg> 18 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698