1 // Test based on submitted one from Peter B Shalimoff
5 var test = function (s, funcName) {
7 Arg.prototype.toString = function () {
8 info("Testing " + funcName + " with null args");
11 // create a generic arg lits of null, -1, and 10 nulls
13 for (var i = 0; i < 10; ++i) {
16 var up = Cc["@mozilla.org/network/url-parser;1?auth=maybe"].getService(
20 up[funcName].apply(up, args);
23 Assert.ok(true); // make sure it throws an exception instead of crashing
39 funcs.forEach(function (f) {