gecko-dev/image/test/unit/test_async_notification_404.js

17 строки
581 B
JavaScript
Исходник Обычный вид История

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