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) { |