Bug 1262745 - Fix tests for Canvas CSS/SVG Filters. r=mstange
authorTobias Schneider <schneider@jancona.com>
Thu, 07 Apr 2016 11:16:00 -0400
changeset 292539 3bcd4e72fab8ef9f436d0a7bd03afde61e69db32
parent 292538 14eb89c4134db16845dedf5fddd2fb0a7f70497f
child 292540 d7d0413af62bb490f7d9386652eeea8bea7b81be
push id74873
push userryanvm@gmail.com
push dateSun, 10 Apr 2016 20:29:38 +0000
treeherdermozilla-inbound@3bcd4e72fab8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1262745
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1262745 - Fix tests for Canvas CSS/SVG Filters. r=mstange
dom/canvas/test/reftest/filters/global-alpha.html
dom/canvas/test/reftest/filters/reftest.list
dom/canvas/test/reftest/filters/units-em.html
dom/canvas/test/reftest/reftest.list
--- a/dom/canvas/test/reftest/filters/global-alpha.html
+++ b/dom/canvas/test/reftest/filters/global-alpha.html
@@ -2,16 +2,16 @@
 <html>
 <body>
 <canvas id="canvas" width="100" height="100"></canvas>
 <script>
 
 var canvas = document.getElementById('canvas');
 var ctx = canvas.getContext('2d');
 
-ctx.filter = 'drop-shadow(0 10px black)';
+ctx.filter = 'drop-shadow(0 10px #000)';
 ctx.globalAlpha = 0.5;
 ctx.fillStyle = '#0f0';
 ctx.fillRect(25, 25, 50, 40);
 
 </script>
 </body>
 </html>
--- a/dom/canvas/test/reftest/filters/reftest.list
+++ b/dom/canvas/test/reftest/filters/reftest.list
@@ -1,14 +1,14 @@
 default-preferences pref(canvas.filters.enabled,true)
 
 == default-color.html ref.html
 == drop-shadow.html ref.html
 == drop-shadow-transformed.html ref.html
-== global-alpha.html global-alpha-ref.html
+fuzzy-if(azureSkia,1,1500) == global-alpha.html global-alpha-ref.html
 == global-composite-operation.html global-composite-operation-ref.html
 == liveness.html ref.html
 == multiple-drop-shadows.html shadow-ref.html
 == shadow.html shadow-ref.html
 == subregion-fill-paint.html subregion-ref.html
 == subregion-stroke-paint.html subregion-ref.html
 == svg-bbox.html svg-bbox-ref.html
 == svg-inline.html ref.html
--- a/dom/canvas/test/reftest/filters/units-em.html
+++ b/dom/canvas/test/reftest/filters/units-em.html
@@ -5,13 +5,17 @@
 <script>
 
 var canvas = document.getElementById('canvas');
 var ctx = canvas.getContext('2d');
 
 ctx.font = '20px sans-serif';
 ctx.filter = 'drop-shadow(0 .5em black)';
 ctx.fillStyle = '#0f0';
-ctx.fillRect(25, 25, 25, 40);
+ctx.fillRect(25, 25, 50, 40);
 
 canvas.style.fontSize = '5px';
 ctx.font = '4em sans-serif';
 ctx.filter = 'drop-shadow(0 .5em black)';
+
+</script>
+</body>
+</html>
--- a/dom/canvas/test/reftest/reftest.list
+++ b/dom/canvas/test/reftest/reftest.list
@@ -154,8 +154,11 @@ skip-if(!winWidget) pref(webgl.disable-a
 # focus rings
 pref(canvas.focusring.enabled,true) skip-if(B2G) skip-if(cocoaWidget) skip-if(winWidget) needs-focus == drawFocusIfNeeded.html drawFocusIfNeeded-ref.html
 pref(canvas.customfocusring.enabled,true) skip-if(B2G) skip-if(cocoaWidget) skip-if(Android) skip-if(winWidget) fuzzy-if(gtkWidget,64,410) needs-focus == drawCustomFocusRing.html drawCustomFocusRing-ref.html
 
 # Check that captureStream() displays in a local video element
 == capturestream.html wrapper.html?green.png
 
 fuzzy-if(azureSkiaGL,1,2) fuzzy-if(Android,3,40) fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu),1,1) == 1177726-text-stroke-bounds.html 1177726-text-stroke-bounds-ref.html
+
+# Canvas Filter Reftests
+include filters/reftest.list