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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 2144303002: Made layout viewport scroll updates from compositor work like ordinary layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rootScrollerOnCompositor
Patch Set: Created 4 years, 5 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: cc/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index b3807cf855a208316208b30489ff4317eaccab52..1c6734a7bdd1f95e0452326d4ee9a4e580d1327b 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -262,6 +262,15 @@ class LayerTreeHostImplTest : public testing::Test,
times_encountered++;
}
+ if (id == scroll_info.inner_viewport_scroll.layer_id) {
+ if (scroll_delta != scroll_info.inner_viewport_scroll.scroll_delta) {
+ return ::testing::AssertionFailure()
+ << "Expected " << scroll_delta.ToString() << ", not "
+ << scroll_info.inner_viewport_scroll.scroll_delta.ToString();
+ }
+ times_encountered++;
+ }
+
if (times_encountered != 1)
return ::testing::AssertionFailure() << "No layer found with id " << id;
return ::testing::AssertionSuccess();

Powered by Google App Engine
This is Rietveld 408576698