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

Unified Diff: ash/display/display_info_unittest.cc

Issue 22662005: Don't remember best resolution. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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_info.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_info_unittest.cc
diff --git a/ash/display/display_info_unittest.cc b/ash/display/display_info_unittest.cc
index d425046c89c00480ec77c0d0af67cafd4d1b2c1f..4e9768de049b44a735c2977e1dce391935fb1028 100644
--- a/ash/display/display_info_unittest.cc
+++ b/ash/display/display_info_unittest.cc
@@ -43,6 +43,14 @@ TEST_F(DisplayInfoTest, CreateFromSpec) {
EXPECT_EQ("10,20 300x400", info.bounds_in_pixel().ToString());
EXPECT_EQ(gfx::Display::ROTATE_270, info.rotation());
EXPECT_EQ(1.5f, info.ui_scale());
+
+ info = DisplayInfo::CreateFromSpecWithID(
+ "200x200#300x200|200x200|100x100", 10);
+ EXPECT_EQ("0,0 200x200", info.bounds_in_pixel().ToString());
+ EXPECT_EQ(3u, info.resolutions().size());
+ EXPECT_EQ("300x200", info.resolutions()[0].size.ToString());
+ EXPECT_EQ("200x200", info.resolutions()[1].size.ToString());
+ EXPECT_EQ("100x100", info.resolutions()[2].size.ToString());
}
} // namespace internal
« no previous file with comments | « ash/display/display_info.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698