mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -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