Auto merge of #7947 - jimberlage:7856/buffered-amount, r=jdm

Adds bufferedAmount to Websocket (fixes #7856).

This adds a readonly bufferedAmount attribute to Servo's websocket implementation.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7947)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-10-16 12:56:44 -06:00
commit 0e4abddd37
19 changed files with 44 additions and 114 deletions

View file

@ -8037,9 +8037,6 @@
[WebSocket interface: existence and properties of interface object]
expected: FAIL
[WebSocket interface: attribute bufferedAmount]
expected: FAIL
[WebSocket interface: attribute extensions]
expected: FAIL

View file

@ -1,8 +0,0 @@
[Secure-Send-65K-data.htm]
type: testharness
[W3C WebSocket API - Send 65K data on a Secure WebSocket - Connection should be opened]
expected: FAIL
[W3C WebSocket API - Send 65K data on a Secure WebSocket - Connection should be closed]
expected: FAIL

View file

@ -1,8 +0,0 @@
[Secure-Send-data.htm]
type: testharness
[W3C WebSocket API - Send data on a Secure WebSocket - Connection should be opened]
expected: FAIL
[W3C WebSocket API - Send data on a Secure WebSocket - Connection should be closed]
expected: FAIL

View file

@ -1,8 +0,0 @@
[Secure-Send-paired-surrogates.htm]
type: testharness
[W3C WebSocket API - Send paired surrogates data on a Secure WebSocket - Connection should be opened]
expected: FAIL
[W3C WebSocket API - Send paired surrogates data on a Secure WebSocket - Connection should be closed]
expected: FAIL

View file

@ -1,8 +0,0 @@
[Secure-Send-unicode-data.htm]
type: testharness
[W3C WebSocket API - Send unicode data on a Secure WebSocket - Connection should be opened]
expected: FAIL
[W3C WebSocket API - Send unicode data on a Secure WebSocket - Connection should be closed]
expected: FAIL

View file

@ -1,8 +0,0 @@
[Send-0byte-data.htm]
type: testharness
[W3C WebSocket API - Send 0 byte data on a WebSocket - Connection should be opened]
expected: FAIL
[W3C WebSocket API - Send 0 byte data on a WebSocket - Connection should be closed]
expected: FAIL

View file

@ -1,8 +0,0 @@
[Send-65K-data.htm]
type: testharness
[W3C WebSocket API - Send 65K data on a WebSocket - Connection should be opened]
expected: FAIL
[W3C WebSocket API - Send 65K data on a WebSocket - Connection should be closed]
expected: FAIL

View file

@ -1,8 +0,0 @@
[Send-data.htm]
type: testharness
[W3C WebSocket API - Send data on a WebSocket - Connection should be opened]
expected: FAIL
[W3C WebSocket API - Send data on a WebSocket - Connection should be closed]
expected: FAIL

View file

@ -1,8 +0,0 @@
[Send-paired-surrogates.htm]
type: testharness
[W3C WebSocket API - Send (paired surrogates) data on a WebSocket - Connection should be opened]
expected: FAIL
[W3C WebSocket API - Send (paired surrogates) data on a WebSocket - Connection should be closed]
expected: FAIL

View file

@ -1,8 +0,0 @@
[Send-unicode-data.htm]
type: testharness
[W3C WebSocket API - Send unicode data on a WebSocket - Connection should be opened]
expected: FAIL
[W3C WebSocket API - Send unicode data on a WebSocket - Connection should be closed]
expected: FAIL

View file

@ -6,9 +6,6 @@
[WebSocket interface: existence and properties of interface prototype object]
expected: FAIL
[WebSocket interface: attribute bufferedAmount]
expected: FAIL
[WebSocket interface: attribute extensions]
expected: FAIL
@ -18,9 +15,6 @@
[Stringification of new WebSocket("ws://foo")]
expected: FAIL
[WebSocket interface: new WebSocket("ws://foo") must inherit property "bufferedAmount" with the proper type (6)]
expected: FAIL
[WebSocket interface: new WebSocket("ws://foo") must inherit property "extensions" with the proper type (10)]
expected: FAIL

View file

@ -1,5 +0,0 @@
[bufferedAmount-deleting.html]
type: testharness
[WebSockets: delete bufferedAmount]
expected: FAIL

View file

@ -1,5 +0,0 @@
[bufferedAmount-getting.html]
type: testharness
[WebSockets: bufferedAmount after send()ing]
expected: FAIL

View file

@ -1,5 +0,0 @@
[bufferedAmount-initial.html]
type: testharness
[WebSockets: getting bufferedAmount]
expected: FAIL

View file

@ -1,5 +0,0 @@
[bufferedAmount-large.html]
type: testharness
[WebSockets: bufferedAmount for 65K data]
expected: FAIL

View file

@ -1,5 +0,0 @@
[bufferedAmount-readonly.html]
type: testharness
[WebSockets: setting bufferedAmount]
expected: FAIL

View file

@ -1,5 +0,0 @@
[bufferedAmount-unicode.html]
type: testharness
[WebSockets: bufferedAmount for unicode data]
expected: FAIL