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

Side by Side Diff: chrome/browser/autofill/autofill_interactive_uitest.cc

Issue 1888793002: Disable AutofillInteractiveTest.AutofillFormWithNonAutofillableField on CrOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 (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 <string> 5 #include <string>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 " </select><br>" 1016 " </select><br>"
1017 "<label for=\"phone\">Phone number:</label>" 1017 "<label for=\"phone\">Phone number:</label>"
1018 " <input type=\"text\" id=\"phone\"><br>" 1018 " <input type=\"text\" id=\"phone\"><br>"
1019 "</form>"))); 1019 "</form>")));
1020 1020
1021 // Invoke Autofill. 1021 // Invoke Autofill.
1022 TryBasicFormFill(); 1022 TryBasicFormFill();
1023 ExpectFieldValue("state_freeform", std::string()); 1023 ExpectFieldValue("state_freeform", std::string());
1024 } 1024 }
1025 1025
1026 // TODO(crbug.com/603488) Test is timing out flakily on CrOS.
1027 #if defined(OS_CHROMEOS)
1028 #define MAYBE_AutofillFormWithNonAutofillableField \
1029 DISABLED_AutofillFormWithNonAutofillableField
1030 #else
1031 #define MAYBE_AutofillFormWithNonAutofillableField \
1032 AutofillFormWithNonAutofillableField
1033 #endif
1026 // Test that we properly autofill forms with non-autofillable fields. 1034 // Test that we properly autofill forms with non-autofillable fields.
1027 IN_PROC_BROWSER_TEST_F(AutofillInteractiveTest, 1035 IN_PROC_BROWSER_TEST_F(AutofillInteractiveTest,
1028 AutofillFormWithNonAutofillableField) { 1036 MAYBE_AutofillFormWithNonAutofillableField) {
1029 CreateTestProfile(); 1037 CreateTestProfile();
1030 1038
1031 // Load the test page. 1039 // Load the test page.
1032 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), 1040 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(),
1033 GURL(std::string(kDataURIPrefix) + 1041 GURL(std::string(kDataURIPrefix) +
1034 "<form action=\"http://www.example.com/\" method=\"POST\">" 1042 "<form action=\"http://www.example.com/\" method=\"POST\">"
1035 "<label for=\"firstname\">First name:</label>" 1043 "<label for=\"firstname\">First name:</label>"
1036 " <input type=\"text\" id=\"firstname\"" 1044 " <input type=\"text\" id=\"firstname\""
1037 " onfocus=\"domAutomationController.send(true)\"><br>" 1045 " onfocus=\"domAutomationController.send(true)\"><br>"
1038 "<label for=\"middlename\">Middle name:</label>" 1046 "<label for=\"middlename\">Middle name:</label>"
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), 1518 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(),
1511 GURL(std::string(kDataURIPrefix) + kTestPasswordFormString))); 1519 GURL(std::string(kDataURIPrefix) + kTestPasswordFormString)));
1512 ASSERT_TRUE(content::ExecuteScript( 1520 ASSERT_TRUE(content::ExecuteScript(
1513 GetRenderViewHost(), 1521 GetRenderViewHost(),
1514 "document.getElementById('user').value = 'user';")); 1522 "document.getElementById('user').value = 'user';"));
1515 FocusFieldByName("password"); 1523 FocusFieldByName("password");
1516 PasteStringAndWait("foobar"); 1524 PasteStringAndWait("foobar");
1517 } 1525 }
1518 1526
1519 } // namespace autofill 1527 } // namespace autofill
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