OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "base/test/test_timeouts.h" | 8 #include "base/test/test_timeouts.h" |
9 #include "base/threading/platform_thread.h" | 9 #include "base/threading/platform_thread.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 #else | 779 #else |
780 #define MAYBE_Messaging Messaging | 780 #define MAYBE_Messaging Messaging |
781 #endif | 781 #endif |
782 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_Messaging) { | 782 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_Messaging) { |
783 ExtensionApiTest::ResultCatcher result_catcher; | 783 ExtensionApiTest::ResultCatcher result_catcher; |
784 LoadAndLaunchPlatformApp("messaging/app2"); | 784 LoadAndLaunchPlatformApp("messaging/app2"); |
785 LoadAndLaunchPlatformApp("messaging/app1"); | 785 LoadAndLaunchPlatformApp("messaging/app1"); |
786 EXPECT_TRUE(result_catcher.GetNextResult()); | 786 EXPECT_TRUE(result_catcher.GetNextResult()); |
787 } | 787 } |
788 | 788 |
789 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WebContentsHasFocus) { | 789 // TODO(linux_aura) http://crbug.com/163931 |
| 790 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_AURA) |
| 791 #define MAYBE_WebContentsHasFocus DISABLED_WebContentsHasFocus |
| 792 #else |
| 793 #define MAYBE_WebContentsHasFocus WebContentsHasFocus |
| 794 #endif |
| 795 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_WebContentsHasFocus) { |
790 const Extension* extension = LoadAndLaunchPlatformApp("minimal"); | 796 const Extension* extension = LoadAndLaunchPlatformApp("minimal"); |
791 ShellWindow* window = CreateShellWindow(extension); | 797 ShellWindow* window = CreateShellWindow(extension); |
792 EXPECT_TRUE(window->web_contents()->GetRenderWidgetHostView()->HasFocus()); | 798 EXPECT_TRUE(window->web_contents()->GetRenderWidgetHostView()->HasFocus()); |
793 CloseShellWindow(window); | 799 CloseShellWindow(window); |
794 } | 800 } |
795 | 801 |
796 } // namespace extensions | 802 } // namespace extensions |
OLD | NEW |