summaryrefslogtreecommitdiffstats
path: root/toolkit/components/thumbnails
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-10-19 09:15:54 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-10-19 09:15:54 +0200
commit8c3d0aaca0d1db89a3a23665cfde43980c6191ed (patch)
tree08c8d4370db7134397aba0e54302f7a10b8e19a9 /toolkit/components/thumbnails
parentea5b5766a92bc13fc7eb9dc484e133a7a0638d50 (diff)
downloadUXP-8c3d0aaca0d1db89a3a23665cfde43980c6191ed.tar
UXP-8c3d0aaca0d1db89a3a23665cfde43980c6191ed.tar.gz
UXP-8c3d0aaca0d1db89a3a23665cfde43980c6191ed.tar.lz
UXP-8c3d0aaca0d1db89a3a23665cfde43980c6191ed.tar.xz
UXP-8c3d0aaca0d1db89a3a23665cfde43980c6191ed.zip
Fix a test (#670)
Diffstat (limited to 'toolkit/components/thumbnails')
-rw-r--r--toolkit/components/thumbnails/test/test_thumbnails_interfaces.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/toolkit/components/thumbnails/test/test_thumbnails_interfaces.js b/toolkit/components/thumbnails/test/test_thumbnails_interfaces.js
index 8272b2e06..a8fe51418 100644
--- a/toolkit/components/thumbnails/test/test_thumbnails_interfaces.js
+++ b/toolkit/components/thumbnails/test/test_thumbnails_interfaces.js
@@ -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");
}