OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 LOG(WARNING) << "Bringing browser window to front."; | 617 LOG(WARNING) << "Bringing browser window to front."; |
618 ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser())); | 618 ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser())); |
619 LOG(WARNING) << "Navigating to URL."; | 619 LOG(WARNING) << "Navigating to URL."; |
620 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), | 620 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), |
621 GURL(std::string(kDataURIPrefix) + kTestFormString))); | 621 GURL(std::string(kDataURIPrefix) + kTestFormString))); |
622 | 622 |
623 // Reload the page. | 623 // Reload the page. |
624 LOG(WARNING) << "Reloading the page."; | 624 LOG(WARNING) << "Reloading the page."; |
625 WebContents* tab = chrome::GetActiveWebContents(browser()); | 625 WebContents* tab = chrome::GetActiveWebContents(browser()); |
626 tab->GetController().Reload(false); | 626 tab->GetController().Reload(false); |
627 ui_test_utils::WaitForLoadStop(tab); | 627 content::WaitForLoadStop(tab); |
628 | 628 |
629 // Invoke Autofill. | 629 // Invoke Autofill. |
630 LOG(WARNING) << "Trying to fill the form."; | 630 LOG(WARNING) << "Trying to fill the form."; |
631 TryBasicFormFill(); | 631 TryBasicFormFill(); |
632 } | 632 } |
633 | 633 |
634 #if defined(OS_MACOSX) || defined(OS_CHROMEOS) | 634 #if defined(OS_MACOSX) || defined(OS_CHROMEOS) |
635 // Test that autofill works after page translation. | 635 // Test that autofill works after page translation. |
636 // http://crbug.com/81451 | 636 // http://crbug.com/81451 |
637 IN_PROC_BROWSER_TEST_F(AutofillTest, DISABLED_AutofillAfterTranslate) { | 637 IN_PROC_BROWSER_TEST_F(AutofillTest, DISABLED_AutofillAfterTranslate) { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 // Once click the text field, it starts again. | 701 // Once click the text field, it starts again. |
702 ASSERT_TRUE(content::ExecuteJavaScript( | 702 ASSERT_TRUE(content::ExecuteJavaScript( |
703 render_view_host(), L"", | 703 render_view_host(), L"", |
704 L"cr.googleTranslate.onTranslateElementLoad();")); | 704 L"cr.googleTranslate.onTranslateElementLoad();")); |
705 | 705 |
706 // Simulate the render notifying the translation has been done. | 706 // Simulate the render notifying the translation has been done. |
707 translation_observer.Wait(); | 707 translation_observer.Wait(); |
708 | 708 |
709 TryBasicFormFill(); | 709 TryBasicFormFill(); |
710 } | 710 } |
OLD | NEW |