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

Unified Diff: ui/gfx/geometry/r_tree_unittest.cc

Issue 278403004: fix incorrect bounds on remove child from root (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: found probably unrelated bug Created 6 years, 7 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 | « ui/gfx/geometry/r_tree.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/r_tree_unittest.cc
diff --git a/ui/gfx/geometry/r_tree_unittest.cc b/ui/gfx/geometry/r_tree_unittest.cc
index 3ac1ee851124a774614ba9a539e637f2508b74f9..a98c57efade82183e197b67213a40bff57989010 100644
--- a/ui/gfx/geometry/r_tree_unittest.cc
+++ b/ui/gfx/geometry/r_tree_unittest.cc
@@ -251,6 +251,14 @@ TEST_F(RTreeTest, RemoveHalfStackedRects) {
VerifyAllKeys(results);
}
+TEST_F(RTreeTest, InsertDupToRoot) {
+ RTree rt(2, 5);
+ rt.Insert(Rect(0, 0, 1, 2), 1);
+ ValidateRTree(&rt);
+ rt.Insert(Rect(0, 0, 2, 1), 1);
+ ValidateRTree(&rt);
+}
+
TEST_F(RTreeTest, InsertNegativeCoordsRect) {
RTree rt(5, 11);
for (int i = 1; i <= 100; ++i) {
« no previous file with comments | « ui/gfx/geometry/r_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698