Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 649 | 649 |
| 650 // Invoke and accept the Autofill popup and verify the field was filled. | 650 // Invoke and accept the Autofill popup and verify the field was filled. |
| 651 SendKeyToPageAndWait(ui::VKEY_M); | 651 SendKeyToPageAndWait(ui::VKEY_M); |
| 652 SendKeyToPopupAndWait(ui::VKEY_DOWN); | 652 SendKeyToPopupAndWait(ui::VKEY_DOWN); |
| 653 SendKeyToPopupAndWait(ui::VKEY_RETURN); | 653 SendKeyToPopupAndWait(ui::VKEY_RETURN); |
| 654 ExpectFieldValue("firstname", "Milton"); | 654 ExpectFieldValue("firstname", "Milton"); |
| 655 } | 655 } |
| 656 | 656 |
| 657 // Test that an input field is not rendered with the yellow autofilled | 657 // Test that an input field is not rendered with the yellow autofilled |
| 658 // background color when choosing an option from the datalist suggestion list. | 658 // background color when choosing an option from the datalist suggestion list. |
| 659 #if defined(OS_MACOSX) | 659 #if defined(OS_MACOSX) || defined(OS_CHROMEOS) |
| 660 // Flakily triggers and assert on Mac. | 660 // Flakily triggers and assert on Mac. |
| 661 // http://crbug.com/419868 | 661 // http://crbug.com/419868 |
| 662 // And on ChromeOs. | |
|
Mathieu
2016/03/18 13:48:16
nit: could combine with the previous comment
Fla
sebsg
2016/03/18 13:57:26
Done.
| |
| 663 // http://crbug.com/595385 | |
| 662 #define MAYBE_OnSelectOptionFromDatalist DISABLED_OnSelectOptionFromDatalist | 664 #define MAYBE_OnSelectOptionFromDatalist DISABLED_OnSelectOptionFromDatalist |
| 663 #else | 665 #else |
| 664 #define MAYBE_OnSelectOptionFromDatalist OnSelectOptionFromDatalist | 666 #define MAYBE_OnSelectOptionFromDatalist OnSelectOptionFromDatalist |
| 665 #endif | 667 #endif |
| 666 IN_PROC_BROWSER_TEST_F(AutofillInteractiveTest, | 668 IN_PROC_BROWSER_TEST_F(AutofillInteractiveTest, |
| 667 MAYBE_OnSelectOptionFromDatalist) { | 669 MAYBE_OnSelectOptionFromDatalist) { |
| 668 // Load the test page. | 670 // Load the test page. |
| 669 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL( | 671 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL( |
| 670 browser(), | 672 browser(), |
| 671 GURL(std::string(kDataURIPrefix) + | 673 GURL(std::string(kDataURIPrefix) + |
| (...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1503 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), | 1505 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), |
| 1504 GURL(std::string(kDataURIPrefix) + kTestPasswordFormString))); | 1506 GURL(std::string(kDataURIPrefix) + kTestPasswordFormString))); |
| 1505 ASSERT_TRUE(content::ExecuteScript( | 1507 ASSERT_TRUE(content::ExecuteScript( |
| 1506 GetRenderViewHost(), | 1508 GetRenderViewHost(), |
| 1507 "document.getElementById('user').value = 'user';")); | 1509 "document.getElementById('user').value = 'user';")); |
| 1508 FocusFieldByName("password"); | 1510 FocusFieldByName("password"); |
| 1509 PasteStringAndWait("foobar"); | 1511 PasteStringAndWait("foobar"); |
| 1510 } | 1512 } |
| 1511 | 1513 |
| 1512 } // namespace autofill | 1514 } // namespace autofill |
| OLD | NEW |