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

Unified Diff: chrome/test/ui/npapi_uitest.cc

Issue 375005: When a plugin calls NPN_SetException, pass the exception along to every rende... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/npapi/npobject_set_exception.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/npapi_uitest.cc
===================================================================
--- chrome/test/ui/npapi_uitest.cc (revision 32119)
+++ chrome/test/ui/npapi_uitest.cc (working copy)
@@ -393,3 +393,15 @@
scoped_refptr<TabProxy> tab_proxy(window_proxy->GetTab(0));
tab_proxy->Close(true);
}
+
+// Test that a dialog is properly created when a plugin throws an
+// exception. Should be run for in and out of process plugins, but
+// the more interesting case is out of process, where we must route
+// the exception to the correct renderer.
+TEST_F(NPAPITester, NPObjectSetException) {
+ GURL url = GetTestUrl(L"npapi", L"npobject_set_exception.html");
+ NavigateToURL(url);
+ WaitForFinish("npobject_set_exception", "1", url,
+ kTestCompleteCookie, kTestCompleteSuccess,
+ kShortWaitTimeout);
+}
« no previous file with comments | « chrome/test/data/npapi/npobject_set_exception.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698