| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 WebKit::WebMouseEvent input; | 150 WebKit::WebMouseEvent input; |
| 151 input.button = WebKit::WebMouseEvent::ButtonLeft; | 151 input.button = WebKit::WebMouseEvent::ButtonLeft; |
| 152 input.x = 50; | 152 input.x = 50; |
| 153 input.y = 50; | 153 input.y = 50; |
| 154 input.type = WebKit::WebInputEvent::MouseUp; | 154 input.type = WebKit::WebInputEvent::MouseUp; |
| 155 test_shell_->webView()->HandleInputEvent(&input); | 155 test_shell_->webView()->HandleInputEvent(&input); |
| 156 | 156 |
| 157 // No crash means we passed. | 157 // No crash means we passed. |
| 158 } | 158 } |
| 159 |
| 160 #if defined(OS_WIN) |
| 161 // Tests that a hidden plugin is not shown. See http://crbug.com/8927 |
| 162 TEST_F(PluginTest, HiddenPlugin) { |
| 163 CopyTestPlugin(); |
| 164 |
| 165 FilePath test_html = data_dir_; |
| 166 test_html = test_html.AppendASCII("plugins"); |
| 167 test_html = test_html.AppendASCII("hidden_plugin.html"); |
| 168 test_shell_->LoadURL(test_html.ToWStringHack().c_str()); |
| 169 test_shell_->WaitTestFinished(); |
| 170 |
| 171 std::wstring text; |
| 172 test_shell_->webView()->GetMainFrame()->GetContentAsPlainText(10000, &text); |
| 173 ASSERT_EQ(text, L"DONE"); |
| 174 } |
| 175 #endif |
| OLD | NEW |