Files
firefox/testing/web-platform/tests/websockets/binary/004.html
T
qiuzhong df5e35e0ef Bug 1507768 [wpt PR 14088] - Remove timout in async_test for websockets tests, a=testonly
Automatic update from web-platform-testsRemove timout in async_test for websockets tests

Remove all the timeout in async_test for websockets tests.
Affected tests: 21
Before: Pass: 6, Failed: 15
After: Pass: 6, Failed: 15
Related: #11120

--
Remove unnecessary parameters from async_test

The `null` and `undefined` are placeholders for the `property` argument.
They'll be no use when the `property` is removed from `async_test`
and should be removed.

--

wpt-commits: af5a03665cf9096c37a22fb70facb9af9c20334c, 5c8c1942220eaefe8aae34f9199fa2e467b08629
wpt-pr: 14088
2018-11-26 18:36:18 +00:00

27 lines
767 B
HTML

<!doctype html>
<title>WebSockets: Send/Receive ArrayBuffer, size greater than network array buffer</title>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=../constants.js?pipe=sub></script>
<meta name="variant" content="">
<meta name="variant" content="?wss">
<div id=log></div>
<script>
async_test(function(t){
var ws = new WebSocket(SCHEME_DOMAIN_PORT+'/echo');
var data = "";
var datasize = 100000;
ws.onopen = t.step_func(function(e) {
ws.binaryType = "arraybuffer";
data = new ArrayBuffer(datasize);
ws.send(data);
})
ws.onmessage = t.step_func(function(e) {
assert_equals(e.data.byteLength, datasize);
t.done();
})
});
</script>