mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1633057 [wpt PR 23244] - Replace assert_precondition in webrtc, a=testonly
Automatic update from web-platform-tests Replace assert_precondition in webrtc (#23244) assert_precondition is deprecated (see https://github.com/web-platform-tests/rfcs/blob/master/rfcs/assert_precondition_rename.md). -- wpt-commits: ae7042f3f796e9f280ce621f8f6ad23f32d363cc wpt-pr: 23244
This commit is contained in:
parent
a5e8c83b45
commit
8f89fd951f
@ -763,5 +763,3 @@ ASSERT-PRECONDITION: infrastructure/expected-fail/precondition.html
|
||||
ASSERT-PRECONDITION: infrastructure/expected-fail/precondition-in-setup.html
|
||||
ASSERT-PRECONDITION: infrastructure/expected-fail/precondition-in-promise.html
|
||||
ASSERT-PRECONDITION: resources/testharness.js
|
||||
ASSERT-PRECONDITION: webrtc/protocol/crypto-suite.https.html
|
||||
ASSERT-PRECONDITION: webrtc-extensions/RTCRtpSynchronizationSource-captureTimestamp.html
|
||||
|
@ -88,7 +88,7 @@ async function checkAbsCaptureTimeAndExchangeAnswer(caller, callee,
|
||||
if (answer.sdp.match(extmap) == null) {
|
||||
// We expect that absolute capture time RTP header extension is answered.
|
||||
// But if not, there is no need to proceed with the test.
|
||||
assert_precondition(!absCaptureTimeAnswered, 'Absolute capture time RTP ' +
|
||||
assert_false(absCaptureTimeAnswered, 'Absolute capture time RTP ' +
|
||||
'header extension is not answered');
|
||||
} else {
|
||||
if (!absCaptureTimeAnswered) {
|
||||
|
@ -45,7 +45,7 @@ const acceptableValues = {
|
||||
};
|
||||
|
||||
function verifyStat(name, transportStats) {
|
||||
assert_precondition(typeof transportStats !== 'undefined');
|
||||
assert_true(typeof transportStats !== 'undefined');
|
||||
assert_true(name in transportStats, 'Value present:');
|
||||
assert_true(acceptableValues[name].has(transportStats[name]));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user