OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/extension_apitest.h" | 5 #include "chrome/browser/extensions/extension_apitest.h" |
6 #include "chrome/browser/ui/browser_window.h" | 6 #include "chrome/browser/ui/browser_window.h" |
7 #include "chrome/test/base/ui_test_utils.h" | 7 #include "chrome/test/base/ui_test_utils.h" |
8 | 8 |
9 // Window resizes are not completed by the time the callback happens, | 9 // Window resizes are not completed by the time the callback happens, |
10 // so these tests fail on linux/gtk. http://crbug.com/72369 | 10 // so these tests fail on linux/gtk. http://crbug.com/72369 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 ASSERT_TRUE(RunExtensionTest("window_update/focus")) << message_; | 47 ASSERT_TRUE(RunExtensionTest("window_update/focus")) << message_; |
48 ASSERT_EQ(is_fullscreen, browser()->window()->IsFullscreen()); | 48 ASSERT_EQ(is_fullscreen, browser()->window()->IsFullscreen()); |
49 } | 49 } |
50 | 50 |
51 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, | 51 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, |
52 MAYBE_UpdateWindowSizeExitsFullscreen) { | 52 MAYBE_UpdateWindowSizeExitsFullscreen) { |
53 browser()->window()->EnterFullscreen( | 53 browser()->window()->EnterFullscreen( |
54 GURL(), FEB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION); | 54 GURL(), FEB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION); |
55 ASSERT_TRUE(RunExtensionTest("window_update/sizing")) << message_; | 55 ASSERT_TRUE(RunExtensionTest("window_update/sizing")) << message_; |
56 ASSERT_FALSE(browser()->window()->IsFullscreen()); | 56 ASSERT_FALSE(browser()->window()->IsFullscreen()); |
57 } | 57 } |
OLD | NEW |