Bug 499435 - mochitest-browser-chrome: browser_420786.js needs to report "success"; (Av1) Add a |todo(false, "...");|.
authorSerge Gautherie <sgautherie.bz@free.fr>
Mon, 29 Mar 2010 23:06:32 +0200
changeset 33764 82cb6ada7eff9776d00cf05115871554117847bc
parent 33763 043ff4072e0343938d2d2b66bfa541a0b60d3a32
child 33765 52991d0b8a5b871b506fa85048868f49e986436a
push id1174
push usersgautherie.bz@free.fr
push dateMon, 29 Mar 2010 21:07:05 +0000
bugs499435
milestone1.9.2.3pre
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();
 }