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

Unified Diff: LayoutTests/media/video-volume.html

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-volume.html
diff --git a/LayoutTests/media/video-volume.html b/LayoutTests/media/video-volume.html
index d421204534bf7dca1cef46e5ce4c4bd504571418..ac83775ccc8fd88770bc433f1ecb1459a18dbc2c 100644
--- a/LayoutTests/media/video-volume.html
+++ b/LayoutTests/media/video-volume.html
@@ -12,6 +12,9 @@
testExpected("video.volume", 0);
testDOMException("video.volume = 1.5", "DOMException.INDEX_SIZE_ERR");
testDOMException("video.volume = -0.5", "DOMException.INDEX_SIZE_ERR");
+ testException("video.volume = -Infinity", "TypeError: Failed to set the 'volume' property on 'HTMLMediaElement': The value provided is infinite.");
+ testException("video.volume = Infinity", "TypeError: Failed to set the 'volume' property on 'HTMLMediaElement': The value provided is infinite.");
+ testException("video.volume = NaN", "TypeError: Failed to set the 'volume' property on 'HTMLMediaElement': The value provided is not a number.");
video.src = findMediaFile("video", "content/test");
run("video.load()");
waitForEvent("canplaythrough", function () {

Powered by Google App Engine
This is Rietveld 408576698