blob: dc1fbe22f004311ade2d37a227c2f014784936b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* Test to ensure that load/decode notifications are delivered completely and
* asynchronously when dealing with a file that's a 404.
*/
/* import-globals-from async_load_tests.js */
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"
);
var ioService = Services.io;
XPCOMUtils.defineLazyGetter(this, "uri", function() {
return ioService.newURI(
"http://localhost:" +
server.identity.primaryPort +
"/async-notification-never-here.jpg"
);
});
load("async_load_tests.js");
|