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

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 6 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/compositing/overflow/ignore-main-thread-scroll-reasons-when-main-frame-not-scrollable-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..334f2108ca4221ed4a242d2906af5feb82c7efad 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
@@ -61,7 +61,7 @@ if (window.internals) {
window.jsTestIsAsync = true;
-function shouldIgnore() {
+function checkThatWeHaveIgnored() {
if (window.internals) {
var reasons = internals.mainThreadScrollingReasons(document);
if (reasons === '')
@@ -77,10 +77,16 @@ function shouldIgnore() {
}
}
-function shouldNotIgnore() {
- document.body.style.height = "3000px";
+function shouldIgnore() {
+ checkThatWeHaveIgnored();
+
+ document.body.style.overflow = "hidden";
document.body.offsetTop;
-
+
+ checkThatWeHaveIgnored();
+}
+
+function checkThatWeHaveNotIgnored() {
if (window.internals) {
var reasons = internals.mainThreadScrollingReasons(document);
if (reasons === '')
@@ -95,6 +101,14 @@ function shouldNotIgnore() {
}
}
+function shouldNotIgnore() {
+ document.body.style.overflow = "";
+ document.body.style.height = "3000px";
+ document.body.offsetTop;
+
+ checkThatWeHaveNotIgnored();
+}
+
function runTests() {
shouldIgnore();
shouldNotIgnore();
« no previous file with comments | « no previous file | LayoutTests/compositing/overflow/ignore-main-thread-scroll-reasons-when-main-frame-not-scrollable-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698