mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fixes #8213: Implement Blob variant of WebSocket.send()
This commit is contained in:
parent
6c051ce828
commit
1d280289f1
7 changed files with 86 additions and 52 deletions
|
@ -1,9 +0,0 @@
|
|||
[Secure-Send-binary-blob.htm]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[W3C WebSocket API - Send binary data on a Secure WebSocket - Blob - Message should be received]
|
||||
expected: FAIL
|
||||
|
||||
[W3C WebSocket API - Send binary data on a Secure WebSocket - Blob - Connection should be closed]
|
||||
expected: NOTRUN
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
[Send-binary-blob.htm]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[W3C WebSocket API - Send binary data on a WebSocket - Blob - Message should be received]
|
||||
expected: FAIL
|
||||
|
||||
[W3C WebSocket API - Send binary data on a WebSocket - Blob - Connection should be closed]
|
||||
expected: NOTRUN
|
||||
|
|
@ -22,7 +22,9 @@
|
|||
|
||||
wsocket.addEventListener('open', testOpen.step_func(function (evt) {
|
||||
wsocket.binaryType = "blob";
|
||||
data = new ArrayBuffer(datasize);
|
||||
for (var i = 0; i < datasize; i++)
|
||||
data += String.fromCharCode(0);
|
||||
data = new Blob([data]);
|
||||
isOpenCalled = true;
|
||||
wsocket.send(data);
|
||||
testOpen.done();
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
|
||||
wsocket.addEventListener('open', testOpen.step_func(function (evt) {
|
||||
wsocket.binaryType = "blob";
|
||||
data = new ArrayBuffer(datasize);
|
||||
for (var i = 0; i < datasize; i++)
|
||||
data += String.fromCharCode(0);
|
||||
data = new Blob([data]);
|
||||
isOpenCalled = true;
|
||||
wsocket.send(data);
|
||||
testOpen.done();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue