blob: 6840e0da0b963493f6649e395afb59af2c3656d3 [file] [log] [blame]
Test 'volume' attribute
EXPECTED (compareWithTolerance(video.volume, 1.0) == 'true') OK
RUN(video.volume = 0.5)
EXPECTED (compareWithTolerance(video.volume, 0.5) == 'true') OK
RUN(video.volume = 0)
EXPECTED (compareWithTolerance(video.volume, 0) == 'true') OK
TEST(video.volume = 1.5) THROWS(DOMException.INDEX_SIZE_ERR) OK
TEST(video.volume = -0.5) THROWS(DOMException.INDEX_SIZE_ERR) OK
RUN(video.load())
EVENT(canplaythrough)
EXPECTED (compareWithTolerance(video.volume, 0) == 'true') OK
RUN(video.volume = 0.5)
EXPECTED (compareWithTolerance(video.volume, 0.5) == 'true') OK
TEST(video.volume = 1.5) THROWS(DOMException.INDEX_SIZE_ERR) OK
TEST(video.volume = -0.5) THROWS(DOMException.INDEX_SIZE_ERR) OK
END OF TEST