summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/media/video-display-none-crash.html
blob: 7429798439137f298d738ae0eeae9aadf44ebf93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<video controls></video>
<p>Test that pause() after changing display to "none" doesn't cause a crash.</p>
<script src="media-file.js"></script>
<!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
     (Please avoid writing new tests using video-test.js) -->
<script src="video-test.js"></script>
<script>
    video.src = findMediaFile("video", "content/test");
    video.play();
    video.style.display = "none";
    video.pause();
    endTest();
</script>