Commit 5143aa95 authored by Harald Alvestrand's avatar Harald Alvestrand Committed by Commit Bot

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/+/2555011Reviewed-by: default avatarHenrik Boström <hbos@chromium.org>
Commit-Queue: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830548}
parent ef0e1ebe
<!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>
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