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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/overflow-hidden-in-overflow-hidden-scrolled.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/overflow-hidden-in-overflow-hidden-scrolled.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <html> 3 <html>
3 <head> 4 <head>
4 <link rel="stylesheet" href="resources/default.css"> 5 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css">
5 <style> 6 <style>
6 #outer { 7 #outer {
7 position: relative; 8 position: relative;
8 overflow: hidden; 9 overflow: hidden;
9 height: 200px; 10 height: 200px;
10 } 11 }
11 12
12 section { 13 section {
13 padding: 192px 0 0 0; 14 padding: 192px 0 0 0;
14 width: 200px; 15 width: 200px;
15 } 16 }
16 17
17 div { 18 div {
18 height: 190px; 19 height: 190px;
19 } 20 }
20 21
21 .innerWrapper { 22 .innerWrapper {
22 overflow: hidden; 23 overflow: hidden;
23 } 24 }
24 25
25 .red { 26 .red {
26 background-color: red; 27 background-color: red;
27 } 28 }
28 29
29 .green { 30 .green {
30 background-color: green; 31 background-color: green;
31 } 32 }
32 </style> 33 </style>
33 <script src="resources/text-based-repaint.js"></script> 34 <script src="resources/paint-invalidation-test.js"></script>
34 <script> 35 <script>
35 function repaintTest() 36 window.expectedPaintInvalidationObjects = [
37 "LayoutBlockFlow DIV class='innerWrapper'",
38 "LayoutBlockFlow DIV class='red'",
39 "LayoutBlockFlow DIV id='ucp' class='green'",
40 ];
41 function paintInvalidationTest()
36 { 42 {
37 window.location.hash = "#ucp"; 43 window.location.hash = "#ucp";
38 } 44 }
39 45
40 function runTest() 46 function runTest()
41 { 47 {
42 document.getElementById("outer").scrollTop = 1000; 48 document.getElementById("outer").scrollTop = 1000;
43 runRepaintTest(); 49 runPaintInvalidationTest();
44 } 50 }
45 </script> 51 </script>
46 </head> 52 </head>
47 <body onload="runTest()"> 53 <body onload="runTest()">
48 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element being scrolled off page using javascript. --> 54 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element being scrolled off page using javascript. -->
49 <!-- For the test to pass you should not see any RED, only green --> 55 <!-- For the test to pass you should not see any RED, only green -->
50 <div id="outer"> 56 <div id="outer">
51 <section> 57 <section>
52 <div class="innerWrapper"> 58 <div class="innerWrapper">
53 <div class="red"></div> 59 <div class="red"></div>
54 <div id="ucp" class="green"></div> 60 <div id="ucp" class="green"></div>
55 </div> 61 </div>
56 </section> 62 </section>
57 </div> 63 </div>
58 </body> 64 </body>
59 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698