зеркало из https://github.com/mozilla/gecko-dev.git
Bug 454683 - Media element setVolume should fail on invalid values; "bustage fix" fix :->
This commit is contained in:
Родитель
c80df64dc4
Коммит
fdea18ae6a
|
@ -18,7 +18,7 @@ function test(element, value, shouldThrow) {
|
||||||
try {
|
try {
|
||||||
element.volume = value;
|
element.volume = value;
|
||||||
} catch (err if (err instanceof Components.interfaces.nsIException &&
|
} catch (err if (err instanceof Components.interfaces.nsIException &&
|
||||||
err.result == Components.results.NS_ERROR_DOM_INDEX_SIZE_ERR) {
|
err.result == Components.results.NS_ERROR_DOM_INDEX_SIZE_ERR)) {
|
||||||
threw = true;
|
threw = true;
|
||||||
}
|
}
|
||||||
is(shouldThrow, threw, "Case: " +element.id+ " setVolume=" + value);
|
is(shouldThrow, threw, "Case: " +element.id+ " setVolume=" + value);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче