Bug 1679074 [wpt PR 26628] - Add a WPT test for ICE error event creation, a=testonly

Automatic update from web-platform-tests
Add a WPT test for ICE error event creation

Bug: chromium:1151946
Change-Id: Ia11d3abdc9d11842995f74cfd5db6bb34fbac6e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2555011
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830548}

--

wpt-commits: 247d3ff9630ec53dcd9bfb3d98b2d760082878e9
wpt-pr: 26628
This commit is contained in:
Harald Alvestrand 2020-11-26 21:31:08 +00:00 коммит произвёл moz-wptsync-bot
Родитель 8b9be7ccb8
Коммит c6fb5f1ea1
1 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,26 @@
<!doctype html>
<meta charset="utf-8">
<html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
init = {
address: "168.3.4.5",
port: 4711,
url: "turn:turn.example.org",
errorCode: 703,
errorText: "Test error"
};
event = new RTCPeerConnectionIceErrorEvent('type', init);
assert_equals(event.type, 'type');
assert_equals(event.address, '168.3.4.5');
assert_equals(event.port, 4711);
assert_equals(event.url, "turn:turn.example.org");
assert_equals(event.errorCode, 703);
assert_equals(event.errorText, "Test error");
}, 'RTCPeerConnectionIceErrorEvent constructed from init parameters');
</script>
</html>