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

Unified Diff: LayoutTests/media/video-currentTime-set2-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/video-currentTime-set2-expected.txt
diff --git a/LayoutTests/media/video-currentTime-set2-expected.txt b/LayoutTests/media/video-currentTime-set2-expected.txt
index 4fc3555a5b5f0d2970bf4f18db22d93c50493e2b..dc5c67c75d706a1c193324d6df842b910c52dbea 100644
--- a/LayoutTests/media/video-currentTime-set2-expected.txt
+++ b/LayoutTests/media/video-currentTime-set2-expected.txt
@@ -1,4 +1,7 @@
EVENT(canplaythrough)
+TEST(video.currentTime = -Infinity) THROWS(TypeError: Failed to set the 'currentTime' property on 'HTMLMediaElement': The value provided is infinite.) OK
+TEST(video.currentTime = Infinity) THROWS(TypeError: Failed to set the 'currentTime' property on 'HTMLMediaElement': The value provided is infinite.) OK
+TEST(video.currentTime = NaN) THROWS(TypeError: Failed to set the 'currentTime' property on 'HTMLMediaElement': The value provided is not a number.) OK
EXPECTED (video.currentTime.toFixed(1) == '1.5') OK
EXPECTED (video.currentTime.toFixed(1) == '3.1') OK
END OF TEST

Powered by Google App Engine
This is Rietveld 408576698