From c0c4700ab42499bdbb87b0bc035d9b8299391bdd Mon Sep 17 00:00:00 2001 From: Jeff Gilbert Date: Mon, 12 Aug 2013 16:49:10 -0700 Subject: [PATCH] Bug 881681 - Add reftest for resizing a WebGL canvas. - r=dzbarsky --- content/canvas/test/reftest/reftest.list | 3 + .../test/reftest/webgl-resize-test.html | 58 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 content/canvas/test/reftest/webgl-resize-test.html diff --git a/content/canvas/test/reftest/reftest.list b/content/canvas/test/reftest/reftest.list index b024b84199d..88924a54a4c 100644 --- a/content/canvas/test/reftest/reftest.list +++ b/content/canvas/test/reftest/reftest.list @@ -33,6 +33,9 @@ pref(webgl.force-layers-readback,true) random-if(Android&&A pref(webgl.force-layers-readback,true) fuzzy-if(B2G,256,83) random-if(Android&&AndroidVersion<15) == webgl-clear-test.html?readback&__&alpha&preserve wrapper.html?green.png pref(webgl.force-layers-readback,true) fuzzy-if(B2G,256,83) random-if(Android&&AndroidVersion<15) == webgl-clear-test.html?readback&aa&alpha&preserve wrapper.html?green.png +# Check that resize works: +== webgl-resize-test.html wrapper.html?green.png + # Check orientation: random-if(Android&&AndroidVersion<15) == webgl-orientation-test.html?__&_____&________ wrapper.html?white-top-left.png random-if(Android&&AndroidVersion<15) == webgl-orientation-test.html?aa&_____&________ wrapper.html?white-top-left.png diff --git a/content/canvas/test/reftest/webgl-resize-test.html b/content/canvas/test/reftest/webgl-resize-test.html new file mode 100644 index 00000000000..5a0db7cd2dd --- /dev/null +++ b/content/canvas/test/reftest/webgl-resize-test.html @@ -0,0 +1,58 @@ + + + + + + + + + + + + + +