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

Side by Side Diff: chrome/test/automation/automation_proxy_uitest.cc

Issue 7782026: Switch from chrome://extensions to chrome://settings/extensionSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « chrome/common/url_constants.cc ('k') | no next file » | 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) 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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 // We expect the RunCommand above to wait until the title is updated. 506 // We expect the RunCommand above to wait until the title is updated.
507 EXPECT_EQ(L"Downloads", GetActiveTabTitle()); 507 EXPECT_EQ(L"Downloads", GetActiveTabTitle());
508 } 508 }
509 509
510 TEST_F(AutomationProxyTest, AcceleratorExtensions) { 510 TEST_F(AutomationProxyTest, AcceleratorExtensions) {
511 scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0)); 511 scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
512 ASSERT_TRUE(window.get()); 512 ASSERT_TRUE(window.get());
513 513
514 ASSERT_TRUE(window->RunCommand(IDC_MANAGE_EXTENSIONS)); 514 ASSERT_TRUE(window->RunCommand(IDC_MANAGE_EXTENSIONS));
515 515
516 // We expect the RunCommand above to wait until the title is updated. 516 EXPECT_EQ("chrome://settings/extensionSettings", GetActiveTabURL().spec());
517 EXPECT_EQ(L"Extensions", GetActiveTabTitle());
518 } 517 }
519 518
520 TEST_F(AutomationProxyTest, AcceleratorHistory) { 519 TEST_F(AutomationProxyTest, AcceleratorHistory) {
521 scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0)); 520 scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
522 ASSERT_TRUE(window.get()); 521 ASSERT_TRUE(window.get());
523 522
524 ASSERT_TRUE(window->RunCommand(IDC_SHOW_HISTORY)); 523 ASSERT_TRUE(window->RunCommand(IDC_SHOW_HISTORY));
525 524
526 // We expect the RunCommand above to wait until the title is updated. 525 // We expect the RunCommand above to wait until the title is updated.
527 EXPECT_EQ(L"History", GetActiveTabTitle()); 526 EXPECT_EQ(L"History", GetActiveTabTitle());
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 int diff_pixels_count = 0; 1659 int diff_pixels_count = 0;
1661 for (int x = 0; x < img_size.width(); ++x) { 1660 for (int x = 0; x < img_size.width(); ++x) {
1662 for (int y = 0; y < img_size.height(); ++y) { 1661 for (int y = 0; y < img_size.height(); ++y) {
1663 if (*snapshot_bmp.getAddr32(x, y) != *reference_bmp.getAddr32(x, y)) { 1662 if (*snapshot_bmp.getAddr32(x, y) != *reference_bmp.getAddr32(x, y)) {
1664 ++diff_pixels_count; 1663 ++diff_pixels_count;
1665 } 1664 }
1666 } 1665 }
1667 } 1666 }
1668 ASSERT_EQ(diff_pixels_count, 0); 1667 ASSERT_EQ(diff_pixels_count, 0);
1669 } 1668 }
OLDNEW
« no previous file with comments | « chrome/common/url_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698