diff --git a/dom/tests/mochitest/bugs/test_bug61098.html b/dom/tests/mochitest/bugs/test_bug61098.html
index 02b11da1658..4c6ce967da4 100644
--- a/dom/tests/mochitest/bugs/test_bug61098.html
+++ b/dom/tests/mochitest/bugs/test_bug61098.html
@@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=61098
Mozilla Bug 61098
+
@@ -313,10 +313,9 @@ function runtestsInner()
w.showModalDialog("data:text/html,%3Cscript>window.close();%3C/script>")
is (promptState, void(0), "Wrong prompt state");
- // Test that showModalDialog() works normally and then gets blocked
- // on the second call.
try {
w.showModalDialog("data:text/html,%3Cscript>window.close();%3C/script>")
+ ok(false, "showModalDialog call should throw an exception");
} catch(e) {
is(e.name, "NS_ERROR_NOT_AVAILABLE", "Wrong exception");
}