Bug 614474 - ERROR TEST-UNEXPECTED-FAIL | /tests/dom/indexedDB/test/test_bfcache.html | Test timed out; (Cv1) Disable this test on (all) Windows 2003 as a workaround.
authorSerge Gautherie <sgautherie.bz@free.fr>
Mon, 31 Jan 2011 22:30:39 +0100
changeset 61667 1c6e36066e735a20661126bd0a825bcdd55ec45b
parent 61666 fe7b943b7a25fac7d8756a48bf4ca1d869b161c8
child 61668 a7287af461b576568e8fab40de9cfd15b26d9385
push id18439
push usersgautherie.bz@free.fr
push dateMon, 31 Jan 2011 21:36:28 +0000
treeherdermozilla-central@1c6e36066e73 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs614474
milestone2.0b11pre
first release with
nightly win64
1c6e36066e73 / 4.0b11pre / 20110131135035 / files
nightly linux32
nightly linux64
nightly mac
nightly win32
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly win64
Bug 614474 - ERROR TEST-UNEXPECTED-FAIL | /tests/dom/indexedDB/test/test_bfcache.html | Test timed out; (Cv1) Disable this test on (all) Windows 2003 as a workaround. r=jonas a=(test only).
dom/indexedDB/test/test_bfcache.html
--- a/dom/indexedDB/test/test_bfcache.html
+++ b/dom/indexedDB/test/test_bfcache.html
@@ -4,16 +4,29 @@
 -->
 <html>
 <head>
   <title>Indexed Database Property Test</title>
 
   <script type="text/javascript" src="/MochiKit/packed.js"></script>
   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
+  <script type="text/javascript">
+    function _runTest() {
+      // Work around Win2k3 debug tinderboxes that may be too slow to complete this test. (Bug 614474)
+      if (navigator.oscpu == "Windows NT 5.2") {
+        todo(false, "Test disabled on (too slow debug) Windows 2003 (tinderboxes)");
+
+        finishTest();
+        return;
+      }
+
+      runTest();
+    }
+  </script>
   <script type="text/javascript;version=1.7">
     var gOrigMaxTotalViewers = undefined;
     function setCachePref(enabled) {
       netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
       var prefBranch = Components.classes["@mozilla.org/preferences-service;1"]
                                  .getService(Components.interfaces.nsIPrefBranch);
       if (enabled) {
         is(typeof gOrigMaxTotalViewers, "undefined", "don't double-enable bfcache");
@@ -53,13 +66,13 @@
       finishTest();
       yield;
     }
   </script>
   <script type="text/javascript;version=1.7" src="helpers.js"></script>
 
 </head>
 
-<body onload="runTest();">
+<body onload="_runTest();">
   <iframe id="iframe"></iframe>
 </body>
 
 </html>