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

Unified Diff: ui/gfx/rect_unittest.cc

Issue 15233003: ui: ToEnclosingRect(empty rect) should return an empty rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/rect_conversions.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect_unittest.cc
diff --git a/ui/gfx/rect_unittest.cc b/ui/gfx/rect_unittest.cc
index f0bf7d5170d1e8645ac6aca07fb014c0b4270d3c..2e18ae7eb62c03e92f68202a40fd5dda8c04c590 100644
--- a/ui/gfx/rect_unittest.cc
+++ b/ui/gfx/rect_unittest.cc
@@ -519,6 +519,8 @@ TEST(RectTest, ToEnclosingRect) {
} tests [] = {
{ 0.0f, 0.0f, 0.0f, 0.0f,
0, 0, 0, 0 },
+ { 5.5f, 5.5f, 0.0f, 0.0f,
+ 5, 5, 0, 0 },
{ -1.5f, -1.5f, 3.0f, 3.0f,
-2, -2, 4, 4 },
{ -1.5f, -1.5f, 3.5f, 3.5f,
« no previous file with comments | « ui/gfx/rect_conversions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698