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.
|
|
|
|
*/
|
2013-07-09 23:48:50 +04:00
|
|
|
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
|
|
|
|
var ioService = Components.classes["@mozilla.org/network/io-service;1"]
|
|
|
|
.getService(Components.interfaces.nsIIOService);
|
|
|
|
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "uri", function() {
|
|
|
|
return ioService.newURI("http://localhost:" +
|
|
|
|
server.identity.primaryPort +
|
|
|
|
"/async-notification-never-here.jpg", null, null);
|
|
|
|
});
|
2010-07-29 01:52:59 +04:00
|
|
|
|
|
|
|
load('async_load_tests.js');
|