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

Unified 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: Address reviewer comments. Add PartialLayoutState and PartialLayoutDisabler Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/partial-layout-overlay-scrollbars.html
diff --git a/LayoutTests/fast/dom/partial-layout-overlay-scrollbars.html b/LayoutTests/fast/dom/partial-layout-overlay-scrollbars.html
new file mode 100644
index 0000000000000000000000000000000000000000..e744b0e2c35057bf2f537d8bbd3a0a7d5d93ea11
--- /dev/null
+++ b/LayoutTests/fast/dom/partial-layout-overlay-scrollbars.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<html>
+<script src="../js/resources/js-test-pre.js"></script>
+<head>
+<style>
+* {
+ margin: 0;
+ padding: 0;
+}
+
+#makespace {
+ height: 5000px;
+}
+</style>
+<script>
+ description('Test that partial layout works with overlay scrollbars.');
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ if (window.internals)
+ window.internals.setUsesOverlayScrollbars(true);
+
+ function checkSize() {
+ var measure = document.getElementById('measure');
+ var measureWidth = measure.offsetWidth; // Partial layout occurs here!
+ shouldBe(measureWidth, "document.body.offsetWidth");
+ shouldBe(measureWidth, "window.innerWidth");
+ finishJSTest();
+ }
+</script>
+</head>
+<body onload="checkSize()">
+<div id="makespace"></div>
+<div id="measure"></div>
+<script src="../js/resources/js-test-post.js"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698