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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/outline-shrinking.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 PUBLIC "-//W3C//DTD HTML 4.01//EN" 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd"> 2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html lang="en"> 3 <html lang="en">
4 <head> 4 <head>
5 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 5 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 function repaintTest() 7 function repaintTest()
8 { 8 {
9 var target = document.getElementById('t'); 9 var target = document.getElementById('t');
10 target.style.outline = 'none'; 10 target.style.outline = 'none';
11 target.style.fontSize = '20px'; // make it a layout change rather th an a repaint 11 target.style.fontSize = '20px'; // make it a layout change rather th an a repaint
12 } 12 }
13 </script> 13 </script>
14 </head> 14 </head>
15 <body onload="runRepaintTest();"> 15 <body onload="runRepaintAndPixelTest();">
16 <p> 16 <p>
17 This is a test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=9 388">http://bugzilla.opendarwin.org/show_bug.cgi?id=9388</a> 17 This is a test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=9 388">http://bugzilla.opendarwin.org/show_bug.cgi?id=9388</a>
18 REGRESSION: outlines don't get erased when removed in some cases</i>. 18 REGRESSION: outlines don't get erased when removed in some cases</i>.
19 </p> 19 </p>
20 <p> 20 <p>
21 There should be a green square and no trace of red. 21 There should be a green square and no trace of red.
22 </p> 22 </p>
23 <hr> 23 <hr>
24 <div id="t" style="background: green; font-size: 10px; outline: red dashed 4 px; width: 100px; height: 100px;"></div> 24 <div id="t" style="background: green; font-size: 10px; outline: red dashed 4 px; width: 100px; height: 100px;"></div>
25 </body> 25 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698