Bug 1447035 - test to verify that multiple accelerated canvases on the same page work. r=dholbert
authorLee Salzman <lsalzman@mozilla.com>
Thu, 22 Mar 2018 14:34:29 -0400
changeset 409495 d3510733b9365dca3257603721658f8e89b6de2e
parent 409494 bdf1b3096b346d457ddea59c1ff7ff2babaefc99
child 409496 4cf06e778dcffd807842cc0ec36b1239bcf60202
push id101221
push userlsalzman@mozilla.com
push dateThu, 22 Mar 2018 18:34:47 +0000
treeherdermozilla-inbound@d3510733b936 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1447035
milestone61.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 1447035 - test to verify that multiple accelerated canvases on the same page work. r=dholbert MozReview-Commit-ID: 5C6gfzMFPhq
layout/reftests/canvas/1447035-1-ref.html
layout/reftests/canvas/1447035-1.html
layout/reftests/canvas/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/canvas/1447035-1-ref.html
@@ -0,0 +1,8 @@
+<html>
+<body>
+<canvas id="whiteCanvas" width="200" height="100" style="background-color: white;"></canvas>
+<br>
+<canvas id="purpleCanvas" width="200" height="100" style="background-color: purple;"></canvas>
+</body>
+</html>
+
new file mode 100644
--- /dev/null
+++ b/layout/reftests/canvas/1447035-1.html
@@ -0,0 +1,21 @@
+<html>
+<body onload="fillCanvas('white'); fillCanvas('purple');">
+<script>
+function fillCanvas(gradColor) {
+    var c = document.getElementById(gradColor + 'Canvas');
+    var ctx = c.getContext("2d");
+    // Create gradient
+    var grd = ctx.createRadialGradient(75,50,5,90,60,100);
+    grd.addColorStop(0,gradColor);
+    grd.addColorStop(1,gradColor);
+    // Fill with gradient
+    ctx.fillStyle = grd;
+    ctx.fillRect(0,0,200,100);
+}
+</script>
+<canvas id="whiteCanvas" width="200" height="100"></canvas>
+<br>
+<canvas id="purpleCanvas" width="200" height="100"></canvas>
+</body>
+</html>
+
--- a/layout/reftests/canvas/reftest.list
+++ b/layout/reftests/canvas/reftest.list
@@ -105,8 +105,9 @@ fuzzy-if(skiaContent,1,43) == 1201272-1.
 fuzzy-if(winWidget,1,578) == 1304353-text-global-alpha-2.html 1304353-text-global-alpha-2-ref.html
 fuzzy-if(winWidget,94,1575) fuzzy-if(cocoaWidget,1,24) == 1304353-text-global-composite-op-1.html 1304353-text-global-composite-op-1-ref.html
 
 == text-indent-1a.html text-indent-1-ref.html
 == text-indent-1b.html text-indent-1-ref.html
 
 == 1347147-1.html 1347147-1-ref.html
 == 1353000-1.html 1353000-1-ref.html
+== 1447035-1.html 1447035-1-ref.html