Re: [webrtc-tests] RTCPeerConnection: match createDataChannel signature in spec (#5656)

 [View the complete job log.](https://travis-ci.org/w3c/web-platform-tests/jobs/225131371)

# Firefox (nightly channel) #
Testing web-platform-tests at revision 4d364ef9f0a62d5fc933a150a8924497eb07d6f6
Using browser at version BuildID 20170423100233; SourceStamp 070fc3c2f8400c09f1037f5444c3d33b499e7128
Starting 10 test iterations
All results were stable
## All results ##
<details>
<summary>1 test ran</summary>
<details>
<summary><a href="http://w3c-test.org/submissions/5656/webrtc/RTCPeerConnection-createDataChannel.html">/webrtc/RTCPeerConnection-createDataChannel.html</a></summary>


|                              Subtest                               | Results |                                                                                                                                                  Messages                                                                                                                                                  |
|--------------------------------------------------------------------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                                                    | OK      |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel required arguments`                             | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with closed connection`                         | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel defaults`                                       | FAIL    | `RTCDataChannel is not defined`                                                                                                                                                                                                                                                                            |
| `createDataChannel with label "foo"`                               | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with label null`                                | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with label undefined`                           | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with label lone surrogate`                      | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with ordered false`                             | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with ordered null/undefined`                    | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with maxPacketLifeTime 0`                       | FAIL    | `assert_equals: expected (number) 0 but got (undefined) undefined`                                                                                                                                                                                                                                         |
| `createDataChannel with maxRetransmits 0`                          | FAIL    | `assert_equals: expected (number) 0 but got (undefined) undefined`                                                                                                                                                                                                                                         |
| `createDataChannel with both maxPacketLifeTime and maxRetransmits` | FAIL    | `assert_throws: function "() => pc.createDataChannel('', {\n    maxPacketLifeTime: 0,\n    maxRetransmits: 0\n  })" threw object "InvalidParameterError: Both maxPacketLifeTime and maxRetransmits cannot be provided" that is not a DOMException SyntaxError: property "code" is equal to 0, expected 12` |
| `createDataChannel with protocol "foo"`                            | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with protocol null`                             | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with protocol undefined`                        | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with protocol lone surrogate`                   | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with negotiated true`                           | FAIL    | `assert_equals: expected (boolean) true but got (undefined) undefined`                                                                                                                                                                                                                                     |
| `createDataChannel with id -1`                                     | FAIL    | `assert_throws: function "() => pc.createDataChannel('', { id: id })" did not throw`                                                                                                                                                                                                                       |
| `createDataChannel with id 0`                                      | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with id 1`                                      | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with id 65534`                                  | PASS    |                                                                                                                                                                                                                                                                                                            |
| `createDataChannel with id 65535`                                  | FAIL    | `assert_throws: function "() => pc.createDataChannel('', { id: id })" did not throw`                                                                                                                                                                                                                       |
| `createDataChannel with id 65536`                                  | FAIL    | `assert_throws: function "() => pc.createDataChannel('', { id: id })" did not throw`                                                                                                                                                                                                                       |
| `createDataChannel with priority "high"`                           | FAIL    | `assert_equals: expected (string) "high" but got (undefined) undefined`                                                                                                                                                                                                                                    |

</details>
</details>

View on GitHub: https://github.com/w3c/web-platform-tests/pull/5656#issuecomment-296598705

Received on Monday, 24 April 2017 09:48:45 UTC