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

Unified Diff: cc/trees/property_tree_unittest.cc

Issue 1886973005: cc: Clear the |layer_id_to_scroll_offset_map_| during ScrollTree deserialization . (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add back previous test expectation. Created 4 years, 8 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 | « cc/trees/property_tree.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree_unittest.cc
diff --git a/cc/trees/property_tree_unittest.cc b/cc/trees/property_tree_unittest.cc
index 6cc1cf148e613f144911c76c60b9a76fee930ae0..33bb1f7b801b4dc3622f136a3037ee413a2b3f38 100644
--- a/cc/trees/property_tree_unittest.cc
+++ b/cc/trees/property_tree_unittest.cc
@@ -281,6 +281,17 @@ TEST(PropertyTreeSerializationTest, ScrollTreeSerialization) {
result.FromProtobuf(proto);
EXPECT_EQ(original, result);
+
+ original.clear();
+ original.set_currently_scrolling_node(0);
+ original.SetScrollOffset(2, gfx::ScrollOffset(1, 2));
+
+ proto::PropertyTree proto2;
+ original.ToProtobuf(&proto2);
+ result = ScrollTree();
+ result.FromProtobuf(proto2);
+
+ EXPECT_EQ(original, result);
}
TEST(PropertyTreeSerializationTest, PropertyTrees) {
« no previous file with comments | « cc/trees/property_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698