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

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

Issue 622903002: Disable AutofillInteractiveTest.OnSelectOptionFromDatalist as it fails locally all the time on 10.8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | chrome/test/ppapi/ppapi_browsertest.cc » ('j') | 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/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 653
654 // Invoke and accept the Autofill popup and verify the field was filled. 654 // Invoke and accept the Autofill popup and verify the field was filled.
655 SendKeyToPageAndWait(ui::VKEY_M); 655 SendKeyToPageAndWait(ui::VKEY_M);
656 SendKeyToPopupAndWait(ui::VKEY_DOWN); 656 SendKeyToPopupAndWait(ui::VKEY_DOWN);
657 SendKeyToPopupAndWait(ui::VKEY_RETURN); 657 SendKeyToPopupAndWait(ui::VKEY_RETURN);
658 ExpectFieldValue("firstname", "Milton"); 658 ExpectFieldValue("firstname", "Milton");
659 } 659 }
660 660
661 // Test that an input field is not rendered with the yellow autofilled 661 // Test that an input field is not rendered with the yellow autofilled
662 // background color when choosing an option from the datalist suggestion list. 662 // background color when choosing an option from the datalist suggestion list.
663 IN_PROC_BROWSER_TEST_F(AutofillInteractiveTest, OnSelectOptionFromDatalist) { 663 #if defined(OS_MACOSX)
664 // Flakily triggers and assert on Mac.
665 // http://crbug.com/419868
666 #define MAYBE_OnSelectOptionFromDatalist DISABLED_OnSelectOptionFromDatalist
667 #else
668 #define MAYBE_OnSelectOptionFromDatalist OnSelectOptionFromDatalist
669 #endif
670 IN_PROC_BROWSER_TEST_F(AutofillInteractiveTest,
671 MAYBE_OnSelectOptionFromDatalist) {
664 // Load the test page. 672 // Load the test page.
665 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL( 673 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(
666 browser(), 674 browser(),
667 GURL(std::string(kDataURIPrefix) + 675 GURL(std::string(kDataURIPrefix) +
668 "<form action=\"http://www.example.com/\" method=\"POST\">" 676 "<form action=\"http://www.example.com/\" method=\"POST\">"
669 " <input list=\"dl\" type=\"search\" id=\"firstname\"" 677 " <input list=\"dl\" type=\"search\" id=\"firstname\""
670 " onfocus=\"domAutomationController.send(true)\"><br>" 678 " onfocus=\"domAutomationController.send(true)\"><br>"
671 " <datalist id=\"dl\">" 679 " <datalist id=\"dl\">"
672 " <option value=\"Adam\"></option>" 680 " <option value=\"Adam\"></option>"
673 " <option value=\"Bob\"></option>" 681 " <option value=\"Bob\"></option>"
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 ASSERT_TRUE(content::ExecuteScript( 1449 ASSERT_TRUE(content::ExecuteScript(
1442 GetRenderViewHost(), 1450 GetRenderViewHost(),
1443 "document.querySelector('input').autocomplete = 'off';")); 1451 "document.querySelector('input').autocomplete = 'off';"));
1444 1452
1445 // Press the down arrow to select the suggestion and attempt to preview the 1453 // Press the down arrow to select the suggestion and attempt to preview the
1446 // autofilled form. 1454 // autofilled form.
1447 SendKeyToPopupAndWait(ui::VKEY_DOWN); 1455 SendKeyToPopupAndWait(ui::VKEY_DOWN);
1448 } 1456 }
1449 1457
1450 } // namespace autofill 1458 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | chrome/test/ppapi/ppapi_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698