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

Unified Diff: LayoutTests/media/video-currentTime-set2.html

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
Index: LayoutTests/media/video-currentTime-set2.html
diff --git a/LayoutTests/media/video-currentTime-set2.html b/LayoutTests/media/video-currentTime-set2.html
index 8221cca8d3046ad1e594f3714e648a6da14ca050..2622b4638d63e2c570c168d9ce0f105130956fe3 100644
--- a/LayoutTests/media/video-currentTime-set2.html
+++ b/LayoutTests/media/video-currentTime-set2.html
@@ -2,12 +2,15 @@
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
- waitForEvent('canplaythrough',
- function () {
- video.currentTime = 1.5;
+ waitForEvent('canplaythrough',
+ function () {
+ testException("video.currentTime = -Infinity", '"TypeError: Failed to set the \'currentTime\' property on \'HTMLMediaElement\': The value provided is infinite."');
+ testException("video.currentTime = Infinity", '"TypeError: Failed to set the \'currentTime\' property on \'HTMLMediaElement\': The value provided is infinite."');
+ testException("video.currentTime = NaN", '"TypeError: Failed to set the \'currentTime\' property on \'HTMLMediaElement\': The value provided is not a number."');
+ video.currentTime = 1.5;
testExpected("video.currentTime.toFixed(1)", 1.5);
video.play();
- video.currentTime = 3.1;
+ video.currentTime = 3.1;
testExpected("video.currentTime.toFixed(1)", 3.1);
endTest();
});
« no previous file with comments | « LayoutTests/media/media-controller-volume-expected.txt ('k') | LayoutTests/media/video-currentTime-set2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698