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

Side by Side Diff: webkit/tools/test_shell/plugin_tests.cc

Issue 106008: Fix Flash window in Analytics being incorrectly visible.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « webkit/glue/webplugin_impl.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) 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
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
OLDNEW
« no previous file with comments | « webkit/glue/webplugin_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698