diff options
Diffstat (limited to 'image/test/unit/test_async_notification.js')
-rw-r--r-- | image/test/unit/test_async_notification.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/image/test/unit/test_async_notification.js b/image/test/unit/test_async_notification.js new file mode 100644 index 0000000000..524af5ecb2 --- /dev/null +++ b/image/test/unit/test_async_notification.js @@ -0,0 +1,13 @@ +/* + * 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. +const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); + +var pngspec = + "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAIAAADZSiLoAAAAEUlEQVQImWP4z8AAQTAamQkAhpcI+DeMzFcAAAAASUVORK5CYII="; +var ioService = Services.io; +var uri = ioService.newURI(pngspec); + +load("async_load_tests.js"); |