OLD | NEW |
| (Empty) |
1 Test 'volume' attribute | |
2 | |
3 EXPECTED (video.volume == '1') OK | |
4 RUN(video.volume = 0.5) | |
5 EXPECTED (video.volume == '0.5') OK | |
6 RUN(video.volume = Number.MIN_VALUE) | |
7 EXPECTED (video.volume == '5e-324') OK | |
8 RUN(video.volume = 0) | |
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 | |
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 provided double value is non-finite.") OK | |
13 TEST(video.volume = Infinity) THROWS("TypeError: Failed to set the 'volume' prop
erty on 'HTMLMediaElement': The provided double value is non-finite.") OK | |
14 TEST(video.volume = NaN) THROWS("TypeError: Failed to set the 'volume' property
on 'HTMLMediaElement': The provided double value is non-finite.") OK | |
15 RUN(video.load()) | |
16 EVENT(canplaythrough) | |
17 EXPECTED (video.volume == '0') OK | |
18 RUN(video.volume = 0.5) | |
19 EXPECTED (video.volume == '0.5') 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 | |
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 | |
22 END OF TEST | |
23 | |
OLD | NEW |