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

Unified Diff: ash/display/multi_display_manager_unittest.cc

Issue 11140006: Fix code around display overscan settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « ash/display/multi_display_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/multi_display_manager_unittest.cc
diff --git a/ash/display/multi_display_manager_unittest.cc b/ash/display/multi_display_manager_unittest.cc
index c30ada9ed004ba9e9841e0a4b6c6aa068b4be23a..19b42068e41811c3ccc19740f8af3fbb395afa13 100644
--- a/ash/display/multi_display_manager_unittest.cc
+++ b/ash/display/multi_display_manager_unittest.cc
@@ -227,12 +227,19 @@ TEST_F(MultiDisplayManagerTest, MAYBE_OverscanInsetsTest) {
gfx::Display display2(*display_manager()->GetDisplayAt(1));
display_manager()->SetOverscanInsets(
- display2.id(), gfx::Insets(10, 11, 12, 13));
+ display2.id(), gfx::Insets(13, 12, 11, 10));
std::vector<gfx::Display> changed_displays = changed();
EXPECT_EQ(1u, changed_displays.size());
EXPECT_EQ(display2.id(), changed_displays[0].id());
EXPECT_EQ("0,0 500x500",
display_manager()->GetDisplayAt(0)->bounds_in_pixel().ToString());
+ EXPECT_EQ("12,514 378x376",
+ display_manager()->GetDisplayAt(1)->bounds_in_pixel().ToString());
+
+ display_manager()->SetOverscanInsets(
+ display2.id(), gfx::Insets(10, 11, 12, 13));
+ EXPECT_EQ("0,0 500x500",
+ display_manager()->GetDisplayAt(0)->bounds_in_pixel().ToString());
EXPECT_EQ("11,511 376x378",
display_manager()->GetDisplayAt(1)->bounds_in_pixel().ToString());
« no previous file with comments | « ash/display/multi_display_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698