1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/image/test/unit/test_async_notification.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,10 @@ 1.4 +/* 1.5 + * Test for asynchronous image load/decode notifications in the case that the image load works. 1.6 + */ 1.7 + 1.8 +// A simple 3x3 png; rows go red, green, blue. Stolen from the PNG encoder test. 1.9 +var pngspec = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAIAAADZSiLoAAAAEUlEQVQImWP4z8AAQTAamQkAhpcI+DeMzFcAAAAASUVORK5CYII="; 1.10 +var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); 1.11 +var uri = ioService.newURI(pngspec, null, null); 1.12 + 1.13 +load('async_load_tests.js');