Commit 4b1bc203 authored by Chris Cunningham's avatar Chris Cunningham Committed by Commit Bot

Remove totalFrameDelay test for getVideoPlaybackQuality()

This attribute was long ago cut from the spec and is not present in the
current VideoPlaybackQuality interface.

Bug: 644731
Change-Id: Icbea9bb3ce4eb9afb1530dde56a6f45930d7facc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1956496
Auto-Submit: Chrome Cunningham <chcunningham@chromium.org>
Reviewed-by: default avatarMatthew Wolenetz <wolenetz@chromium.org>
Commit-Queue: Chrome Cunningham <chcunningham@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723570}
parent c154e149
......@@ -70,49 +70,6 @@
test.done();
});
}, "Test HTMLVideoElement.getVideoPlaybackQuality() with MediaSource API");
mediasource_testafterdataloaded(function(test, mediaElement, mediaSource, segmentInfo, sourceBuffer, mediaData)
{
var previousQuality = mediaElement.getVideoPlaybackQuality();
var timeUpdateCount = 0;
var startTime = 0;
mediaElement.addEventListener("timeupdate", test.step_func(function (e)
{
var videoElement = e.target;
var newQuality = videoElement.getVideoPlaybackQuality();
var now = window.performance.now();
assert_greater_than_equal(newQuality.totalFrameDelay, 0, "totalFrameDelay >= 0");
assert_greater_than_equal(newQuality.totalFrameDelay, previousQuality.totalFrameDelay,
"totalFrameDelay increases monotonically");
assert_less_than(newQuality.totalFrameDelay, (now - startTime) / 1000,
"totalFrameDelay does not exceed the time elapsed since playback started");
previousQuality = newQuality;
timeUpdateCount++;
}));
mediaElement.addEventListener('error', test.unreached_func("Unexpected event 'error'"));
sourceBuffer.appendBuffer(mediaData);
test.expectEvent(sourceBuffer, 'updateend', 'sourceBuffer');
test.waitForExpectedEvents(function()
{
assert_false(sourceBuffer.updating, "updating");
mediaSource.endOfStream();
assert_less_than(mediaSource.duration, 10, "duration");
startTime = window.performance.now();
mediaElement.play().catch(test.unreached_func("Unexpected promise rejection"));
test.expectEvent(mediaElement, 'ended', 'mediaElement');
});
test.waitForExpectedEvents(function()
{
assert_greater_than(timeUpdateCount, 2, "timeUpdateCount");
test.done();
});
}, "Test the totalFrameDelay attribute of HTMLVideoElement.getVideoPlaybackQuality() with MediaSource API");
</script>
</body>
</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