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

Unified Diff: LayoutTests/compositing/overflow/ignore-main-thread-scroll-reasons-when-main-frame-not-scrollable.html

Issue 103583007: Ensure that if FrameView::isScrollable() is false, the assoc WebLayer is, too. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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/compositing/overflow/ignore-main-thread-scroll-reasons-when-main-frame-not-scrollable.html
diff --git a/LayoutTests/compositing/overflow/ignore-main-thread-scroll-reasons-when-main-frame-not-scrollable.html b/LayoutTests/compositing/overflow/ignore-main-thread-scroll-reasons-when-main-frame-not-scrollable.html
index 8e85e587cbc31ad5d0625c9cd141d59695eb44aa..478570cbb2519279c7a5e78ef509468b5d3b392c 100644
--- a/LayoutTests/compositing/overflow/ignore-main-thread-scroll-reasons-when-main-frame-not-scrollable.html
+++ b/LayoutTests/compositing/overflow/ignore-main-thread-scroll-reasons-when-main-frame-not-scrollable.html
@@ -77,10 +77,7 @@ function shouldIgnore() {
}
}
-function shouldNotIgnore() {
- document.body.style.height = "3000px";
- document.body.offsetTop;
-
+function checkThatWeHaveNotIgnored() {
if (window.internals) {
var reasons = internals.mainThreadScrollingReasons(document);
if (reasons === '')
@@ -95,6 +92,18 @@ function shouldNotIgnore() {
}
}
+function shouldNotIgnore() {
+ document.body.style.height = "3000px";
+ document.body.offsetTop;
+
+ checkThatWeHaveNotIgnored();
+
+ document.body.style.overflow = "hidden";
+ document.body.offsetTop;
+
+ checkThatWeHaveNotIgnored();
+}
+
function runTests() {
shouldIgnore();
shouldNotIgnore();

Powered by Google App Engine
This is Rietveld 408576698