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

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

Issue 217053009: Validate finiteness of HTMLMediaElement properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add more FIXMEs. 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
« no previous file with comments | « LayoutTests/media/media-controller-volume.html ('k') | LayoutTests/media/video-currentTime-set2.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/media-controller-volume-expected.txt
diff --git a/LayoutTests/media/media-controller-volume-expected.txt b/LayoutTests/media/media-controller-volume-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..414db494a27ac6dcc4d43a5135682341c7a6db97
--- /dev/null
+++ b/LayoutTests/media/media-controller-volume-expected.txt
@@ -0,0 +1,15 @@
+EVENT(canplay)
+EXPECTED (video.controller.volume == '1') OK
+RUN(video.controller.volume = 0.5)
+EXPECTED (video.controller.volume == '0.5') OK
+RUN(video.controller.volume = Number.MIN_VALUE)
+EXPECTED (video.controller.volume == '5e-324') OK
+RUN(video.controller.volume = 0)
+EXPECTED (video.controller.volume == '0') OK
+TEST(video.controller.volume = 1.5) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'volume' property on 'MediaController': The volume provided (1.5) is outside the range [0, 1].) OK
+TEST(video.controller.volume = -0.5) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'volume' property on 'MediaController': The volume provided (-0.5) is outside the range [0, 1].) OK
+TEST(video.controller.volume = -Infinity) THROWS("TypeError: Failed to set the 'volume' property on 'MediaController': The value provided is infinite.") OK
+TEST(video.controller.volume = Infinity) THROWS("TypeError: Failed to set the 'volume' property on 'MediaController': The value provided is infinite.") OK
+TEST(video.controller.volume = NaN) THROWS("TypeError: Failed to set the 'volume' property on 'MediaController': The value provided is not a number.") OK
+END OF TEST
+
« no previous file with comments | « LayoutTests/media/media-controller-volume.html ('k') | LayoutTests/media/video-currentTime-set2.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698