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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/npapi/npobject_set_exception.html ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // windows headers 5 // windows headers
6 #include <windows.h> 6 #include <windows.h>
7 #include <shellapi.h> 7 #include <shellapi.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 #include <comutil.h> 9 #include <comutil.h>
10 10
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 GURL url = GetTestUrl(L"npapi", L"npobject_released_on_destruction.html"); 387 GURL url = GetTestUrl(L"npapi", L"npobject_released_on_destruction.html");
388 NavigateToURL(url); 388 NavigateToURL(url);
389 389
390 scoped_refptr<BrowserProxy> window_proxy(automation()->GetBrowserWindow(0)); 390 scoped_refptr<BrowserProxy> window_proxy(automation()->GetBrowserWindow(0));
391 window_proxy->AppendTab(GURL(chrome::kAboutBlankURL)); 391 window_proxy->AppendTab(GURL(chrome::kAboutBlankURL));
392 392
393 scoped_refptr<TabProxy> tab_proxy(window_proxy->GetTab(0)); 393 scoped_refptr<TabProxy> tab_proxy(window_proxy->GetTab(0));
394 tab_proxy->Close(true); 394 tab_proxy->Close(true);
395 } 395 }
396
397 // Test that a dialog is properly created when a plugin throws an
398 // exception. Should be run for in and out of process plugins, but
399 // the more interesting case is out of process, where we must route
400 // the exception to the correct renderer.
401 TEST_F(NPAPITester, NPObjectSetException) {
402 GURL url = GetTestUrl(L"npapi", L"npobject_set_exception.html");
403 NavigateToURL(url);
404 WaitForFinish("npobject_set_exception", "1", url,
405 kTestCompleteCookie, kTestCompleteSuccess,
406 kShortWaitTimeout);
407 }
OLDNEW
« 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