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

Unified Diff: views/controls/tabbed_pane/tabbed_pane_unittest.cc

Issue 2768006: Test + Fix for GTK window resizing when using toolkit views. (Closed)
Patch Set: Return a gfx::Size instead. Created 10 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 | « views/controls/native/native_view_host_gtk.cc ('k') | views/widget/gtk_views_fixed.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/tabbed_pane/tabbed_pane_unittest.cc
diff --git a/views/controls/tabbed_pane/tabbed_pane_unittest.cc b/views/controls/tabbed_pane/tabbed_pane_unittest.cc
index 51a4acb3abbc563a53ff7968e29f180b72bdcebd..1ceef86fd10509cba1d30f679ac06d5c21cb07c4 100644
--- a/views/controls/tabbed_pane/tabbed_pane_unittest.cc
+++ b/views/controls/tabbed_pane/tabbed_pane_unittest.cc
@@ -32,6 +32,10 @@ class TabbedPaneTest : public testing::Test, WindowDelegate {
TabbedPane* tabbed_pane_;
+ void RunAllPending() {
+ message_loop_.RunAllPending();
+ }
+
private:
virtual void SetUp() {
tabbed_pane_ = new TabbedPane();
@@ -69,6 +73,7 @@ TEST_F(TabbedPaneTest, SizeAndLayout) {
// The bounds of our children should be smaller than the tabbed pane's bounds.
tabbed_pane_->SetBounds(0, 0, 100, 200);
+ RunAllPending();
gfx::Rect bounds(child1->bounds());
EXPECT_GT(bounds.width(), 0);
EXPECT_LT(bounds.width(), 100);
« no previous file with comments | « views/controls/native/native_view_host_gtk.cc ('k') | views/widget/gtk_views_fixed.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698