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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/invisible-objects.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/invisible-objects.html -->
1 <html> 2 <html>
2 <head> 3 <head>
3 <script src="resources/text-based-repaint.js"></script> 4 <script src="resources/paint-invalidation-test.js"></script>
4 <script> 5 <script>
5 function repaintTest() 6 window.expectedPaintInvalidationObjects = [
7 "InlineTextBox ''",
8 "RootInlineBox",
9 "LayoutText #text",
10 "InlineTextBox 'is invisible'",
11 ];
12 function paintInvalidationTest()
6 { 13 {
7 document.getElementById("block").style.height = "100px"; 14 document.getElementById("block").style.height = "100px";
8 document.getElementById("inline").innerText = "is invisible"; 15 document.getElementById("inline").innerText = "is invisible";
9 } 16 }
10 </script> 17 </script>
11 </head> 18 </head>
12 <body onload="runRepaintTest()"> 19 <body onload="runPaintInvalidationTest()">
13 <div style="visibility: hidden; position: relative;"> 20 <div style="visibility: hidden; position: relative;">
14 <span id="inline">Invisible text</span> 21 <span id="inline">Invisible text</span>
15 </div> 22 </div>
16 <div style="visibility: hidden; position: relative;"> 23 <div style="visibility: hidden; position: relative;">
17 <div id="block" style="height: 50px;"></div> 24 <div id="block" style="height: 50px;"></div>
18 </div> 25 </div>
19 </body> 26 </body>
20 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698