fune/testing/xpcshell/example/unit/test_check_nsIException.js

10 lines
287 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() {
do_check_throws_nsIException(function() {
Services.env.QueryInterface(Ci.nsIFile);
}, "NS_NOINTERFACE");
}