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

Unified Diff: chrome/browser/password_manager/password_generation_interactive_uitest.cc

Issue 1084063002: [Password Generation] Fix bug where generation would never trigger on iframes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disabled Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/data/password/framed_signup_form.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/password_generation_interactive_uitest.cc
diff --git a/chrome/browser/password_manager/password_generation_interactive_uitest.cc b/chrome/browser/password_manager/password_generation_interactive_uitest.cc
index 78702e94e28fd1bef5087840effe9338d76733b8..334367e496604eac783ad20435203e7c615500e8 100644
--- a/chrome/browser/password_manager/password_generation_interactive_uitest.cc
+++ b/chrome/browser/password_manager/password_generation_interactive_uitest.cc
@@ -132,25 +132,9 @@ class PasswordGenerationInteractiveTest : public InProcessBrowserTest {
TestPopupObserver observer_;
};
-#if defined(USE_AURA)
-// Enabled on these platforms.
-// Disabled due to flakiness, see http://crbug.com/407998
-#define MAYBE_PopupShownAndPasswordSelected \
- DISABLED_PopupShownAndPasswordSelected
-#define MAYBE_PopupShownAndDismissed DISABLED_PopupShownAndDismissed
-#define MAYBE_PopupShownAndDismissedByScrolling \
- DISABLED_PopupShownAndDismissedByScrolling
-#else
-// Popup not enabled for these platforms yet.
-#define MAYBE_PopupShownAndPasswordSelected \
- DISABLED_PopupShownAndPasswordSelected
-#define MAYBE_PopupShownAndDismissed DISABLED_PopupShownAndDismissed
-#define MAYBE_PopupShownAndDismissedByScrolling \
- DISABLED_PopupShownAndDismissedByScrolling
-#endif
-
+// Disabled due to flakiness due to resizes, see http://crbug.com/407998.
IN_PROC_BROWSER_TEST_F(PasswordGenerationInteractiveTest,
- MAYBE_PopupShownAndPasswordSelected) {
+ DISABLED_PopupShownAndPasswordSelected) {
FocusPasswordField();
EXPECT_TRUE(GenerationPopupShowing());
SendKeyToPopup(ui::VKEY_DOWN);
@@ -168,8 +152,9 @@ IN_PROC_BROWSER_TEST_F(PasswordGenerationInteractiveTest,
EXPECT_TRUE(EditingPopupShowing());
}
+// Disabled due to flakiness due to resizes, see http://crbug.com/407998.
IN_PROC_BROWSER_TEST_F(PasswordGenerationInteractiveTest,
- MAYBE_PopupShownAndDismissed) {
+ DISABLED_PopupShownAndDismissed) {
FocusPasswordField();
EXPECT_TRUE(GenerationPopupShowing());
@@ -179,8 +164,9 @@ IN_PROC_BROWSER_TEST_F(PasswordGenerationInteractiveTest,
EXPECT_FALSE(GenerationPopupShowing());
}
+// Disabled due to flakiness due to resizes, see http://crbug.com/407998.
IN_PROC_BROWSER_TEST_F(PasswordGenerationInteractiveTest,
- MAYBE_PopupShownAndDismissedByScrolling) {
+ DISABLED_PopupShownAndDismissedByScrolling) {
FocusPasswordField();
EXPECT_TRUE(GenerationPopupShowing());
@@ -189,3 +175,19 @@ IN_PROC_BROWSER_TEST_F(PasswordGenerationInteractiveTest,
EXPECT_FALSE(GenerationPopupShowing());
}
+
+// Disabled due to flakiness due to resizes, see http://crbug.com/407998.
+IN_PROC_BROWSER_TEST_F(PasswordGenerationInteractiveTest,
+ DISABLED_GenerationTriggeredInIFrame) {
+ GURL url = embedded_test_server()->GetURL(
+ "/password/framed_signup_form.html");
+ ui_test_utils::NavigateToURL(browser(), url);
+
+ std::string focus_script =
+ "var frame = document.getElementById('signup_iframe');"
+ "var frame_doc = frame.contentDocument;"
+ "frame_doc.getElementById('password_field').focus();";
+
+ ASSERT_TRUE(content::ExecuteScript(GetRenderViewHost(), focus_script));
+ EXPECT_TRUE(GenerationPopupShowing());
+}
« no previous file with comments | « no previous file | chrome/test/data/password/framed_signup_form.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698