Index: ui/gfx/blit_unittest.cc |
diff --git a/ui/gfx/blit_unittest.cc b/ui/gfx/blit_unittest.cc |
index f52272e2610d1ccda9dad04908a029a4b82ac591..dea0139b020478d7e7c3117867b871063da72bad 100644 |
--- a/ui/gfx/blit_unittest.cc |
+++ b/ui/gfx/blit_unittest.cc |
@@ -80,6 +80,11 @@ TEST(Blit, ScrollCanvas) { |
gfx::Vector2d(0, 0)); |
VerifyCanvasValues<5, 5>(canvas.get(), initial_values); |
+ // Scroll with a empty clip and make sure it's a NOP. |
+ gfx::Rect empty_clip(1, 1, 0, 0); |
+ gfx::ScrollCanvas(canvas.get(), empty_clip, gfx::Vector2d(0, 1)); |
+ VerifyCanvasValues<5, 5>(canvas.get(), initial_values); |
+ |
// Scroll the center 3 pixels up one. |
gfx::Rect center_three(1, 1, 3, 3); |
gfx::ScrollCanvas(canvas.get(), center_three, gfx::Vector2d(0, -1)); |