Bug 788999 followup, reenable test_fileapi_slice.html on OS X 10.8 since whatever caused it to hang two years ago seems to be gone
authorPhil Ringnalda <philringnalda@gmail.com>
Sun, 18 Jan 2015 19:53:21 -0800
changeset 224464 13834f7f5c6c1d69ce32c709f9d4418b015e26c8
parent 224463 750730cebb40d9698239739c49e8a7a7c881c2b2
child 224465 0d0cdc390be2927fdd2981329efb9ccdab4fc15b
push id54239
push userphilringnalda@gmail.com
push dateMon, 19 Jan 2015 03:53:52 +0000
treeherdermozilla-inbound@13834f7f5c6c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs788999
milestone38.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 788999 followup, reenable test_fileapi_slice.html on OS X 10.8 since whatever caused it to hang two years ago seems to be gone
dom/base/test/test_fileapi_slice.html
--- a/dom/base/test/test_fileapi_slice.html
+++ b/dom/base/test/test_fileapi_slice.html
@@ -17,21 +17,16 @@ https://bugzilla.mozilla.org/show_bug.cg
   <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">
-const isOSXMtnLion = navigator.userAgent.indexOf("Mac OS X 10.8") != -1;
-
-if (isOSXMtnLion) {
-  todo(false, "Mountain Lion doesn't like this test (bug 788999)");
-} else {
 var fileNum = 1;
 SimpleTest.waitForExplicitFinish();
 
 // Create files containing data we'll test with. We'll want long
 // strings to ensure they span multiple buffers while loading
 
 // Create a decent-sized image
 cx = $("canvas").getContext('2d');
@@ -131,12 +126,11 @@ expectedTestCount++;
 
 // image past end
 var imgfile = createFileWithData(testBinaryData + fileData);
 is(imgfile.size, size + testBinaryData.length, "correct file size (past end)");
 var img = new Image;
 img.src = URL.createObjectURL(imgfile.slice(testBinaryData.length, testBinaryData.length + size + 1000));
 img.onload = imageLoadHandler;
 expectedTestCount++;
-}
 </script>
 </pre>
 </body> </html>