diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-20 19:14:36 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-20 19:14:36 +0000 |
commit | 905d993a879a87175837fcb01451f6450ecf325f (patch) | |
tree | 77edb8c7eb081072997d29d1fcb85f231289c09d /chrome/browser | |
parent | c5bdc032b4286a03be4e39fc5ca2895c97fc7f9f (diff) | |
download | chromium_src-905d993a879a87175837fcb01451f6450ecf325f.zip chromium_src-905d993a879a87175837fcb01451f6450ecf325f.tar.gz chromium_src-905d993a879a87175837fcb01451f6450ecf325f.tar.bz2 |
Test forcing the display of the controller's view.
Review URL: http://codereview.chromium.org/86002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/cocoa/bookmark_bar_controller_unittest.mm | 5 | ||||
-rw-r--r-- | chrome/browser/cocoa/tab_controller_unittest.mm | 1 | ||||
-rw-r--r-- | chrome/browser/cocoa/toolbar_controller_unittest.mm | 5 |
3 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_controller_unittest.mm b/chrome/browser/cocoa/bookmark_bar_controller_unittest.mm index 543a5b3..e2ba9aa 100644 --- a/chrome/browser/cocoa/bookmark_bar_controller_unittest.mm +++ b/chrome/browser/cocoa/bookmark_bar_controller_unittest.mm @@ -58,4 +58,9 @@ TEST_F(BookmarkBarControllerTest, Contents) { // TODO(jrg): When there are items on the bar, flesh this out. } +// Test drawing, mostly to ensure nothing leaks or crashes. +TEST_F(BookmarkBarControllerTest, Display) { + [[bar_ view] display]; +} + } // namespace diff --git a/chrome/browser/cocoa/tab_controller_unittest.mm b/chrome/browser/cocoa/tab_controller_unittest.mm index d568dcb..7d1228a 100644 --- a/chrome/browser/cocoa/tab_controller_unittest.mm +++ b/chrome/browser/cocoa/tab_controller_unittest.mm @@ -71,6 +71,7 @@ TEST_F(TabControllerTest, Creation) { [[window contentView] addSubview:[controller view]]; EXPECT_TRUE([controller tabView]); EXPECT_EQ([[controller view] window], window); + [[controller view] display]; // Test drawing to ensure nothing leaks/crashes. [[controller view] removeFromSuperview]; } diff --git a/chrome/browser/cocoa/toolbar_controller_unittest.mm b/chrome/browser/cocoa/toolbar_controller_unittest.mm index 39559e0..6f8e618 100644 --- a/chrome/browser/cocoa/toolbar_controller_unittest.mm +++ b/chrome/browser/cocoa/toolbar_controller_unittest.mm @@ -93,6 +93,11 @@ TEST_F(ToolbarControllerTest, FocusLocation) { EXPECT_EQ([window firstResponder], [(id)locationBar currentEditor]); } +// Test drawing, mostly to ensure nothing leaks or crashes. +TEST_F(ToolbarControllerTest, Display) { + [[bar_ view] display]; +} + TEST_F(ToolbarControllerTest, LoadingState) { // TODO(pinkerton): Same problem testing this as the starred state above. } |