michael@0: /* michael@0: * Test to ensure that load/decode notifications are delivered completely and michael@0: * asynchronously when dealing with a file that's a 404. michael@0: */ michael@0: Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); michael@0: michael@0: var ioService = Components.classes["@mozilla.org/network/io-service;1"] michael@0: .getService(Components.interfaces.nsIIOService); michael@0: michael@0: XPCOMUtils.defineLazyGetter(this, "uri", function() { michael@0: return ioService.newURI("http://localhost:" + michael@0: server.identity.primaryPort + michael@0: "/async-notification-never-here.jpg", null, null); michael@0: }); michael@0: michael@0: load('async_load_tests.js');