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

Side by Side Diff: LayoutTests/fast/dom/partial-layout-non-overlay-scrollbars.html

Issue 23819053: Rename usesOverlayScrollbars of settings to mockScrollbarsUseOverlay (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: mockScrollbarsUses... -> mockScrollbarsUse... Created 7 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 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <script src="../../resources/testharness.js"></script> 3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script> 4 <script src="../../resources/testharnessreport.js"></script>
5 <link rel="stylesheet" href="../../resources/testharness.css"> 5 <link rel="stylesheet" href="../../resources/testharness.css">
6 <head> 6 <head>
7 <style> 7 <style>
8 ::-webkit-scrollbar { 8 ::-webkit-scrollbar {
9 -webkit-appearance: none; 9 -webkit-appearance: none;
10 width: 8px; 10 width: 8px;
11 } 11 }
12 12
13 * { 13 * {
14 margin: 0; 14 margin: 0;
15 padding: 0; 15 padding: 0;
16 } 16 }
17 17
18 #makespace { 18 #makespace {
19 height: 5000px; 19 height: 5000px;
20 } 20 }
21 </style> 21 </style>
22 </head> 22 </head>
23 <body> 23 <body>
24 <div id="makespace"></div> 24 <div id="makespace"></div>
25 <div id="measure"></div> 25 <div id="measure"></div>
26 <script> 26 <script>
27 if (window.testRunner) 27 if (window.testRunner)
28 testRunner.dumpAsText(); 28 testRunner.dumpAsText();
29 29
30 if (window.internals) 30 if (window.internals) {
31 window.internals.setUsesOverlayScrollbars(true); // Note: We force non-o verlay scrollbars with CSS. 31 // Note: We force non-overlay scrollbars with CSS.
32 internals.settings.setMockScrollbarsEnabled(true);
33 internals.settings.setMockScrollbarsUseOverlay(true);
34 }
32 35
33 var test = async_test("Test that partial layout works with non-overlay scrol lbars."); 36 var test = async_test("Test that partial layout works with non-overlay scrol lbars.");
34 setTimeout(function() { 37 setTimeout(function() {
35 test.step(function() { 38 test.step(function() {
36 var measure = document.getElementById('measure'); 39 var measure = document.getElementById('measure');
37 var measureWidth = measure.offsetWidth; // Partial layout occurs her e! 40 var measureWidth = measure.offsetWidth; // Partial layout occurs her e!
38 41
39 assert_equals(measureWidth, document.body.offsetWidth); 42 assert_equals(measureWidth, document.body.offsetWidth);
40 assert_equals(measureWidth, window.innerWidth - 8); 43 assert_equals(measureWidth, window.innerWidth - 8);
41 }); 44 });
42 45
43 test.done(); 46 test.done();
44 }, 0); 47 }, 0);
45 </script> 48 </script>
46 </body> 49 </body>
47 </html> 50 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/partial-layout-block.html ('k') | LayoutTests/fast/dom/partial-layout-overlay-scrollbars.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698