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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/invalidation-with-zero-size-object.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 <!-- Based on fast/repaint/invalidation-with-zero-size-object.html -->
1 <!doctype html> 2 <!doctype html>
2 <script src="resources/text-based-repaint.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
3 <script> 4 <script>
4 function repaintTest() 5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow DIV id='element'",
7 ];
8 function paintInvalidationTest()
5 { 9 {
6 document.getElementById('element').style.width = '0'; 10 document.getElementById('element').style.width = '0';
7 document.getElementById('element').style.height = '0'; 11 document.getElementById('element').style.height = '0';
8 } 12 }
9 13
10 onload = runRepaintTest; 14 onload = runPaintInvalidationTest;
11 </script> 15 </script>
12 <style> 16 <style>
13 #element { 17 #element {
14 width: 200px; 18 width: 200px;
15 height: 200px; 19 height: 200px;
16 background-color: red; 20 background-color: red;
17 } 21 }
18 #inner { 22 #inner {
19 width: 100%; 23 width: 100%;
20 height: 100%; 24 height: 100%;
21 } 25 }
22 </style> 26 </style>
23 <div id='element'> 27 <div id='element'>
24 <div id='inner'></div> 28 <div id='inner'></div>
25 </div> 29 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698