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

Unified Diff: LayoutTests/http/tests/media/media-source/mediasource-sourcebuffer-mode.html

Issue 178763006: Enable round-tripping and updating of SourceBuffer timestamp offset (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rework to depend on Chromium side landing first and pass double* timestampOffset (no bool) Created 6 years, 10 months 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/webkitmediasource-objects.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-sourcebuffer-mode.html
diff --git a/LayoutTests/http/tests/media/media-source/mediasource-sourcebuffer-mode.html b/LayoutTests/http/tests/media/media-source/mediasource-sourcebuffer-mode.html
index c3d41ef8203d5f413a28727ecf967854e7ae00db..33650c3e77de7344912279e1b335d35ecf92a324 100644
--- a/LayoutTests/http/tests/media/media-source/mediasource-sourcebuffer-mode.html
+++ b/LayoutTests/http/tests/media/media-source/mediasource-sourcebuffer-mode.html
@@ -102,7 +102,8 @@
assert_equals(sourceBuffer.mode, 'segments');
sourceBuffer.mode = 'segments'; // No exception should occur.
assert_equals(sourceBuffer.timestampOffset, 0.0);
- sourceBuffer.timestampOffset = 10.0; // No exception should occur.
+ sourceBuffer.timestampOffset = 10.123456789; // No exception should occur.
+ assert_equals(sourceBuffer.timestampOffset, 10.123456789); // Super-precise offsets should round-trip.
// Append first part of media segment.
test.expectEvent(sourceBuffer, 'updateend', 'Partial media segment append ended.');
@@ -116,7 +117,7 @@
assert_throws('InvalidStateError',
function() { sourceBuffer.mode = 'segments'; },
'Setting valid sourceBuffer.mode while still parsing media segment threw InvalidStateError.');
- assert_equals(sourceBuffer.timestampOffset, 10.0);
+ assert_equals(sourceBuffer.timestampOffset, 10.123456789);
assert_throws('InvalidStateError',
function() { sourceBuffer.timestampOffset = 20.0; },
'Setting valid sourceBuffer.timestampOffset while still parsing media segment threw InvalidStateError.');
@@ -131,7 +132,7 @@
assert_false(sourceBuffer.updating, 'updating attribute is false');
assert_equals(sourceBuffer.mode, 'segments');
sourceBuffer.mode = 'segments'; // No exception should occur.
- assert_equals(sourceBuffer.timestampOffset, 10.0);
+ assert_equals(sourceBuffer.timestampOffset, 10.123456789);
sourceBuffer.timestampOffset = 20.0; // No exception should occur.
test.done();
});
« no previous file with comments | « no previous file | LayoutTests/http/tests/media/media-source/webkitmediasource-objects.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698