Bug 636197 - [SeaMonkey] mochitests-5: test_bug625187.html fails since landing; (Av3a) Skip test_bug625187.html when tab modal prompts are not enabled.
authorSerge Gautherie <sgautherie.bz@free.fr>
Mon, 28 Feb 2011 03:11:51 +0100
changeset 63156 7f5bdbca660ebd3973db37d06fc08094d335e66b
parent 63155 35b6854b0159c6a2a462ac9db346a84c53456861
child 63157 619daccbbf7cc38b68f8a2271e8ffc4e71039da4
push id19047
push usersgautherie.bz@free.fr
push dateMon, 28 Feb 2011 02:12:45 +0000
treeherdermozilla-central@7f5bdbca660e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs636197, 625187
milestone2.0b13pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 636197 - [SeaMonkey] mochitests-5: test_bug625187.html fails since landing; (Av3a) Skip test_bug625187.html when tab modal prompts are not enabled. r=dolske (a=test-only).
toolkit/components/prompts/test/test_bug625187.html
--- a/toolkit/components/prompts/test/test_bug625187.html
+++ b/toolkit/components/prompts/test/test_bug625187.html
@@ -41,17 +41,23 @@ function hasTabModalPrompts() {
          Services.prefs.getBoolPref(prefName);
 }
 
 function runtest()
 {
   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
 
   isTabModal = hasTabModalPrompts();
-  ok(isTabModal, "Test must run with tab modal prompts enabled.");
+
+  // This test depends on tab modal prompts being enabled.
+  if (!isTabModal) {
+    todo(false, "Test disabled when tab modal prompts are not enabled.");
+    SimpleTest.finish();
+    return;
+  }
 
   startCallbackTimer();
 
   var button = document.querySelector("button");
   dispatchMouseEvent(button, "click");
 
   startCallbackTimer();