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

Side by Side Diff: LayoutTests/media/video-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, 8 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
« no previous file with comments | « LayoutTests/media/video-volume.html ('k') | Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Test 'volume' attribute 1 Test 'volume' attribute
2 2
3 EXPECTED (video.volume == '1') OK 3 EXPECTED (video.volume == '1') OK
4 RUN(video.volume = 0.5) 4 RUN(video.volume = 0.5)
5 EXPECTED (video.volume == '0.5') OK 5 EXPECTED (video.volume == '0.5') OK
6 RUN(video.volume = Number.MIN_VALUE) 6 RUN(video.volume = Number.MIN_VALUE)
7 EXPECTED (video.volume == '5e-324') OK 7 EXPECTED (video.volume == '5e-324') OK
8 RUN(video.volume = 0) 8 RUN(video.volume = 0)
9 EXPECTED (video.volume == '0') OK 9 EXPECTED (video.volume == '0') OK
10 TEST(video.volume = 1.5) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the ' volume' property on 'HTMLMediaElement': The volume provided (1.5) is outside the range [0, 1].) OK 10 TEST(video.volume = 1.5) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the ' volume' property on 'HTMLMediaElement': The volume provided (1.5) is outside the range [0, 1].) OK
11 TEST(video.volume = -0.5) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (-0.5) is outside t he range [0, 1].) OK 11 TEST(video.volume = -0.5) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (-0.5) is outside t he range [0, 1].) OK
12 TEST(video.volume = -Infinity) THROWS("TypeError: Failed to set the 'volume' pro perty on 'HTMLMediaElement': The value provided is infinite.") OK
13 TEST(video.volume = Infinity) THROWS("TypeError: Failed to set the 'volume' prop erty on 'HTMLMediaElement': The value provided is infinite.") OK
14 TEST(video.volume = NaN) THROWS("TypeError: Failed to set the 'volume' property on 'HTMLMediaElement': The value provided is not a number.") OK
12 RUN(video.load()) 15 RUN(video.load())
13 EVENT(canplaythrough) 16 EVENT(canplaythrough)
14 EXPECTED (video.volume == '0') OK 17 EXPECTED (video.volume == '0') OK
15 RUN(video.volume = 0.5) 18 RUN(video.volume = 0.5)
16 EXPECTED (video.volume == '0.5') OK 19 EXPECTED (video.volume == '0.5') OK
17 TEST(video.volume = 1.5) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the ' volume' property on 'HTMLMediaElement': The volume provided (1.5) is outside the range [0, 1].) OK 20 TEST(video.volume = 1.5) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the ' volume' property on 'HTMLMediaElement': The volume provided (1.5) is outside the range [0, 1].) OK
18 TEST(video.volume = -0.5) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (-0.5) is outside t he range [0, 1].) OK 21 TEST(video.volume = -0.5) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (-0.5) is outside t he range [0, 1].) OK
19 END OF TEST 22 END OF TEST
20 23
OLDNEW
« no previous file with comments | « LayoutTests/media/video-volume.html ('k') | Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698