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

Unified Diff: cc/picture_layer_tiling_unittest.cc

Issue 11946008: cc: Fix tree activation when invisible layers exist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add unit test Created 7 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 | « cc/picture_layer_tiling.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_tiling_unittest.cc
diff --git a/cc/picture_layer_tiling_unittest.cc b/cc/picture_layer_tiling_unittest.cc
index 75fbda8ac02a73bce7407ea79ff39dcc052696a8..e77b73cbf27a777f6e583ee6077b4f9f3c91574d 100644
--- a/cc/picture_layer_tiling_unittest.cc
+++ b/cc/picture_layer_tiling_unittest.cc
@@ -119,5 +119,13 @@ TEST_F(PictureLayerTilingIteratorTest, IteratorCoversLayerBoundsBothScale) {
VerifyTilesExactlyCoverRect(scale, gfx::Rect(2014, 1579, 867, 1033));
}
+TEST_F(PictureLayerTilingIteratorTest, IteratorEmptyRect) {
+ Initialize(gfx::Size(100, 100), 1, gfx::Size(800, 600));
+
+ gfx::Rect empty;
+ PictureLayerTiling::Iterator iter(tiling_.get(), 1, empty);
+ EXPECT_FALSE(iter);
+}
+
} // namespace
} // namespace cc
« no previous file with comments | « cc/picture_layer_tiling.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698