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

Unified Diff: ash/display/display_controller_unittest.cc

Issue 10790090: Enable Virtual Screen Coordinates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 8 years, 5 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/display_controller.cc ('k') | ash/display/multi_display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller_unittest.cc
diff --git a/ash/display/display_controller_unittest.cc b/ash/display/display_controller_unittest.cc
index cbb01042e250770f20692d6cac3310ede331d4a9..48d2babf7b64ab88f9c4af9c7a194db452eea269 100644
--- a/ash/display/display_controller_unittest.cc
+++ b/ash/display/display_controller_unittest.cc
@@ -36,14 +36,12 @@ class DisplayControllerTest : public test::AshTestBase {
virtual void SetUp() OVERRIDE {
internal::DisplayController::SetExtendedDesktopEnabled(true);
- internal::DisplayController::SetVirtualScreenCoordinatesEnabled(true);
AshTestBase::SetUp();
}
virtual void TearDown() OVERRIDE {
AshTestBase::TearDown();
internal::DisplayController::SetExtendedDesktopEnabled(false);
- internal::DisplayController::SetVirtualScreenCoordinatesEnabled(false);
}
private:
@@ -61,7 +59,7 @@ class DisplayControllerTest : public test::AshTestBase {
#endif
TEST_F(DisplayControllerTest, MAYBE_SecondaryDisplayLayout) {
- UpdateDisplay("0+0-500x500,0+0-400x400");
+ UpdateDisplay("500x500,400x400");
gfx::Display* secondary_display =
aura::Env::GetInstance()->display_manager()->GetDisplayAt(1);
gfx::Insets insets(5, 5, 5, 5);
@@ -97,7 +95,7 @@ TEST_F(DisplayControllerTest, MAYBE_SecondaryDisplayLayout) {
TEST_F(DisplayControllerTest, MAYBE_BoundsUpdated) {
Shell::GetInstance()->display_controller()->SetSecondaryDisplayLayout(
internal::DisplayController::BOTTOM);
- UpdateDisplay("0+0-500x500,0+0-400x400");
+ UpdateDisplay("500x500,400x400");
gfx::Display* secondary_display =
aura::Env::GetInstance()->display_manager()->GetDisplayAt(1);
gfx::Insets insets(5, 5, 5, 5);
@@ -107,21 +105,21 @@ TEST_F(DisplayControllerTest, MAYBE_BoundsUpdated) {
EXPECT_EQ("0,500 400x400", GetSecondaryDisplay().bounds().ToString());
EXPECT_EQ("5,505 390x390", GetSecondaryDisplay().work_area().ToString());
- UpdateDisplay("0+0-600x600,0+0-400x400");
+ UpdateDisplay("600x600,400x400");
EXPECT_EQ("0,0 600x600", GetPrimaryDisplay().bounds().ToString());
EXPECT_EQ("0,600 400x400", GetSecondaryDisplay().bounds().ToString());
EXPECT_EQ("5,605 390x390", GetSecondaryDisplay().work_area().ToString());
- UpdateDisplay("0+0-600x600,0+0-500x500");
+ UpdateDisplay("600x600,500x500");
EXPECT_EQ("0,0 600x600", GetPrimaryDisplay().bounds().ToString());
EXPECT_EQ("0,600 500x500", GetSecondaryDisplay().bounds().ToString());
EXPECT_EQ("5,605 490x490", GetSecondaryDisplay().work_area().ToString());
- UpdateDisplay("0+0-600x600");
+ UpdateDisplay("600x600");
EXPECT_EQ("0,0 600x600", GetPrimaryDisplay().bounds().ToString());
EXPECT_EQ(1, gfx::Screen::GetNumDisplays());
- UpdateDisplay("0+0-700x700,0+0-1000x1000");
+ UpdateDisplay("700x700,1000x1000");
ASSERT_EQ(2, gfx::Screen::GetNumDisplays());
EXPECT_EQ("0,0 700x700", GetPrimaryDisplay().bounds().ToString());
EXPECT_EQ("0,700 1000x1000", GetSecondaryDisplay().bounds().ToString());
« no previous file with comments | « ash/display/display_controller.cc ('k') | ash/display/multi_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698