From: mengli.zhang Date: Wed, 5 Jul 2017 20:32:57 +0000 (-0400) Subject: [common][mse][fix 1 tc issue] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65d23d81255168fb356a230d87918a96b1d4a839;p=test%2Ftct%2Fweb%2Fapi.git [common][mse][fix 1 tc issue] Change-Id: I0df6b87e0d94a0c02d28191530f109c756c2f45f Signed-off-by: mengli.zhang --- diff --git a/common/tct-mse-w3c-tests/mse/MediaSource_video_duration.html b/common/tct-mse-w3c-tests/mse/MediaSource_video_duration.html index 5dd2dbc78..6ee26c79c 100755 --- a/common/tct-mse-w3c-tests/mse/MediaSource_video_duration.html +++ b/common/tct-mse-w3c-tests/mse/MediaSource_video_duration.html @@ -49,10 +49,10 @@ t.step(function() { updateCb = function() { sourceBuffer.abort(); - mediaSource.duration = 5; - assert_equals(mediaSource.duration, 5, "mediaSource duration should be 5."); + mediaSource.duration = sourceBuffer.buffered.end(0); + assert_equals(mediaSource.duration, sourceBuffer.buffered.end(0), "mediaSource duration should be equals."); setTimeout(function(){ - assert_equals(video.duration, 5, "video duration should be 5."); + assert_equals(video.duration, sourceBuffer.buffered.end(0), "video duration should be equals."); t.done(); }, 0); }