mirror of
https://github.com/servo/servo.git
synced 2025-08-27 16:18:21 +01:00
Update web-platform-tests to revision be959408023fe02cf79abe70f6018598a7004a88
This commit is contained in:
parent
a76777b115
commit
761c8bc2a9
171 changed files with 2434 additions and 907 deletions
|
@ -12,7 +12,6 @@
|
|||
|
||||
// The following helper functions are called from RTCPeerConnection-helper.js:
|
||||
// assert_session_desc_equals
|
||||
// test_state_change_event
|
||||
|
||||
/*
|
||||
4.3.2. Interface Definition
|
||||
|
@ -58,8 +57,10 @@
|
|||
*/
|
||||
promise_test(t=> {
|
||||
const pc = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc.close());
|
||||
|
||||
test_state_change_event(t, pc, ['have-local-offer', 'stable']);
|
||||
const states = [];
|
||||
pc.addEventListener('signalingstatechange', () => states.push(pc.signalingState));
|
||||
|
||||
return pc.createOffer()
|
||||
.then(offer => pc.setLocalDescription(offer))
|
||||
|
@ -76,6 +77,8 @@
|
|||
assert_equals(pc.localDescription, null);
|
||||
assert_equals(pc.pendingLocalDescription, null);
|
||||
assert_equals(pc.currentLocalDescription, null);
|
||||
|
||||
assert_array_equals(states, ['have-local-offer', 'stable']);
|
||||
});
|
||||
}, 'setLocalDescription(rollback) from have-local-offer state should reset back to stable state');
|
||||
|
||||
|
@ -94,12 +97,14 @@
|
|||
*/
|
||||
promise_test(t => {
|
||||
const pc = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc.close());
|
||||
return promise_rejects(t, 'InvalidStateError',
|
||||
pc.setLocalDescription({ type: 'rollback' }));
|
||||
}, `setLocalDescription(rollback) from stable state should reject with InvalidStateError`);
|
||||
|
||||
promise_test(t => {
|
||||
const pc = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc.close());
|
||||
return pc.createOffer({ offerToReceiveAudio: true })
|
||||
.then(offer =>
|
||||
pc.setRemoteDescription(offer)
|
||||
|
@ -113,6 +118,7 @@
|
|||
|
||||
promise_test(t => {
|
||||
const pc = new RTCPeerConnection();
|
||||
t.add_cleanup(() => pc.close());
|
||||
return pc.createOffer()
|
||||
.then(offer => pc.setLocalDescription(offer))
|
||||
.then(() => pc.setLocalDescription({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue