Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Issue 574883002: Fix media layout tests that made invalid assumptions about timeupdate. (Closed)

Created:
6 years, 3 months ago by scherkus (not reviewing)
Modified:
6 years, 2 months ago
CC:
blink-reviews, feature-media-reviews_chromium.org, eric.carlson_apple.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix media layout tests that made invalid assumptions about timeupdate. Blink r182039 removed unnecessary checks against firing timeupdate events in response to ece894570c5f32f7f404f4c8da9ff8b9f03b75cd, which made it possible for the currentTime value to remain the same for brief periods of time. The media controller tests were accidentally relying on the timeupdate event that gets automatically fired when MediaController issues a seek. Instead, we should wait for that seek to complete before issuing play() and waiting for the timeupdate event that follows. The audio-concurrent-supported.html test picked a magic number of timeupdate events (two, to be exact) before inspecting whether currentTime increased past zero. Again, because we now fire non-periodic timeupdate events reliably, this test is picking up on the wrong events to make it's judgement on what currentTime should be. BUG=414649 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182122

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase + fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -15 lines) Patch
M LayoutTests/TestExpectations View 1 1 chunk +0 lines, -5 lines 0 comments Download
M LayoutTests/media/audio-concurrent-supported.html View 1 chunk +2 lines, -8 lines 0 comments Download
M LayoutTests/media/audio-concurrent-supported-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/media/media-controller-effective-playback-rate.html View 1 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/media/media-controller-effective-playback-rate-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/media/media-controller-playbackrate.html View 1 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/media/media-controller-playbackrate-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
scherkus (not reviewing)
acolwell: mind sanity checking things here?
6 years, 3 months ago (2014-09-16 21:32:53 UTC) #2
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/574883002/diff/1/LayoutTests/media/media-controller-effective-playback-rate.html File LayoutTests/media/media-controller-effective-playback-rate.html (right): https://codereview.chromium.org/574883002/diff/1/LayoutTests/media/media-controller-effective-playback-rate.html#newcode29 LayoutTests/media/media-controller-effective-playback-rate.html:29: // Wait for bringing up to speed step ...
6 years, 3 months ago (2014-09-16 21:46:13 UTC) #3
scherkus (not reviewing)
thanks! https://codereview.chromium.org/574883002/diff/1/LayoutTests/media/media-controller-effective-playback-rate.html File LayoutTests/media/media-controller-effective-playback-rate.html (right): https://codereview.chromium.org/574883002/diff/1/LayoutTests/media/media-controller-effective-playback-rate.html#newcode29 LayoutTests/media/media-controller-effective-playback-rate.html:29: // Wait for bringing up to speed step ...
6 years, 3 months ago (2014-09-16 22:13:31 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/574883002/20001
6 years, 3 months ago (2014-09-16 22:14:56 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 182122
6 years, 3 months ago (2014-09-16 23:34:01 UTC) #7
philipj_slow
scherkus@, should any of these changes be reverted now? At least media/audio-concurrent-supported.html looks like it ...
6 years, 3 months ago (2014-09-23 11:14:03 UTC) #8
scherkus (not reviewing)
6 years, 2 months ago (2014-09-23 18:26:44 UTC) #9
Message was sent while issue was closed.
On 2014/09/23 11:14:03, philipj wrote:
> scherkus@, should any of these changes be reverted now? At least
> media/audio-concurrent-supported.html looks like it could be simplified.

agreed -- https://codereview.chromium.org/600513002/

Powered by Google App Engine
This is Rietveld 408576698