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

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

Issue 6730016: Fix flakiness and enable RenderViewHostManagerTest on Linux/Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix additional flakiness. Created 9 years, 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // This test brought to you by http://crbug.com/69204 321 // This test brought to you by http://crbug.com/69204
322 IN_PROC_BROWSER_TEST_F(AutofillTest, AutofillAfterReload) { 322 IN_PROC_BROWSER_TEST_F(AutofillTest, AutofillAfterReload) {
323 CreateTestProfile(); 323 CreateTestProfile();
324 324
325 // Load the test page. 325 // Load the test page.
326 ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser())); 326 ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser()));
327 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), 327 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(),
328 GURL(std::string(kDataURIPrefix) + kTestFormString))); 328 GURL(std::string(kDataURIPrefix) + kTestFormString)));
329 329
330 // Reload the page. 330 // Reload the page.
331 NavigationController* controller = 331 TabContents* tab =
332 &browser()->GetSelectedTabContentsWrapper()->tab_contents()->controller(); 332 browser()->GetSelectedTabContentsWrapper()->tab_contents();
333 controller->Reload(false); 333 tab->controller().Reload(false);
334 ui_test_utils::WaitForLoadStop(controller); 334 ui_test_utils::WaitForLoadStop(tab);
335 335
336 // Invoke Autofill. 336 // Invoke Autofill.
337 TryBasicFormFill(); 337 TryBasicFormFill();
338 } 338 }
339 339
340 // Test that autofill works after page translation. 340 // Test that autofill works after page translation.
341 IN_PROC_BROWSER_TEST_F(AutofillTest, AutofillAfterTranslate) { 341 IN_PROC_BROWSER_TEST_F(AutofillTest, AutofillAfterTranslate) {
342 CreateTestProfile(); 342 CreateTestProfile();
343 343
344 GURL url(std::string(kDataURIPrefix) + 344 GURL url(std::string(kDataURIPrefix) +
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // Once click the text field, it starts again. 398 // Once click the text field, it starts again.
399 ASSERT_TRUE(ui_test_utils::ExecuteJavaScript( 399 ASSERT_TRUE(ui_test_utils::ExecuteJavaScript(
400 render_view_host(), L"", 400 render_view_host(), L"",
401 L"cr.googleTranslate.onTranslateElementLoad();")); 401 L"cr.googleTranslate.onTranslateElementLoad();"));
402 402
403 // Simulate the render notifying the translation has been done. 403 // Simulate the render notifying the translation has been done.
404 ui_test_utils::WaitForNotification(NotificationType::PAGE_TRANSLATED); 404 ui_test_utils::WaitForNotification(NotificationType::PAGE_TRANSLATED);
405 405
406 TryBasicFormFill(); 406 TryBasicFormFill();
407 } 407 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_focus_uitest.cc » ('j') | chrome/test/plugin/pdf_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698