Mypal68/testing/xpcshell/example/unit/test_check_nsIException.js
2022-04-16 07:41:55 +03:00

14 lines
370 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* import-globals-from ../../head.js */
function run_test() {
let env = Cc["@mozilla.org/process/environment;1"].getService(
Ci.nsIEnvironment
);
do_check_throws_nsIException(function() {
env.QueryInterface(Ci.nsIFile);
}, "NS_NOINTERFACE");
}