Commit 232359e5 authored by Philipp Hancke's avatar Philipp Hancke Committed by Chromium LUCI CQ

webrtc wpt: fix order of assert

BUG=chromium:1164376

Change-Id: Ic9321b007e652f8d6b0ca40e490645735296317b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2616411Reviewed-by: default avatarHarald Alvestrand <hta@chromium.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Cr-Commit-Position: refs/heads/master@{#841614}
parent 912de9fa
......@@ -7,6 +7,6 @@ PASS A stopped inactive transceiver should generate an inactive m-section in the
PASS If a transceiver is stopped locally, setting a locally generated answer should still work
PASS If a transceiver is stopped remotely, setting a locally generated answer should still work
PASS If a transceiver is stopped, transceivers, senders and receivers should disappear after offer/answer
FAIL If a transceiver is stopped, transceivers should end up in state stopped assert_equals: expected "recvonly" but got "stopped"
FAIL If a transceiver is stopped, transceivers should end up in state stopped assert_equals: expected "stopped" but got "recvonly"
Harness: the test ran to completion.
......@@ -148,8 +148,8 @@ promise_test(async (t) => {
pc2Transceiver = pc2.getTransceivers()[0];
pc1.getTransceivers()[0].stop();
await exchangeOfferAnswer(pc1, pc2);
assert_equals('stopped', pc1Transceiver.direction);
assert_equals('stopped', pc2Transceiver.direction);
assert_equals(pc1Transceiver.direction, 'stopped');
assert_equals(pc2Transceiver.direction, 'stopped');
}, 'If a transceiver is stopped, transceivers should end up in state stopped');
</script>
......@@ -6,6 +6,6 @@ PASS A stopped inactive transceiver should generate an inactive m-section in the
PASS If a transceiver is stopped locally, setting a locally generated answer should still work
PASS If a transceiver is stopped remotely, setting a locally generated answer should still work
PASS If a transceiver is stopped, transceivers, senders and receivers should disappear after offer/answer
FAIL If a transceiver is stopped, transceivers should end up in state stopped assert_equals: expected "recvonly" but got "stopped"
FAIL If a transceiver is stopped, transceivers should end up in state stopped assert_equals: expected "stopped" but got "recvonly"
Harness: the test ran to completion.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment