mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-16 12:17:34 +09:00
Fix a test (#670)
This commit is contained in:
parent
23c04adbe8
commit
a00d3a4d9e
1 changed files with 0 additions and 6 deletions
|
|
@ -22,10 +22,4 @@ function run_test() {
|
|||
null, null);
|
||||
ok(uri instanceof Ci.nsIFileURL, "moz-page-thumb:// is a FileURL");
|
||||
ok(uri.file, "This moz-page-thumb:// object is backed by a file");
|
||||
|
||||
// and check that the error case works as specified
|
||||
let bad = Services.io.newURI("moz-page-thumb://wronghost/?url=http%3A%2F%2Fwww.mozilla.org%2F",
|
||||
null, null);
|
||||
Assert.throws(() => handler.resolveURI(bad), /NS_ERROR_NOT_AVAILABLE/i,
|
||||
"moz-page-thumb object with wrong host must not resolve to a file path");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue