blob: acd91859e4a897187e79d422c5471a9897b266e2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Tests that the parameter to TextTrack.addCue() / removeCue() is not nullable.");
var video = document.createElement('video');
var track = video.addTextTrack('subtitles');
shouldThrowErrorName("track.addCue(null)", "TypeError");
shouldThrowErrorName("track.removeCue(null)", "TypeError");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>