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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/layer-visibility.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/layer-visibility.html --> 1 <!-- Based on fast/repaint/layer-visibility.html -->
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/paint-invalidation-test.js"></script> 4 <script src="resources/paint-invalidation-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 document.body.offsetTop; 8 document.body.offsetTop;
9 var target = document.getElementById("target"); 9 var target = document.getElementById("target");
10 target.style.visibility = "visible"; 10 target.style.visibility = "visible";
11 document.body.offsetTop; 11 document.body.offsetTop;
12 12
13 runPaintInvalidationTest(); 13 runPaintInvalidationTest();
14 } 14 }
15 15
16 window.expectedPaintInvalidationObjects = [
17 "LayoutBlockFlow (positioned) DIV id='target'",
18 ];
19 function paintInvalidationTest() 16 function paintInvalidationTest()
20 { 17 {
21 var target = document.getElementById("target"); 18 var target = document.getElementById("target");
22 target.style.left = "0"; 19 target.style.left = "0";
23 target.style.backgroundColor = "green"; 20 target.style.backgroundColor = "green";
24 } 21 }
25 </script> 22 </script>
26 </head> 23 </head>
27 <body onload="test()"> 24 <body onload="test()">
28 <div id="target" style="position: absolute; top: 0; left: 100px; width: 100p x; height: 100px; background-color: red; visibility: hidden;"></div> 25 <div id="target" style="position: absolute; top: 0; left: 100px; width: 100p x; height: 100px; background-color: red; visibility: hidden;"></div>
29 </body> 26 </body>
30 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698