Bug 1241252, part 3 - Misc. cleanups in test_bug61098.html. r=mrbkap

Remove a redundant comment, check for the failure to throw an
exception, remove trailing whitespace.
This commit is contained in:
Andrew McCreight 2016-01-21 09:57:30 -08:00
parent ab3b2f5af4
commit eabaad6c5b

View File

@ -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");
}