tor-browser

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

test_async_notification.js (483B)


      1 /*
      2 * Test for asynchronous image load/decode notifications in the case that the image load works.
      3 */
      4 
      5 // A simple 3x3 png; rows go red, green, blue. Stolen from the PNG encoder test.
      6 
      7 var pngspec =
      8  "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAIAAADZSiLoAAAAEUlEQVQImWP4z8AAQTAamQkAhpcI+DeMzFcAAAAASUVORK5CYII=";
      9 var ioService = Services.io;
     10 
     11 // This is used in async_load_tests.js
     12 /* exported uri */
     13 var uri = ioService.newURI(pngspec);
     14 
     15 load("async_load_tests.js");