2010-07-29 01:52:59 +04:00
|
|
|
/*
|
|
|
|
* Test to ensure that load/decode notifications are delivered completely and
|
|
|
|
* asynchronously when dealing with a file that's a 404.
|
|
|
|
*/
|
2018-01-30 02:20:18 +03:00
|
|
|
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
|
2013-07-09 23:48:50 +04:00
|
|
|
|
2018-02-28 20:51:33 +03:00
|
|
|
var ioService = Cc["@mozilla.org/network/io-service;1"]
|
|
|
|
.getService(Ci.nsIIOService);
|
2013-07-09 23:48:50 +04:00
|
|
|
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "uri", function() {
|
|
|
|
return ioService.newURI("http://localhost:" +
|
|
|
|
server.identity.primaryPort +
|
2017-01-09 22:27:26 +03:00
|
|
|
"/async-notification-never-here.jpg");
|
2013-07-09 23:48:50 +04:00
|
|
|
});
|
2010-07-29 01:52:59 +04:00
|
|
|
|
|
|
|
load('async_load_tests.js');
|