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

Side by Side Diff: chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc

Issue 2878153002: Fixed some edit commands for OOPIF-<webivew> (Mac) (Closed)
Patch Set: Addressing creis@'s comments Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 } 798 }
799 } 799 }
800 800
801 // Tests that blurring <webview> also blurs the guest. 801 // Tests that blurring <webview> also blurs the guest.
802 IN_PROC_BROWSER_TEST_P(WebViewFocusInteractiveTest, Focus_BlurEvent) { 802 IN_PROC_BROWSER_TEST_P(WebViewFocusInteractiveTest, Focus_BlurEvent) {
803 TestHelper("testBlurEvent", "web_view/focus", NO_TEST_SERVER); 803 TestHelper("testBlurEvent", "web_view/focus", NO_TEST_SERVER);
804 } 804 }
805 805
806 // Tests that guests receive edit commands and respond appropriately. 806 // Tests that guests receive edit commands and respond appropriately.
807 IN_PROC_BROWSER_TEST_P(WebViewInteractiveTest, EditCommands) { 807 IN_PROC_BROWSER_TEST_P(WebViewInteractiveTest, EditCommands) {
808 #if defined(OS_MACOSX)
809 // TODO(ekaramad): This test is failing under OOPIF in MAC.
810 if (GetParam())
811 return;
812 #endif
813 LoadAndLaunchPlatformApp("web_view/edit_commands", "connected"); 808 LoadAndLaunchPlatformApp("web_view/edit_commands", "connected");
814 809
815 ASSERT_TRUE(ui_test_utils::ShowAndFocusNativeWindow( 810 ASSERT_TRUE(ui_test_utils::ShowAndFocusNativeWindow(
816 GetPlatformAppWindow())); 811 GetPlatformAppWindow()));
817 812
818 // Flush any pending events to make sure we start with a clean slate. 813 // Flush any pending events to make sure we start with a clean slate.
819 content::RunAllPendingInMessageLoop(); 814 content::RunAllPendingInMessageLoop();
820 815
821 ExtensionTestMessageListener copy_listener("copy", false); 816 ExtensionTestMessageListener copy_listener("copy", false);
822 SendCopyKeyPressToPlatformApp(); 817 SendCopyKeyPressToPlatformApp();
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 // Get the input value from the guest. 1658 // Get the input value from the guest.
1664 value.clear(); 1659 value.clear();
1665 ASSERT_TRUE(ExecuteScriptAndExtractString(guest_web_contents, 1660 ASSERT_TRUE(ExecuteScriptAndExtractString(guest_web_contents,
1666 "window.domAutomationController." 1661 "window.domAutomationController."
1667 "send(document.querySelector('" 1662 "send(document.querySelector('"
1668 "input').value)", 1663 "input').value)",
1669 &value)); 1664 &value));
1670 EXPECT_EQ("A B C D", value); 1665 EXPECT_EQ("A B C D", value);
1671 } 1666 }
1672 #endif // OS_MACOSX 1667 #endif // OS_MACOSX
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698