Bug 1050788 - Add test for complex path that is entirely clipped out. r=roc
authorMatt Woodrow <mwoodrow@mozilla.com>
Wed, 27 Aug 2014 10:21:20 +1200
changeset 201721 5ee7a98d1e2fe5fd290f23bad457a1b098331fa5
parent 201720 c9e48790f6fa33dd04dfa1ce0009a5658dc2a636
child 201722 c3474588bddd7fb10b32bd9b6b931b1a4efb506f
push id48247
push usermwoodrow@mozilla.com
push dateTue, 26 Aug 2014 22:28:53 +0000
treeherdermozilla-inbound@c3474588bddd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1050788
milestone34.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 1050788 - Add test for complex path that is entirely clipped out. r=roc
layout/reftests/bugs/1050788-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1050788-1.html
@@ -0,0 +1,34 @@
+<html class="reftest-wait">
+<head>
+  <script>
+    function doTest() {
+      var c = document.getElementById('c');
+      var ctx = c.getContext('2d');
+
+      ctx.transform(1, 0, 0, 1, 0.5, 0.5);
+
+      ctx.moveTo(0,0);
+      ctx.lineTo(100,0);
+      ctx.lineTo(100, 100);
+      ctx.lineTo(0,100);
+      ctx.closePath();
+
+      ctx.moveTo(0,0);
+      ctx.lineTo(100,0);
+      ctx.lineTo(100, 100);
+      ctx.lineTo(0,100);
+      ctx.closePath();
+
+      ctx.clip('evenodd');
+
+      ctx.fillStyle = 'red';
+      ctx.fillRect(0,0,400,400);
+
+      document.documentElement.removeAttribute("class");
+  }
+  </script>
+</head>
+<body onload="doTest()">
+  <canvas id="c" width="400" height="400"></canvas>
+</body>
+</body></html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1816,10 +1816,11 @@ pref(layout.css.sticky.enabled,true) == 
 fuzzy-if(/^Windows\x20NT\x205\.1/.test(http.oscpu),255,1) == 1013054-1.html 1013054-1-ref.html
 pref(layout.css.will-change.enabled,true) == 1018522-1.html 1018522-1-ref.html
 pref(browser.display.use_document_fonts,0) == 1022481-1.html 1022481-1-ref.html
 == 1022612-1.html 1022612-1-ref.html
 == 1024473-1.html 1024473-1-ref.html
 == 1042104-1.html 1042104-1-ref.html
 == 1044198-1.html 1044198-1-ref.html
 == 1049499-1.html 1049499-1-ref.html
+== 1050788-1.html about:blank
 == 1053035-1-flex.html 1053035-1-ref.html
 test-pref(layout.css.grid.enabled,true) == 1053035-1-grid.html 1053035-1-ref.html