<!DOCTYPE html>
<title>Test that pause() after changing display to "none" doesn't cause a crash.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<video></video>
<script>
test(function() {
var video = document.querySelector("video");
video.src = "content/test.ogv";
video.play();
video.style.display = "none";
video.pause();
});
</script>