mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests to revision 4d96cccabc2feacd48e1dab9afc22b8af2225572
This commit is contained in:
parent
0d236288cc
commit
c66c6af0ba
1067 changed files with 63768 additions and 10900 deletions
|
@ -4,7 +4,7 @@
|
|||
<title>W3C WebSocket API - Create Secure WebSocket - binaryType is set to something other than blob/arraybuffer</title>
|
||||
<script type="text/javascript" src="/resources/testharness.js"></script>
|
||||
<script type="text/javascript" src="/resources/testharnessreport.js"></script>
|
||||
<script type="text/javascript" src="websocket.js"></script>
|
||||
<script type="text/javascript" src="websocket.js?pipe=sub"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
|
@ -14,21 +14,17 @@
|
|||
var testClose = async_test("W3C WebSocket API - Create WebSocket - set binaryType to something other than blob or arraybuffer - SYNTAX_ERR is returned - Connection should be closed");
|
||||
|
||||
var wsocket = CreateWebSocket(true, false, false);
|
||||
var isOpenCalled = false;
|
||||
|
||||
wsocket.addEventListener('open', testOpen.step_func(function (evt) {
|
||||
assert_equals(wsocket.binaryType, "blob");
|
||||
wsocket.binaryType = "notBlobOrArrayBuffer";
|
||||
assert_equals(wsocket.binaryType, "blob");
|
||||
wsocket.close();
|
||||
isOpenCalled = true;
|
||||
testOpen.done();
|
||||
}), true);
|
||||
|
||||
wsocket.addEventListener('close', testClose.step_func(function (evt) {
|
||||
assert_true(isOpenCalled, "WebSocket connection should be opened");
|
||||
assert_true(evt.wasClean, "wasClean should be true");
|
||||
clearTimeout(timeOut);
|
||||
testClose.done();
|
||||
}), true);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<title>Web Sockets IDL tests</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=/resources/webidl2/lib/webidl2.js></script>
|
||||
<script src=/resources/WebIDLParser.js></script>
|
||||
<script src=/resources/idlharness.js></script>
|
||||
|
||||
<h1>Web Sockets IDL tests</h1>
|
||||
|
|
|
@ -13,6 +13,6 @@ test(function() {
|
|||
|
||||
test(function() {
|
||||
assert_false("initCloseEvent" in CloseEvent.prototype);
|
||||
assert_false("initCloseEvent" in new CloseEvent());
|
||||
assert_false("initCloseEvent" in new CloseEvent('close'));
|
||||
}, "initCloseEvent");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue