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

Side by Side Diff: chrome/test/ui/npapi_uitest.cpp

Issue 8775: This fixes bug http://code.google.com/p/chromium/issues/detail?id=3881, which... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « no previous file | webkit/glue/webplugin_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008, Google Inc. 1 // Copyright 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 TEST_F(NPAPITester, Arguments) { 70 TEST_F(NPAPITester, Arguments) {
71 std::wstring test_case = L"arguments.html"; 71 std::wstring test_case = L"arguments.html";
72 GURL url = GetTestUrl(L"npapi", test_case); 72 GURL url = GetTestUrl(L"npapi", test_case);
73 NavigateToURL(url); 73 NavigateToURL(url);
74 WaitForFinish("arguments", "1", url, kTestCompleteCookie, 74 WaitForFinish("arguments", "1", url, kTestCompleteCookie,
75 kTestCompleteSuccess, kShortWaitTimeout); 75 kTestCompleteSuccess, kShortWaitTimeout);
76 } 76 }
77 77
78 78
79 // Test invoking many plugins within a single page. 79 // Test invoking many plugins within a single page.
80 TEST_F(NPAPITester, DISABLED_ManyPlugins) { 80 TEST_F(NPAPITester, ManyPlugins) {
81 std::wstring test_case = L"many_plugins.html"; 81 std::wstring test_case = L"many_plugins.html";
82 GURL url(GetTestUrl(L"npapi", test_case)); 82 GURL url(GetTestUrl(L"npapi", test_case));
83 NavigateToURL(url); 83 NavigateToURL(url);
84 84
85 WaitForFinish("arguments", "1", url, kTestCompleteCookie, 85 WaitForFinish("arguments", "1", url, kTestCompleteCookie,
86 kTestCompleteSuccess, kShortWaitTimeout); 86 kTestCompleteSuccess, kShortWaitTimeout);
87 WaitForFinish("arguments", "2", url, kTestCompleteCookie, 87 WaitForFinish("arguments", "2", url, kTestCompleteCookie,
88 kTestCompleteSuccess, kShortWaitTimeout); 88 kTestCompleteSuccess, kShortWaitTimeout);
89 WaitForFinish("arguments", "3", url, kTestCompleteCookie, 89 WaitForFinish("arguments", "3", url, kTestCompleteCookie,
90 kTestCompleteSuccess, kShortWaitTimeout); 90 kTestCompleteSuccess, kShortWaitTimeout);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // Tests if a plugin has a non zero window rect. 196 // Tests if a plugin has a non zero window rect.
197 TEST_F(NPAPIVisiblePluginTester, VerifyPluginWindowRect) { 197 TEST_F(NPAPIVisiblePluginTester, VerifyPluginWindowRect) {
198 show_window_ = true; 198 show_window_ = true;
199 std::wstring test_case = L"verify_plugin_window_rect.html"; 199 std::wstring test_case = L"verify_plugin_window_rect.html";
200 GURL url = GetTestUrl(L"npapi", test_case); 200 GURL url = GetTestUrl(L"npapi", test_case);
201 NavigateToURL(url); 201 NavigateToURL(url);
202 WaitForFinish("checkwindowrect", "1", url, kTestCompleteCookie, 202 WaitForFinish("checkwindowrect", "1", url, kTestCompleteCookie,
203 kTestCompleteSuccess, kShortWaitTimeout); 203 kTestCompleteSuccess, kShortWaitTimeout);
204 } 204 }
205 205
206 TEST_F(NPAPIVisiblePluginTester, DISABLED_VerifyNPObjectLifetimeTest) { 206 TEST_F(NPAPIVisiblePluginTester, VerifyNPObjectLifetimeTest) {
207 if (!UITest::in_process_plugins() && !UITest::in_process_renderer()) { 207 if (!UITest::in_process_plugins() && !UITest::in_process_renderer()) {
208 show_window_ = true; 208 show_window_ = true;
209 std::wstring test_case = L"npobject_lifetime_test.html"; 209 std::wstring test_case = L"npobject_lifetime_test.html";
210 GURL url = GetTestUrl(L"npapi", test_case); 210 GURL url = GetTestUrl(L"npapi", test_case);
211 NavigateToURL(url); 211 NavigateToURL(url);
212 WaitForFinish("npobject_lifetime_test", "1", url, 212 WaitForFinish("npobject_lifetime_test", "1", url,
213 kTestCompleteCookie, kTestCompleteSuccess, 213 kTestCompleteCookie, kTestCompleteSuccess,
214 kShortWaitTimeout); 214 kShortWaitTimeout);
215 } 215 }
216 } 216 }
(...skipping 18 matching lines...) Expand all
235 } 235 }
236 236
237 TEST_F(NPAPIVisiblePluginTester, OpenPopupWindowWithPlugin) { 237 TEST_F(NPAPIVisiblePluginTester, OpenPopupWindowWithPlugin) {
238 GURL url = GetTestUrl(L"npapi", 238 GURL url = GetTestUrl(L"npapi",
239 L"get_javascript_open_popup_with_plugin.html"); 239 L"get_javascript_open_popup_with_plugin.html");
240 NavigateToURL(url); 240 NavigateToURL(url);
241 WaitForFinish("plugin_popup_with_plugin_target", "1", url, 241 WaitForFinish("plugin_popup_with_plugin_target", "1", url,
242 kTestCompleteCookie, kTestCompleteSuccess, 242 kTestCompleteCookie, kTestCompleteSuccess,
243 kShortWaitTimeout); 243 kShortWaitTimeout);
244 } 244 }
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698