Disable bug 419403 test on windows. r=sdwilsh
authoredward.lee@engineering.uiuc.edu
Tue, 26 Feb 2008 11:19:39 -0800
changeset 12274 4da84cc0af55b18efabb54d6e54d0f63c48ca1bc
parent 12273 08746c9abdce9506e256f17f67e3137412b96454
child 12275 c9179b42e0a51fefe329eb65cbfa19e800b8228f
push idunknown
push userunknown
push dateunknown
reviewerssdwilsh
bugs419403
milestone1.9b4pre
Disable bug 419403 test on windows. r=sdwilsh
toolkit/mozapps/downloads/tests/browser/Makefile.in
toolkit/mozapps/downloads/tests/browser/browser_multiword_search.js
--- a/toolkit/mozapps/downloads/tests/browser/Makefile.in
+++ b/toolkit/mozapps/downloads/tests/browser/Makefile.in
@@ -48,19 +48,24 @@ include $(topsrcdir)/config/rules.mk
 _BROWSER_FILES = \
   browser_basic_functionality.js \
   browser_bug_411172.js \
   browser_bug_394039.js \
   browser_bug_410289.js \
   browser_bug_413985.js \
   browser_bug_416303.js \
   browser_bug_406857.js \
-  browser_multiword_search.js \
   $(NULL)
 
 ifneq (,$(filter cocoa, $(MOZ_WIDGET_TOOLKIT)))
 _BROWSER_FILES += \
   browser_bug_411172_mac.js \
   $(NULL)
 endif
 
+ifneq ($(OS_ARCH), WINNT)
+_BROWSER_FILES += \
+  browser_multiword_search.js \
+  $(NULL)
+endif
+
 libs:: $(_BROWSER_FILES)
 	$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
--- 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();
-      default:
+      case 1:
         // List is being populated
         ok(downloadView.itemCount > 0, "Search found something");
 
         // Actually check for the two downloads
         testPhase++;
         return doTest();
-      case 4:
+      case 2:
         // 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 5:
+      case 3:
         // Done populating the one result
         ok(downloadView.itemCount == 1, "Found the single download");
 
         // We're done!
         return finish();
     }
   }, 0);