image/test/unit/test_async_notification_404.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/image/test/unit/test_async_notification_404.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +/*
     1.5 + * Test to ensure that load/decode notifications are delivered completely and
     1.6 + * asynchronously when dealing with a file that's a 404.
     1.7 + */
     1.8 +Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
     1.9 +
    1.10 +var ioService = Components.classes["@mozilla.org/network/io-service;1"]
    1.11 +                           .getService(Components.interfaces.nsIIOService);
    1.12 +
    1.13 +XPCOMUtils.defineLazyGetter(this, "uri", function() {
    1.14 +    return ioService.newURI("http://localhost:" +
    1.15 +                            server.identity.primaryPort +
    1.16 +                            "/async-notification-never-here.jpg", null, null);
    1.17 +});
    1.18 +
    1.19 +load('async_load_tests.js');

mercurial