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

Side by Side Diff: LayoutTests/compositing/overflow/dynamic-composited-scrolling-status.html

Issue 14858004: Clean up the way layout tests force elements to opt in/out of composited scrolling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 7 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 #container { 5 #container {
6 width: 200px; 6 width: 200px;
7 height: 200px; 7 height: 200px;
8 overflow: auto; 8 overflow: auto;
9 } 9 }
10 10
11 #content { 11 #content {
12 width: 100px; 12 width: 100px;
13 height: 100px; 13 height: 100px;
14 background-color: yellow; 14 background-color: yellow;
15 } 15 }
16 </style> 16 </style>
17 17
18 <script type="text/javascript" charset="utf-8"> 18 <script type="text/javascript" charset="utf-8">
19 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.dumpAsText(); 20 testRunner.dumpAsText();
21 21
22 if (window.internals) 22 if (window.internals)
23 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable d(true); 23 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable dMode(window.internals.settings.AcceleratedCompositingForOverflowScrollEnabled);
24 24
25 function doTest() 25 function doTest()
26 { 26 {
27 document.getElementById('content').style.height = '1000px'; 27 document.getElementById('content').style.height = '1000px';
28 document.body.offsetHeight; 28 document.body.offsetHeight;
29 29
30 if (window.internals) 30 if (window.internals)
31 document.getElementById('result').innerText = window.internals.nonFastSc rollableRects(document).length ? "FAIL" : "PASS"; 31 document.getElementById('result').innerText = window.internals.nonFastSc rollableRects(document).length ? "FAIL" : "PASS";
32 } 32 }
33 33
34 window.addEventListener('load', doTest, false); 34 window.addEventListener('load', doTest, false);
35 </script> 35 </script>
36 </head> 36 </head>
37 37
38 <body> 38 <body>
39 <div id="container"> 39 <div id="container">
40 <div id="content"></div> 40 <div id="content"></div>
41 </div> 41 </div>
42 <pre id="result"></pre> 42 <pre id="result"></pre>
43 </body> 43 </body>
44 </html> 44 </html>
45 45
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698