Bug 499435 - mochitest-browser-chrome: browser_420786.js needs to report "success"; (Av1) Add a |todo(false, "...");|.
authorSerge Gautherie <sgautherie.bz@free.fr>
Wed, 03 Mar 2010 11:12:28 +0100
changeset 38879 3122859808014b4b568c4e478c9ae525fc37bb3a
parent 38878 ecf773a4b36fc6bd79b76f7e7a42e2c21ad10863
child 38880 f6cf621d9244f2fd36c7ba3dbcbdd0f290aabafd
push idunknown
push userunknown
push dateunknown
bugs499435
milestone1.9.3a3pre
Bug 499435 - mochitest-browser-chrome: browser_420786.js needs to report "success"; (Av1) Add a |todo(false, "...");|. r=gavin.sharp.
browser/components/shell/test/browser_420786.js
--- a/browser/components/shell/test/browser_420786.js
+++ b/browser/components/shell/test/browser_420786.js
@@ -64,19 +64,19 @@ function onPageLoad() {
 
   gBrowser.removeCurrentTab();
   finish();
 }
 
 function test() {
   var osString = Cc["@mozilla.org/xre/app-info;1"].
                  getService(Ci.nsIXULRuntime).OS;
-
-  // This test is Linux specific for now
-  if (osString != "Linux")
+  if (osString != "Linux") {
+    todo(false, "This test is Linux specific for now.");
     return;
+  }
 
   gBrowser.selectedTab = gBrowser.addTab();
   gBrowser.selectedBrowser.addEventListener("load", onPageLoad, true);
   content.location = "about:logo";
 
   waitForExplicitFinish();
 }