summaryrefslogtreecommitdiffstats
path: root/image/test/unit/test_async_notification_404.js
blob: 4949d282d482974e14990d464dd79628050ab833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Test to ensure that load/decode notifications are delivered completely and
 * asynchronously when dealing with a file that's a 404.
 */
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);
});

load('async_load_tests.js');