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

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

Issue 11235048: Test suite that monitors the disposition of JS-created windows based on what (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix style nits Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/history/history_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) 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/file_util.h" 8 #include "base/file_util.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 339
340 fetcher->set_url(fetcher->GetOriginalURL()); 340 fetcher->set_url(fetcher->GetOriginalURL());
341 fetcher->set_status(status); 341 fetcher->set_status(status);
342 fetcher->set_response_code(success ? 200 : 500); 342 fetcher->set_response_code(success ? 200 : 500);
343 fetcher->SetResponseString(script); 343 fetcher->SetResponseString(script);
344 fetcher->delegate()->OnURLFetchComplete(fetcher); 344 fetcher->delegate()->OnURLFetchComplete(fetcher);
345 } 345 }
346 346
347 void FocusFirstNameField() { 347 void FocusFirstNameField() {
348 LOG(WARNING) << "Clicking on the tab."; 348 LOG(WARNING) << "Clicking on the tab.";
349 content::SimulateMouseClick(chrome::GetActiveWebContents(browser())); 349 content::SimulateMouseClick(chrome::GetActiveWebContents(browser()), 0,
350 WebKit::WebMouseEvent::ButtonLeft);
350 351
351 LOG(WARNING) << "Focusing the first name field."; 352 LOG(WARNING) << "Focusing the first name field.";
352 bool result = false; 353 bool result = false;
353 ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool( 354 ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool(
354 render_view_host(), L"", 355 render_view_host(), L"",
355 L"if (document.readyState === 'complete')" 356 L"if (document.readyState === 'complete')"
356 L" document.getElementById('firstname').focus();" 357 L" document.getElementById('firstname').focus();"
357 L"else" 358 L"else"
358 L" domAutomationController.send(false);", 359 L" domAutomationController.send(false);",
359 &result)); 360 &result));
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 // TODO(isherman): this looks redundant, consider removing. 1497 // TODO(isherman): this looks redundant, consider removing.
1497 // DISABLED: http://crbug.com/150084 1498 // DISABLED: http://crbug.com/150084
1498 IN_PROC_BROWSER_TEST_F(AutofillTest, 1499 IN_PROC_BROWSER_TEST_F(AutofillTest,
1499 DISABLED_MergeAggregatedDuplicatedProfiles) { 1500 DISABLED_MergeAggregatedDuplicatedProfiles) {
1500 int num_of_profiles = 1501 int num_of_profiles =
1501 AggregateProfilesIntoAutofillPrefs("dataset_no_address.txt"); 1502 AggregateProfilesIntoAutofillPrefs("dataset_no_address.txt");
1502 1503
1503 ASSERT_GT(num_of_profiles, 1504 ASSERT_GT(num_of_profiles,
1504 static_cast<int>(personal_data_manager()->profiles().size())); 1505 static_cast<int>(personal_data_manager()->profiles().size()));
1505 } 1506 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/history_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698