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

Unified Diff: chrome/test/data/npapi/npobject_set_exception.html

Issue 8576001: Chromium does not throw the exception message by calling NPN_SetException from NPAPI plugin Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 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 | « no previous file | content/common/npobject_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/npapi/npobject_set_exception.html
===================================================================
--- chrome/test/data/npapi/npobject_set_exception.html (revision 109161)
+++ chrome/test/data/npapi/npobject_set_exception.html (working copy)
@@ -17,8 +17,14 @@
try {
plg.testThrowException();
} catch (e) {
- onSuccess("npobject_set_exception", 1);
+ /* try to match it with exception message thrown by TestNetscapePlugin */
+ if(e.message == "plugin object testThrowException SUCCESS"){
+ onSuccess("npobject_set_exception", 1)
+ }
+ else {
+ onFailure("npobject_set_exception", 1, "Unexpected exception message thrown")
+ }
}
</script>
</body>
-</html>
+</html>
« no previous file with comments | « no previous file | content/common/npobject_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698