Bug 718334 - Fix some tests to make them work with Skia. r=roc
authorMatt Woodrow <mwoodrow@mozilla.com>
Mon, 23 Jan 2012 14:08:17 +1300
changeset 86321 0719cb122243b96d38a6ba3be859ff95ca9907e1
parent 86320 975ec4955ef920a70ab94e1ce4022e4b85a66a8a
child 86322 2f9840b376a67eb19faeec0f38513283efadb067
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=1100 height=1100 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 = {