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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/resize-with-border.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on fast/repaint/resize-with-border.html --> 1 <!-- Based on fast/repaint/resize-with-border.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
4 <script> 4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow (positioned) DIV id='div'",
7 ];
8 function paintInvalidationTest() 5 function paintInvalidationTest()
9 { 6 {
10 document.getElementById('div').style.width = '400px'; 7 document.getElementById('div').style.width = '400px';
11 } 8 }
12 window.onload = runPaintInvalidationTest; 9 window.onload = runPaintInvalidationTest;
13 </script> 10 </script>
14 <style> 11 <style>
15 body { 12 body {
16 margin: 0; 13 margin: 0;
17 } 14 }
18 #div { 15 #div {
19 position: absolute; 16 position: absolute;
20 top: 100px; 17 top: 100px;
21 left: 100px; 18 left: 100px;
22 width: 200px; 19 width: 200px;
23 height: 200px; 20 height: 200px;
24 border: green 10px solid; 21 border: green 10px solid;
25 } 22 }
26 </style> 23 </style>
27 <div> 24 <div>
28 Tests repaint when a box with border is resized. 25 Tests repaint when a box with border is resized.
29 Passes if the result paint rects cover all changed part, 26 Passes if the result paint rects cover all changed part,
30 the new border is correctly drawn and there is no residue of the old border. 27 the new border is correctly drawn and there is no residue of the old border.
31 </div> 28 </div>
32 <div id="div"></div> 29 <div id="div"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698