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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webplugin_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/plugin_tests.cc
===================================================================
--- webkit/tools/test_shell/plugin_tests.cc (revision 15255)
+++ webkit/tools/test_shell/plugin_tests.cc (working copy)
@@ -156,3 +156,20 @@
// No crash means we passed.
}
+
+#if defined(OS_WIN)
+// Tests that a hidden plugin is not shown. See http://crbug.com/8927
+TEST_F(PluginTest, HiddenPlugin) {
+ CopyTestPlugin();
+
+ FilePath test_html = data_dir_;
+ test_html = test_html.AppendASCII("plugins");
+ test_html = test_html.AppendASCII("hidden_plugin.html");
+ test_shell_->LoadURL(test_html.ToWStringHack().c_str());
+ test_shell_->WaitTestFinished();
+
+ std::wstring text;
+ test_shell_->webView()->GetMainFrame()->GetContentAsPlainText(10000, &text);
+ ASSERT_EQ(text, L"DONE");
+}
+#endif
« 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