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

Issue 790153002: Add test to verify durationchange event if the actual duration is wrong (Closed)

Created:
6 years ago by Srirama
Modified:
6 years ago
CC:
blink-reviews, feature-media-reviews_chromium.org, philipj_slow, eric.carlson_apple.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add test to verify durationchange event if the actual duration is wrong If the initially reported duration value is less than the actual file content, there is a durationchange event fired just before the ended event to correct the duration. This should land after https://codereview.chromium.org/740663002/ TEST: LayoutTests/media/video-durationchange-on-ended.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186995

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Reduced test file truncated.wemb size #

Total comments: 4

Patch Set 3 : Simplified test case, asserted duration change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -0 lines) Patch
A LayoutTests/media/content/truncated.webm View 1 Binary file 0 comments Download
A LayoutTests/media/video-durationchange-on-ended.html View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/media/video-durationchange-on-ended-expected.txt View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
Srirama
Added test case to verify durationchange event when the actual duration is less than the ...
6 years ago (2014-12-10 14:25:37 UTC) #4
philipj_slow
Try to make truncated.webm as small as possible while still serving its current purpose, so ...
6 years ago (2014-12-10 14:42:13 UTC) #5
Srirama
https://codereview.chromium.org/790153002/diff/40001/LayoutTests/media/video-durationchange-on-ended.html File LayoutTests/media/video-durationchange-on-ended.html (right): https://codereview.chromium.org/790153002/diff/40001/LayoutTests/media/video-durationchange-on-ended.html#newcode4 LayoutTests/media/video-durationchange-on-ended.html:4: <script src=media-file.js></script> On 2014/12/10 14:42:13, philipj wrote: > media-file.js ...
6 years ago (2014-12-10 14:45:21 UTC) #6
philipj_slow
https://codereview.chromium.org/790153002/diff/40001/LayoutTests/media/video-durationchange-on-ended.html File LayoutTests/media/video-durationchange-on-ended.html (right): https://codereview.chromium.org/790153002/diff/40001/LayoutTests/media/video-durationchange-on-ended.html#newcode9 LayoutTests/media/video-durationchange-on-ended.html:9: video = document.getElementById('video'); On 2014/12/10 14:45:20, Srirama wrote: > ...
6 years ago (2014-12-10 15:05:41 UTC) #7
Srirama
On 2014/12/10 15:05:41, philipj wrote: > https://codereview.chromium.org/790153002/diff/40001/LayoutTests/media/video-durationchange-on-ended.html > File LayoutTests/media/video-durationchange-on-ended.html (right): > > https://codereview.chromium.org/790153002/diff/40001/LayoutTests/media/video-durationchange-on-ended.html#newcode9 > ...
6 years ago (2014-12-10 15:23:08 UTC) #9
philipj_slow
LGTM with nits. https://codereview.chromium.org/790153002/diff/80001/LayoutTests/media/video-durationchange-on-ended.html File LayoutTests/media/video-durationchange-on-ended.html (right): https://codereview.chromium.org/790153002/diff/80001/LayoutTests/media/video-durationchange-on-ended.html#newcode10 LayoutTests/media/video-durationchange-on-ended.html:10: waitForEvent('durationchange'); Put these in the end, ...
6 years ago (2014-12-10 22:59:14 UTC) #10
Srirama
PTAL one final time. https://codereview.chromium.org/790153002/diff/80001/LayoutTests/media/video-durationchange-on-ended.html File LayoutTests/media/video-durationchange-on-ended.html (right): https://codereview.chromium.org/790153002/diff/80001/LayoutTests/media/video-durationchange-on-ended.html#newcode10 LayoutTests/media/video-durationchange-on-ended.html:10: waitForEvent('durationchange'); On 2014/12/10 22:59:14, philipj ...
6 years ago (2014-12-11 06:43:57 UTC) #11
philipj_slow
lgtm
6 years ago (2014-12-11 08:15:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/790153002/100001
6 years ago (2014-12-12 02:50:39 UTC) #14
commit-bot: I haz the power
6 years ago (2014-12-12 03:02:30 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186995

Powered by Google App Engine
This is Rietveld 408576698