mirror of
https://github.com/servo/servo.git
synced 2025-09-04 03:58:23 +01:00
Update web-platform-tests.
This commit is contained in:
parent
74afd086d2
commit
71008d816d
62 changed files with 793 additions and 150 deletions
|
@ -10,13 +10,13 @@
|
|||
<div id="log"></div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var test = async_test("W3C WebSocket API - Create WebSocket - Close the Connection - close(undefined) - INVALID_ACCESS_ERR is thrown");
|
||||
var test = async_test();
|
||||
|
||||
var wsocket = CreateWebSocket(false, false, false);
|
||||
var isOpenCalled = false;
|
||||
|
||||
wsocket.addEventListener('open', test.step_func(function (evt) {
|
||||
assert_throws("INVALID_ACCESS_ERR", function () { wsocket.close(undefined) });
|
||||
wsocket.close(undefined);
|
||||
test.done();
|
||||
}), true);
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue