blob: 8370a0ed36e27d00150d714cbc3d5734839fdf1e [file] [log] [blame]
<!DOCTYPE html>
<title>Test for crbug.com/190880</title>
<script src="resources/text-based-repaint.js"></script>
<style>
video { width: 700px; }
</style>
<video id="v" controls autoload src="../../media/content/test.ogv">
</video>
<p>This tests that we repaint the mute button when we change the volume</p>
<script>
window.testIsAsync = true;
var video = document.getElementById("v");
video.addEventListener("canplaythrough", runTest, true);
function repaintTest() {
video.volume = 0.5;
finishRepaintTest();
}
function runTest() {
video.volume = 0;
runRepaintTest();
}
</script>