Bug 1151821 - Test whether simple canvas globalCompositeOperators work when a clip is set. r=jrmuizel, a=sledru
authorBas Schouten <bschouten@mozilla.com>
Fri, 10 Apr 2015 07:09:31 +0200
changeset 260299 1bbb50c6a494
parent 260298 987c18b686eb
child 260300 c1f04200ed98
push id741
push userryanvm@gmail.com
push date2015-04-27 20:01 +0000
treeherdermozilla-release@d10817faa571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, sledru
bugs1151821
milestone38.0
Bug 1151821 - Test whether simple canvas globalCompositeOperators work when a clip is set. r=jrmuizel, a=sledru
layout/reftests/canvas/1151821-1-ref.html
layout/reftests/canvas/1151821-1.html
layout/reftests/canvas/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/canvas/1151821-1-ref.html
@@ -0,0 +1,20 @@
+<!docytpe html>
+<html>
+<head>
+<meta charset="UTF-8" />
+<script>
+window.onload=function(){
+
+var c=document.getElementById("myCanvas").getContext("2d");
+
+c.fillStyle="green";
+
+c.fillRect(0, 0,100,100);
+
+}
+</script>
+</head>
+<body>
+<canvas id="myCanvas" height=50 width=100></canvas>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/canvas/1151821-1.html
@@ -0,0 +1,26 @@
+<!docytpe html>
+<html>
+<head>
+<meta charset="UTF-8" />
+<script>
+window.onload=function(){
+
+var c=document.getElementById("myCanvas").getContext("2d");
+
+c.fillStyle = "green";
+
+c.fillRect(0, 0,100,100);
+
+c.fillStyle = "red";
+c.globalCompositeOperation = "destination-over";
+c.rect(0, 0, 100, 100);
+c.clip();
+c.fillRect(0, 0, 100, 100);
+
+}
+</script>
+</head>
+<body>
+<canvas id="myCanvas" height=50 width=100></canvas>
+</body>
+</html>
--- a/layout/reftests/canvas/reftest.list
+++ b/layout/reftests/canvas/reftest.list
@@ -97,8 +97,10 @@ fails-if(OSX==1006) == 672646-alpha-radi
 == transformed-path.html transformed-path.html
 
 == 749467-1.html 749467-1-ref.html
 
 # You get a little bit of rounding fuzz on OSX from transforming the paths between user space and device space
 fuzzy-if(azureQuartz,2,128) fuzzy-if(d2d,12,21) == 784573-1.html 784573-1-ref.html
 
 == 802658-1.html 802658-1-ref.html
+
+== 1151821-1.html 1151821-1-ref.html