Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: netwerk/test/unit/xpcshell.toml
"use strict";
var valid_URIs = [
];
var invalid_URIs = [
];
function run_test() {
for (let i = 0; i < valid_URIs.length; i++) {
try {
Services.io.newURI(valid_URIs[i]);
} catch (e) {
do_throw("cannot create URI:" + valid_URIs[i]);
}
}
for (let i = 0; i < invalid_URIs.length; i++) {
try {
Services.io.newURI(invalid_URIs[i]);
do_throw("should throw: " + invalid_URIs[i]);
} catch (e) {
Assert.equal(e.result, Cr.NS_ERROR_MALFORMED_URI);
}
}
}