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

Side by Side Diff: LayoutTests/fast/dom/partial-layout-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 * {
9 margin: 0;
10 padding: 0;
11 }
12
13 #makespace {
14 height: 5000px;
15 }
16 </style>
17 </head>
18 <body>
19 <div id="makespace"></div>
20 <div id="measure"></div>
21 <script>
22 if (window.testRunner)
23 testRunner.dumpAsText();
24
25 if (window.internals)
26 window.internals.setUsesOverlayScrollbars(true);
27
28 var test = async_test("Test that partial layout works with overlay scrollbar s.");
29 setTimeout(function() {
30 test.step(function() {
31 var measure = document.getElementById('measure');
32 var measureWidth = measure.offsetWidth; // Partial layout occurs her e!
33
34 assert_equals(measureWidth, document.body.offsetWidth);
35 assert_equals(measureWidth, window.innerWidth);
36 });
37
38 test.done();
39 }, 0);
40 </script>
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698