diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 21:49:04 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 21:49:04 +0200 |
commit | 39dac57259cff8b61db0b22cb2ad0a8adb02692e (patch) | |
tree | 52a026cc8c22793eb17fd0f5e22adce1ae08a1dd /toolkit/components/thumbnails/test/test_thumbnails_interfaces.js | |
parent | a1cce3b2b00bbd9f4983013ddd8934a7bccb9e99 (diff) | |
parent | c2d9ab62f3d097c9e0e00184cab1f546554f5eaa (diff) | |
download | UXP-39dac57259cff8b61db0b22cb2ad0a8adb02692e.tar UXP-39dac57259cff8b61db0b22cb2ad0a8adb02692e.tar.gz UXP-39dac57259cff8b61db0b22cb2ad0a8adb02692e.tar.lz UXP-39dac57259cff8b61db0b22cb2ad0a8adb02692e.tar.xz UXP-39dac57259cff8b61db0b22cb2ad0a8adb02692e.zip |
Merge branch 'redwood' into 28.9-platform
Diffstat (limited to 'toolkit/components/thumbnails/test/test_thumbnails_interfaces.js')
-rw-r--r-- | toolkit/components/thumbnails/test/test_thumbnails_interfaces.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/toolkit/components/thumbnails/test/test_thumbnails_interfaces.js b/toolkit/components/thumbnails/test/test_thumbnails_interfaces.js deleted file mode 100644 index a8fe51418..000000000 --- a/toolkit/components/thumbnails/test/test_thumbnails_interfaces.js +++ /dev/null @@ -1,25 +0,0 @@ -// tests to check that moz-page-thumb URLs correctly resolve as file:// URLS -"use strict"; - -const Cu = Components.utils; -const Cc = Components.classes; -const Cr = Components.results; -const Ci = Components.interfaces; - -Cu.import("resource://gre/modules/Services.jsm"); - -// need profile so that PageThumbsStorage can resolve the path to the underlying file -do_get_profile(); - -function run_test() { - // first check the protocol handler implements the correct interface - let handler = Services.io.getProtocolHandler("moz-page-thumb"); - ok(handler instanceof Ci.nsISubstitutingProtocolHandler, - "moz-page-thumb handler provides substituting interface"); - - // then check that the file URL resolution works - let uri = Services.io.newURI("moz-page-thumb://thumbnail/?url=http%3A%2F%2Fwww.mozilla.org%2F", - 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"); -} |