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

Unified Diff: LayoutTests/http/tests/media/media-source/mediasource-append-buffer.html

Issue 742653002: MSE: Add layout test for 'decode' error via an algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use (length - 1)/2 to get the harf index Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/media/media-source/mediasource-errors.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/media/media-source/mediasource-append-buffer.html
diff --git a/LayoutTests/http/tests/media/media-source/mediasource-append-buffer.html b/LayoutTests/http/tests/media/media-source/mediasource-append-buffer.html
index 16b0d919cb52ed726bd7b33258ba07d5f31080b7..ce6044796f26c2f5ac54c0e8e7d9c655fd95ff53 100644
--- a/LayoutTests/http/tests/media/media-source/mediasource-append-buffer.html
+++ b/LayoutTests/http/tests/media/media-source/mediasource-append-buffer.html
@@ -324,7 +324,7 @@
mediasource_testafterdataloaded(function(test, mediaElement, mediaSource, segmentInfo, sourceBuffer, mediaData)
{
var initSegment = MediaSourceUtil.extractSegmentData(mediaData, segmentInfo.init);
- var halfIndex = (initSegment.length + 1) / 2;
+ var halfIndex = (initSegment.length - 1) / 2;
var partialInitSegment = initSegment.subarray(0, halfIndex);
var remainingInitSegment = initSegment.subarray(halfIndex);
var mediaSegment = MediaSourceUtil.extractSegmentData(mediaData, segmentInfo.media[0]);
@@ -363,7 +363,7 @@
{
var initSegment = MediaSourceUtil.extractSegmentData(mediaData, segmentInfo.init);
var mediaSegment = MediaSourceUtil.extractSegmentData(mediaData, segmentInfo.media[0]);
- var halfIndex = (mediaSegment.length + 1) / 2;
+ var halfIndex = (mediaSegment.length - 1) / 2;
var partialMediaSegment = mediaSegment.subarray(0, halfIndex);
var remainingMediaSegment = mediaSegment.subarray(halfIndex);
« no previous file with comments | « no previous file | LayoutTests/http/tests/media/media-source/mediasource-errors.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698