Bug 718334 - Fix some tests to make them work with Skia. r=roc
☠☠ backed out by 98b0b403727d ☠ ☠
authorMatt Woodrow <mwoodrow@mozilla.com>
Thu, 19 Jan 2012 17:48:35 +1300
changeset 86093 0190782907ea9d3973b8c29d69c9c45dc9d80349
parent 86092 19c3a59d61adacda45d10e3315683a3c302f7ce6
child 86094 8763e1f49736cb2785123a9beda5d5cd5cf3ebdb
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs718334
milestone12.0a1
Bug 718334 - Fix some tests to make them work with Skia. r=roc
content/base/test/test_fileapi_slice.html
dom/tests/mochitest/bugs/test_bug389366.html
--- a/content/base/test/test_fileapi_slice.html
+++ b/content/base/test/test_fileapi_slice.html
@@ -8,18 +8,18 @@ https://bugzilla.mozilla.org/show_bug.cg
   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <script type="text/javascript" src="fileutils.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
 </head>
 
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=575946">Mozilla Bug 575946</a>
 <p id="display">
-  <canvas id=canvas width=1000 height=1000 hidden></canvas>
-  <canvas id=testcanvas hidden></canvas>
+  <canvas id=canvas width=1500 height=1500 hidden moz-opaque></canvas>
+  <canvas id=testcanvas hidden moz-opaque></canvas>
   <input id="fileList" type="file"></input>
 </p>
 <div id="content" style="display: none">
 </div>
 
 <pre id="test">
 <script class="testbody" type="text/javascript">
 var fileNum = 1;
--- a/dom/tests/mochitest/bugs/test_bug389366.html
+++ b/dom/tests/mochitest/bugs/test_bug389366.html
@@ -26,17 +26,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 SimpleTest.waitForExplicitFinish();
 
 function test()
 {
   // Draw to canvas1
   var canvas1 = document.getElementById("canvas1");
   var ctx1 = canvas1.getContext("2d");
 
-  ctx1.globalAlpha = 0.5;
+  ctx1.globalAlpha = 0.502;
   ctx1.fillStyle = "#FF0000";
   ctx1.fillRect(0, 0, 10, 10);
 
   var data1 = ctx1.getImageData(0,0,1,1).data;
   isDeeply(data1, [255, 0, 0, 128], "expected half-transparent red canvas 1");
 
   // half-transparent red 10x10 square
   var imgData = {