Revision ac4966fa4dcda8e22ade19e03ed6690de7b9cece authored by Henrik Boström on 28 March 2018, 15:48:04 UTC, committed by Chromium WPT Sync on 28 March 2018, 15:48:04 UTC
This exposes RTCRtpSender.getStats() in JavaScript (behind flag) which implements the stats selection algorithm[1] for senders. [1] https://w3c.github.io/webrtc-pc/#dfn-stats-selection-algorithm Bug: 680172 Change-Id: I8117c87f475d1c78fa3301fc2d821f0c3a21281f Reviewed-on: https://chromium-review.googlesource.com/975306 Commit-Queue: Henrik Boström <hbos@chromium.org> Reviewed-by: Philip Jägenstedt <foolip@chromium.org> Reviewed-by: Harald Alvestrand <hta@chromium.org> Reviewed-by: Taylor Brandstetter <deadbeef@chromium.org> Cr-Commit-Position: refs/heads/master@{#546493}
1 parent f9c1a50
parallel-cursors-upgrade.html
<!doctype html>
<meta charset="utf-8">
<meta name="timeout" content="long">
<title>IndexedDB: Parallel iteration of cursors in upgradeneeded</title>
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support-promises.js"></script>
<script>
'use strict';
for (let cursorCount of [2, 10, 100, 1000, 10000]) {
promise_test(testCase => {
return createDatabase(testCase, (database, transaction) => {
const store = database.createObjectStore('cache', { keyPath: 'key' });
store.put({ key: '42' });
const promises = [];
for (let j = 0; j < 2; j += 1) {
const promise = new Promise((resolve, reject) => {
let request = null;
for (let i = 0; i < cursorCount / 2; i += 1) {
request = store.openCursor();
}
let continued = false;
request.onsuccess = testCase.step_func(() => {
const cursor = request.result;
if (!continued) {
assert_equals(cursor.key, '42');
assert_equals(cursor.value.key, '42');
continued = true;
cursor.continue();
} else {
assert_equals(cursor, null);
resolve();
}
});
request.onerror = () => reject(request.error);
});
promises.push(promise);
}
return Promise.all(promises);
}).then(database => {
database.close();
});
}, `${cursorCount} cursors`);
}
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...