mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
ab3b2f5af4
commit
eabaad6c5b
@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=61098
|
|||||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=61098">Mozilla Bug 61098</a>
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=61098">Mozilla Bug 61098</a>
|
||||||
<p id="display">
|
<p id="display">
|
||||||
</p>
|
</p>
|
||||||
<div id="content" style="display: none">
|
<div id="content" style="display: none">
|
||||||
</div>
|
</div>
|
||||||
<pre id="test">
|
<pre id="test">
|
||||||
</pre>
|
</pre>
|
||||||
@ -313,10 +313,9 @@ function runtestsInner()
|
|||||||
w.showModalDialog("data:text/html,%3Cscript>window.close();%3C/script>")
|
w.showModalDialog("data:text/html,%3Cscript>window.close();%3C/script>")
|
||||||
is (promptState, void(0), "Wrong prompt state");
|
is (promptState, void(0), "Wrong prompt state");
|
||||||
|
|
||||||
// Test that showModalDialog() works normally and then gets blocked
|
|
||||||
// on the second call.
|
|
||||||
try {
|
try {
|
||||||
w.showModalDialog("data:text/html,%3Cscript>window.close();%3C/script>")
|
w.showModalDialog("data:text/html,%3Cscript>window.close();%3C/script>")
|
||||||
|
ok(false, "showModalDialog call should throw an exception");
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
is(e.name, "NS_ERROR_NOT_AVAILABLE", "Wrong exception");
|
is(e.name, "NS_ERROR_NOT_AVAILABLE", "Wrong exception");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user