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

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

Issue 419673007: Adding more MSE tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing debug messages Created 6 years, 5 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
Index: LayoutTests/http/tests/media/media-source/mediasource-appendwindow.html
diff --git a/LayoutTests/http/tests/media/media-source/mediasource-appendwindow.html b/LayoutTests/http/tests/media/media-source/mediasource-appendwindow.html
index e78e0fece61767e608f826995bd696d2df636d80..2ba416461d4002f4e9e0dfcd8b4127389799c174 100644
--- a/LayoutTests/http/tests/media/media-source/mediasource-appendwindow.html
+++ b/LayoutTests/http/tests/media/media-source/mediasource-appendwindow.html
@@ -53,10 +53,18 @@
"set appendWindowStart throws an exception when equal to appendWindowEnd.");
wolenetz 2014/07/26 00:07:15 I see in our tracking spreadsheet that "set append
prabhur1 2014/07/28 21:36:48 Done.
prabhur1 2014/07/28 21:36:49 ah..got it! On 2014/07/26 00:07:15, wolenetz wrote
assert_throws("InvalidAccessError",
+ function() { sourceBuffer.appendWindowEnd = sourceBuffer.appendWindowStart - 1; },
+ "set appendWindowEnd throws an exception if less than appendWindowStart.");
+
+ assert_throws("InvalidAccessError",
function() { sourceBuffer.appendWindowStart = -100.0; },
"set appendWindowStart throws an exception when less than 0.");
assert_throws("InvalidAccessError",
+ function() { sourceBuffer.appendWindowEnd = -100.0; },
+ "set appendWindowEnd throws an exception when less than 0.");
+
+ assert_throws("InvalidAccessError",
function() { sourceBuffer.appendWindowEnd = Number.NaN; },
"set appendWindowEnd throws an exception if NaN.");

Powered by Google App Engine
This is Rietveld 408576698