Implements HTMLDialogElement#close

This commit is contained in:
clstl 2016-08-13 16:17:03 +03:00
parent d29f61af31
commit aa5edd1118
5 changed files with 30 additions and 21 deletions

View file

@ -36,10 +36,9 @@
was_queued = false;
test(function(){
assert_throws("INVALID_STATE_ERR", function() {
d1.close();
});
}, "close() on a <dialog> that doesn't have an open attribute throws an InvalidStateError exception");
d1.close("closedialog");
assert_equals(d1.returnValue, "");
}, "close() on a <dialog> that doesn't have an open attribute aborts the steps");
test(function(){
assert_true(d2.open);