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

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

Issue 10823029: Move WaitForLoadStop from ui_test_utils to browser_test_utils so that it can be reused in content_b… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/browser_focus_uitest.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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_focus_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698