| 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 <mshtmcid.h> | 5 #include <mshtmcid.h> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/test/test_file_util.h" | 8 #include "base/test/test_file_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "base/win/scoped_bstr.h" | 10 #include "base/win/scoped_bstr.h" |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 // Verify that there is no change on text field value after copy operation. | 777 // Verify that there is no change on text field value after copy operation. |
| 778 EXPECT_CALL(acc_observer_, OnAccValueChange(_, _, _)) | 778 EXPECT_CALL(acc_observer_, OnAccValueChange(_, _, _)) |
| 779 .Times(testing::AtMost(0)); | 779 .Times(testing::AtMost(0)); |
| 780 | 780 |
| 781 LaunchIEAndNavigate(context_menu_page_url); | 781 LaunchIEAndNavigate(context_menu_page_url); |
| 782 // Verify that the text value has been copied to clipboard. | 782 // Verify that the text value has been copied to clipboard. |
| 783 EXPECT_STREQ(kTextFieldInitValue.c_str(), GetClipboardText().c_str()); | 783 EXPECT_STREQ(kTextFieldInitValue.c_str(), GetClipboardText().c_str()); |
| 784 } | 784 } |
| 785 | 785 |
| 786 // Test CF text field context menu - paste. | 786 // Test CF text field context menu - paste. |
| 787 TEST_F(ContextMenuTest, CFTxtFieldPaste) { | 787 TEST_F(ContextMenuTest, DISABLED_CFTxtFieldPaste) { |
| 788 server_mock_.ExpectAndServeAnyRequests(CFInvocation::MetaTag()); | 788 server_mock_.ExpectAndServeAnyRequests(CFInvocation::MetaTag()); |
| 789 AccObjectMatcher txtfield_matcher(L"", L"editable text"); | 789 AccObjectMatcher txtfield_matcher(L"", L"editable text"); |
| 790 | 790 |
| 791 // Invoke "Paste" context menu item of text field. | 791 // Invoke "Paste" context menu item of text field. |
| 792 EXPECT_CALL(acc_observer_, OnAccDocLoad(_)) | 792 EXPECT_CALL(acc_observer_, OnAccDocLoad(_)) |
| 793 .WillOnce(testing::DoAll( | 793 .WillOnce(testing::DoAll( |
| 794 AccRightClick(txtfield_matcher), | 794 AccRightClick(txtfield_matcher), |
| 795 AccWatchForOneValueChange(&acc_observer_, txtfield_matcher))); | 795 AccWatchForOneValueChange(&acc_observer_, txtfield_matcher))); |
| 796 EXPECT_CALL(acc_observer_, OnMenuPopup(_)) | 796 EXPECT_CALL(acc_observer_, OnMenuPopup(_)) |
| 797 .WillOnce(AccLeftClick(AccObjectMatcher(L"Paste*"))); | 797 .WillOnce(AccLeftClick(AccObjectMatcher(L"Paste*"))); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 .WillOnce(AccLeftClick(AccObjectMatcher(L"Forward"))); | 963 .WillOnce(AccLeftClick(AccObjectMatcher(L"Forward"))); |
| 964 | 964 |
| 965 EXPECT_CALL(ie_mock_, OnLoad(IN_CF, StrEq(page3))) | 965 EXPECT_CALL(ie_mock_, OnLoad(IN_CF, StrEq(page3))) |
| 966 .WillOnce(CloseBrowserMock(&ie_mock_)); | 966 .WillOnce(CloseBrowserMock(&ie_mock_)); |
| 967 | 967 |
| 968 LaunchIENavigateAndLoop(page1, | 968 LaunchIENavigateAndLoop(page1, |
| 969 kChromeFrameVeryLongNavigationTimeoutInSeconds); | 969 kChromeFrameVeryLongNavigationTimeoutInSeconds); |
| 970 } | 970 } |
| 971 | 971 |
| 972 } // namespace chrome_frame_test | 972 } // namespace chrome_frame_test |
| OLD | NEW |