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:
Stephen McGruer 2020-05-04 09:58:43 +00:00 committed by moz-wptsync-bot
parent a5e8c83b45
commit 8f89fd951f
3 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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]));
}