OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |