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

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

Issue 1025653003: Disable WebViewInteractiveTest.Fullscreen{Allow,Deny}_* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@disable_dnsprefetch
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/strings/stringprintf.h" 5 #include "base/strings/stringprintf.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/apps/app_browsertest_util.h" 8 #include "chrome/browser/apps/app_browsertest_util.h"
9 #include "chrome/browser/chrome_content_browser_client.h" 9 #include "chrome/browser/chrome_content_browser_client.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 NO_TEST_SERVER); 1016 NO_TEST_SERVER);
1017 } 1017 }
1018 1018
1019 // Disable this on mac, throws an assertion failure on teardown which 1019 // Disable this on mac, throws an assertion failure on teardown which
1020 // will result in flakiness: 1020 // will result in flakiness:
1021 // 1021 //
1022 // "not is fullscreen state" 1022 // "not is fullscreen state"
1023 // "*** Assertion failure in -[_NSWindowFullScreenTransition 1023 // "*** Assertion failure in -[_NSWindowFullScreenTransition
1024 // transitionedWindowFrame]," 1024 // transitionedWindowFrame],"
1025 // See similar bug: http://crbug.com/169820. 1025 // See similar bug: http://crbug.com/169820.
1026 // Also flaky on Windows: http://crbug.com/468660 1026 //
1027 #if defined(OS_MACOSX) || defined(OS_WIN) 1027 // In addition to the above, these tests are flaky on many platforms:
1028 #define MAYBE_FullscreenAllow_EmbedderHasPermission \ 1028 // http://crbug.com/468660
1029 DISABLED_FullscreenAllow_EmbedderHasPermission
1030 #else
1031 #define MAYBE_FullscreenAllow_EmbedderHasPermission \
1032 FullscreenAllow_EmbedderHasPermission
1033 #endif
1034 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, 1029 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest,
1035 MAYBE_FullscreenAllow_EmbedderHasPermission) { 1030 DISABLED_FullscreenAllow_EmbedderHasPermission) {
1036 FullscreenTestHelper("testFullscreenAllow", 1031 FullscreenTestHelper("testFullscreenAllow",
1037 "web_view/fullscreen/embedder_has_permission"); 1032 "web_view/fullscreen/embedder_has_permission");
1038 } 1033 }
1039 1034
1040 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, 1035 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest,
1041 FullscreenDeny_EmbedderHasPermission) { 1036 DISABLED_FullscreenDeny_EmbedderHasPermission) {
1042 FullscreenTestHelper("testFullscreenDeny", 1037 FullscreenTestHelper("testFullscreenDeny",
1043 "web_view/fullscreen/embedder_has_permission"); 1038 "web_view/fullscreen/embedder_has_permission");
1044 } 1039 }
1045 1040
1046 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, 1041 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest,
1047 FullscreenAllow_EmbedderHasNoPermission) { 1042 DISABLED_FullscreenAllow_EmbedderHasNoPermission) {
1048 FullscreenTestHelper("testFullscreenAllow", 1043 FullscreenTestHelper("testFullscreenAllow",
1049 "web_view/fullscreen/embedder_has_no_permission"); 1044 "web_view/fullscreen/embedder_has_no_permission");
1050 } 1045 }
1051 1046
1052 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, 1047 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest,
1053 FullscreenDeny_EmbedderHasNoPermission) { 1048 DISABLED_FullscreenDeny_EmbedderHasNoPermission) {
1054 FullscreenTestHelper("testFullscreenDeny", 1049 FullscreenTestHelper("testFullscreenDeny",
1055 "web_view/fullscreen/embedder_has_no_permission"); 1050 "web_view/fullscreen/embedder_has_no_permission");
1056 } 1051 }
1057 1052
1058 // This test exercies the following scenario: 1053 // This test exercies the following scenario:
1059 // 1. An <input> in guest has focus. 1054 // 1. An <input> in guest has focus.
1060 // 2. User takes focus to embedder by clicking e.g. an <input> in embedder. 1055 // 2. User takes focus to embedder by clicking e.g. an <input> in embedder.
1061 // 3. User brings back the focus directly to the <input> in #1. 1056 // 3. User brings back the focus directly to the <input> in #1.
1062 // 1057 //
1063 // Now we need to make sure TextInputTypeChanged fires properly for the guest's 1058 // Now we need to make sure TextInputTypeChanged fires properly for the guest's
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 1211
1217 // Now verify that the selection text propagates properly to RWHV. 1212 // Now verify that the selection text propagates properly to RWHV.
1218 content::RenderWidgetHostView* guest_rwhv = 1213 content::RenderWidgetHostView* guest_rwhv =
1219 guest_web_contents()->GetRenderWidgetHostView(); 1214 guest_web_contents()->GetRenderWidgetHostView();
1220 ASSERT_TRUE(guest_rwhv); 1215 ASSERT_TRUE(guest_rwhv);
1221 std::string selected_text = base::UTF16ToUTF8(guest_rwhv->GetSelectedText()); 1216 std::string selected_text = base::UTF16ToUTF8(guest_rwhv->GetSelectedText());
1222 ASSERT_TRUE(selected_text.size() >= 10u); 1217 ASSERT_TRUE(selected_text.size() >= 10u);
1223 ASSERT_EQ("AAAAAAAAAA", selected_text.substr(0, 10)); 1218 ASSERT_EQ("AAAAAAAAAA", selected_text.substr(0, 10));
1224 } 1219 }
1225 #endif 1220 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698