https://github.com/web-platform-tests/wpt
Revision f30b60b6c146a653f31ae5c92297a9639d16d450 authored by Henrik Boström on 29 March 2018, 13:27:36 UTC, committed by Blink WPT Bot on 29 March 2018, 13:47:10 UTC
This exposes RTCRtpReceiver.getStats() in JavaScript (behind flag) which
implements the stats selection algorithm[1] for receivers.

(This is similar to RTCRtpSender.getStats():
https://chromium-review.googlesource.com/c/chromium/src/+/975306)

[1] https://w3c.github.io/webrtc-pc/#dfn-stats-selection-algorithm

Bug: 680172
Change-Id: I8049a52fcaa3c2bd51e5541c7149d9b3aee57e3d
Reviewed-on: https://chromium-review.googlesource.com/976121
Commit-Queue: Henrik Boström <hbos@chromium.org>
Reviewed-by: Taylor Brandstetter <deadbeef@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546801}
1 parent 8efcf2b
Raw File
Tip revision: f30b60b6c146a653f31ae5c92297a9639d16d450 authored by Henrik Boström on 29 March 2018, 13:27:36 UTC
RTCRtpReceiver.getStats() in blink added behind flag.
Tip revision: f30b60b
event-onerror-default-manual.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Notification.onerror (permission=default)</title>
<link rel="author" title="Apple Inc." href="http://www.apple.com/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
setup({ explicit_timeout: true })
if (Notification.permission != "default") {
    alert("TEST NOT RUN. Change your browser settings so that the notification"
        + " settings for this origin are completely cleared/removed, (so your"
        + " browser default settings are used for this origin), and then reload"
        + " this page.")
} else {
    async_test(function (t) {
        t.step(function () {
            var notification = new Notification("New Email Received")
            notification.onerror = function(e) {
                assert_equals(Object.prototype.toString.call(e), "[object Event]")
                assert_equals(e.type, "error")
                Notification.requestPermission()
                t.done()
            }
        })
    })
}
</script>
back to top