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

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

Issue 18601002: Add infrastructure for partial layouts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: define RenderObject::frameView in the header 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
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <link rel="stylesheet" href="../../resources/testharness.css">
6 <head>
7 <style>
8 ::-webkit-scrollbar {
9 -webkit-appearance: none;
10 width: 8px;
11 }
12
13 * {
14 margin: 0;
15 padding: 0;
16 }
17
18 #makespace {
19 height: 5000px;
20 }
21 </style>
22 </head>
23 <body>
24 <div id="makespace"></div>
25 <div id="measure"></div>
26 <script>
27 if (window.testRunner)
28 testRunner.dumpAsText();
29
30 if (window.internals)
31 window.internals.setUsesOverlayScrollbars(true); // Note: We force non-o verlay scrollbars with CSS.
32
33 var test = async_test("Test that partial layout works with non-overlay scrol lbars.");
34 setTimeout(function() {
35 test.step(function() {
36 var measure = document.getElementById('measure');
37 var measureWidth = measure.offsetWidth; // Partial layout occurs her e!
38
39 assert_equals(measureWidth, document.body.offsetWidth);
40 assert_equals(measureWidth, window.innerWidth - 8);
41 });
42
43 test.done();
44 }, 0);
45 </script>
46 </body>
47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698