tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_async_notification_404.js (528B)


      1 /*
      2 * Test to ensure that load/decode notifications are delivered completely and
      3 * asynchronously when dealing with a file that's a 404.
      4 */
      5 /* import-globals-from async_load_tests.js */
      6 
      7 var ioService = Services.io;
      8 
      9 // This is used in async_load_tests.js
     10 // eslint-disable-next-line no-unused-vars
     11 ChromeUtils.defineLazyGetter(this, "uri", function () {
     12  return ioService.newURI(
     13    "http://localhost:" +
     14      server.identity.primaryPort +
     15      "/async-notification-never-here.jpg"
     16  );
     17 });
     18 
     19 load("async_load_tests.js");