Index: ui/display/fake_display_snapshot_unittests.cc |
diff --git a/ui/display/fake_display_snapshot_unittests.cc b/ui/display/fake_display_snapshot_unittests.cc |
index fa78a4e84620e820267fbfbfe3f0c296a78f24f5..094afccde92b345776b74458bae8258d61024e59 100644 |
--- a/ui/display/fake_display_snapshot_unittests.cc |
+++ b/ui/display/fake_display_snapshot_unittests.cc |
@@ -106,6 +106,9 @@ TEST(FakeDisplaySnapshotTest, BadDisplayMode) { |
// Need to provide a refresh rate after '%'. |
EXPECT_EQ(nullptr, CreateSnapshot("1024,768%")); |
EXPECT_EQ(nullptr, CreateSnapshot("1024,768%a")); |
+ // Display resolution can't be zero for width or height. |
+ EXPECT_EQ(nullptr, CreateSnapshot("000x800")); |
+ EXPECT_EQ(nullptr, CreateSnapshot("800x000")); |
// Refresh rate should come before DPI. |
EXPECT_EQ(nullptr, CreateSnapshot("1000x1000^300%120")); |
} |