| Index: chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc
|
| diff --git a/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc b/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc
|
| index 88f6c7fb3c555f171c894f1c1e6de14848dd6b2f..08fec2d4b92fdfa973cb25196af406f634300584 100644
|
| --- a/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc
|
| +++ b/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc
|
| @@ -25,6 +25,7 @@
|
|
|
| namespace {
|
|
|
| +#if !defined(OS_MACOSX)
|
| static const char kTestDataURL[] = "data:text/html,<!doctype html>"
|
| "<body></body>"
|
| "<style>"
|
| @@ -40,6 +41,7 @@
|
| return base::StringPrintf("window.document.body.style.width = %d + 'px';"
|
| "window.document.body.style.height = %d + 'px';", dimension, dimension);
|
| }
|
| +#endif
|
|
|
| class ConstrainedWebDialogBrowserTestObserver
|
| : public content::WebContentsObserver {
|
| @@ -133,6 +135,7 @@
|
| EXPECT_TRUE(observer.contents_destroyed());
|
| }
|
|
|
| +#if !defined(OS_MACOSX)
|
| // Tests that dialog autoresizes based on web contents when autoresizing
|
| // is enabled.
|
| IN_PROC_BROWSER_TEST_F(ConstrainedWebDialogBrowserTest,
|
| @@ -171,6 +174,7 @@
|
| EXPECT_EQ(max_size, dialog_delegate->GetMaximumSize());
|
|
|
| // Check for initial sizing. Dialog was created as a 400x400 dialog.
|
| + EXPECT_EQ(gfx::Size(), web_contents->GetPreferredSize());
|
| ASSERT_EQ(initial_dialog_size, dialog_delegate->GetPreferredSize());
|
|
|
| observer.Wait();
|
| @@ -234,6 +238,7 @@
|
| delegate->GetDialogSize(&initial_dialog_size);
|
|
|
| // Check for initial sizing. Dialog was created as a 400x400 dialog.
|
| + EXPECT_EQ(gfx::Size(), web_contents->GetPreferredSize());
|
| ASSERT_EQ(initial_dialog_size, dialog_delegate->GetPreferredSize());
|
|
|
| // Resize <body> to dimension smaller than dialog.
|
| @@ -252,3 +257,4 @@
|
| initial_dialog_size,
|
| dialog_delegate)));
|
| }
|
| +#endif // !OS_MACOSX
|
|
|