diff --git a/webrtc-extensions/RTCRtpTransceiver-headerExtensionControl.html b/webrtc-extensions/RTCRtpTransceiver-headerExtensionControl.html index 770aa49f052f5d..b6dc7da5d4076d 100644 --- a/webrtc-extensions/RTCRtpTransceiver-headerExtensionControl.html +++ b/webrtc-extensions/RTCRtpTransceiver-headerExtensionControl.html @@ -57,10 +57,10 @@ const transceiver = pc.addTransceiver('audio'); const capabilities = transceiver.getHeaderExtensionsToNegotiate(); capabilities[0].uri = "4711"; - assert_throws_dom("NotSupportedError", () => { + assert_throws_dom('InvalidModificationError', () => { transceiver.setHeaderExtensionsToNegotiate(capabilities); - }, 'transceiver should throw NotSupported when setting an unknown URI'); -}, `setHeaderExtensionsToNegotiate throws NotSupported on encountering unknown URI`); + }, 'transceiver should throw InvalidModificationError when setting an unknown URI'); +}, `setHeaderExtensionsToNegotiate throws InvalidModificationError on encountering unknown URI`); test(function(t) { const pc = new RTCPeerConnection(); @@ -72,7 +72,7 @@ }); ["sendonly", "recvonly", "inactive", "stopped"].map(direction => { capability.direction = direction; - assert_throws_dom("InvalidModificationError", () => { + assert_throws_dom('InvalidModificationError', () => { transceiver.setHeaderExtensionsToNegotiate(capabilities); }, `transceiver should throw InvalidModificationError when setting a mandatory header extension\'s direction to ${direction}`); });