diff --git a/image/test/mochitest/12M-pixels-1.png b/image/test/mochitest/12M-pixels-1.png new file mode 100644 index 00000000000..f802dd53968 Binary files /dev/null and b/image/test/mochitest/12M-pixels-1.png differ diff --git a/image/test/mochitest/12M-pixels-2.png b/image/test/mochitest/12M-pixels-2.png new file mode 100644 index 00000000000..a6d430442e7 Binary files /dev/null and b/image/test/mochitest/12M-pixels-2.png differ diff --git a/image/test/mochitest/6M-pixels.png b/image/test/mochitest/6M-pixels.png new file mode 100644 index 00000000000..c813d8b569d Binary files /dev/null and b/image/test/mochitest/6M-pixels.png differ diff --git a/image/test/mochitest/mochitest.ini b/image/test/mochitest/mochitest.ini index 380c578fdd4..bce87015f88 100644 --- a/image/test/mochitest/mochitest.ini +++ b/image/test/mochitest/mochitest.ini @@ -1,5 +1,4 @@ [DEFAULT] -skip-if = buildapp == 'b2g' support-files = INT32_MIN.bmp animated-gif2.gif @@ -54,10 +53,13 @@ support-files = short_header.gif source.png over.png + 6M-pixels.png + 12M-pixels-1.png + 12M-pixels-2.png [test_ImageContentLoaded.html] [test_bug399925.html] -skip-if = e10s +skip-if = e10s || buildapp == 'b2g' #Bug 969779 - should set preference via SpecialPowers.pushPrefEnv() # [test_bug435296.html] # disabled - See bug 578591 [test_bug466586.html] @@ -84,3 +86,5 @@ skip-if = e10s [test_drawDiscardedImage.html] [test_error_events.html] [test_short_gif_header.html] +[test_image_buffer_limit.html] +run-if = toolkit == "gonk" diff --git a/image/test/mochitest/test_image_buffer_limit.html b/image/test/mochitest/test_image_buffer_limit.html new file mode 100644 index 00000000000..0a23fa0552e --- /dev/null +++ b/image/test/mochitest/test_image_buffer_limit.html @@ -0,0 +1,94 @@ + + + +
+