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

Unified Diff: LayoutTests/media/media-controller-playback-expected.txt

Issue 217053009: Validate finiteness of HTMLMediaElement properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add LayoutTests. Created 6 years, 9 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/media/media-controller-playback-expected.txt
diff --git a/LayoutTests/media/media-controller-playback-expected.txt b/LayoutTests/media/media-controller-playback-expected.txt
index 6885e23d0261fa19a96ee964f1da0b34d4436b6f..13c09a37042c91031adaf13ead791d64adceda78 100644
--- a/LayoutTests/media/media-controller-playback-expected.txt
+++ b/LayoutTests/media/media-controller-playback-expected.txt
@@ -1,6 +1,9 @@
RUN(controller = video.controller)
EVENT(canplaythrough)
+TEST(controller.currentTime = -Infinity) THROWS(TypeError: Failed to set the 'currentTime' property on 'MediaController': The value provided is infinite.) OK
+TEST(controller.currentTime = Infinity) THROWS(TypeError: Failed to set the 'currentTime' property on 'MediaController': The value provided is infinite.) OK
+TEST(controller.currentTime = NaN) THROWS(TypeError: Failed to set the 'currentTime' property on 'MediaController': The value provided is not a number.) OK
RUN(controller.play())
EVENT(playing)
EXPECTED (controller.paused == 'false') OK

Powered by Google App Engine
This is Rietveld 408576698