Auto merge of #8218 - nikkisquared:master, r=eefriedman

I'm working on resolving https://github.com/servo/servo/issues/8213 as per the spec online and feedback in the servo channel. Note that currently I cannot build (and thus test) my code, so this is a bit of a rough first draft. I'd still like feedback on my progress, and I hope that there is another way for my code to be tested.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8218)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-05 10:24:27 +05:30
commit 021f441d24
7 changed files with 86 additions and 52 deletions

View file

@ -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

View file

@ -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

View file

@ -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();

View file

@ -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();