Bustage fix for bug 419403 - do more timeouts
authoredward.lee@engineering.uiuc.edu
Tue, 26 Feb 2008 10:42:47 -0800
changeset 12273 08746c9abdce9506e256f17f67e3137412b96454
parent 12272 0945f5ce00e6d56f8eafe2c226cc5fef5d05ded4
child 12274 4da84cc0af55b18efabb54d6e54d0f63c48ca1bc
push idunknown
push userunknown
push dateunknown
bugs419403
milestone1.9b4pre
Bustage fix for bug 419403 - do more timeouts
toolkit/mozapps/downloads/tests/browser/browser_multiword_search.js
--- a/toolkit/mozapps/downloads/tests/browser/browser_multiword_search.js
+++ b/toolkit/mozapps/downloads/tests/browser/browser_multiword_search.js
@@ -103,35 +103,35 @@ function test()
       case 0:
         // Search for multiple words in any order in all places
         searchbox.value = "download super pimped 104 GB august 2";
         searchbox.doCommand();
 
         // Next phase eventually checks for two downloads
         testPhase++;
         return doTest();
-      case 1:
+      default:
         // List is being populated
         ok(downloadView.itemCount > 0, "Search found something");
 
         // Actually check for the two downloads
         testPhase++;
         return doTest();
-      case 2:
+      case 4:
         // Done populating the two items
         ok(downloadView.itemCount == 2, "Search matched both downloads");
 
         // Do partial word matches including the site
         searchbox.value = "agadak aug 2 downl 104";
         searchbox.doCommand();
 
         // Next phase checks for a single item
         testPhase++;
         return doTest();
-      case 3:
+      case 5:
         // Done populating the one result
         ok(downloadView.itemCount == 1, "Found the single download");
 
         // We're done!
         return finish();
     }
   }, 0);