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> |