<!-- webkit-test-runner [ ShowModalDialogEnabled=true ] -->
<!DOCTYPE html>
<script src="../../../resources/js-test-pre.js"></script>
<script>
description("Checks that the first parameter to window.showModalDialog() is mandatory");

shouldThrow("window.showModalDialog()", "'TypeError: Not enough arguments'");
</script>
<script src="../../../resources/js-test-post.js"></script>
