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

Side by Side 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 unified diff | Download patch
OLDNEW
1 1
2 RUN(controller = video.controller) 2 RUN(controller = video.controller)
3 EVENT(canplaythrough) 3 EVENT(canplaythrough)
4 TEST(controller.currentTime = -Infinity) THROWS(TypeError: Failed to set the 'cu rrentTime' property on 'MediaController': The value provided is infinite.) OK
5 TEST(controller.currentTime = Infinity) THROWS(TypeError: Failed to set the 'cur rentTime' property on 'MediaController': The value provided is infinite.) OK
6 TEST(controller.currentTime = NaN) THROWS(TypeError: Failed to set the 'currentT ime' property on 'MediaController': The value provided is not a number.) OK
4 RUN(controller.play()) 7 RUN(controller.play())
5 EVENT(playing) 8 EVENT(playing)
6 EXPECTED (controller.paused == 'false') OK 9 EXPECTED (controller.paused == 'false') OK
7 RUN(controller.currentTime = 5) 10 RUN(controller.currentTime = 5)
8 EXPECTED (video.currentTime == '5') OK 11 EXPECTED (video.currentTime == '5') OK
9 EXPECTED (video2.currentTime == '5') OK 12 EXPECTED (video2.currentTime == '5') OK
10 EVENT(ended) 13 EVENT(ended)
11 END OF TEST 14 END OF TEST
12 15
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698