2010-07-29 01:52:59 +04:00
|
|
|
/*
|
|
|
|
* Test for asynchronous image load/decode notifications in the case that the image load works.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// A simple 3x3 png; rows go red, green, blue. Stolen from the PNG encoder test.
|
2019-08-29 15:59:57 +03:00
|
|
|
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|
|
|
|
2010-07-29 01:52:59 +04:00
|
|
|
var pngspec =
|
|
|
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAIAAADZSiLoAAAAEUlEQVQImWP4z8AAQTAamQkAhpcI+DeMzFcAAAAASUVORK5CYII=";
|
2019-08-29 15:59:57 +03:00
|
|
|
var ioService = Services.io;
|
2010-07-29 01:52:59 +04:00
|
|
|
var uri = ioService.newURI(pngspec);
|
|
|
|
|
|
|
|
load("async_load_tests.js");
|