blob: 45beef51036984e003574880ad7483bd8becb842 [file] [log] [blame]
<!DOCTYPE html>
<title>Tests that setting preferences on a track-less video element does not crash.</title>
<script src="../media-file.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function() {
var video = document.createElement('video');
// Set user preferred languages.
internals.setUserPreferredLanguages(['jp', 'es-ES', 'en', 'fr']);
internals.settings.setTextTrackKindUserPreference('captions');
internals.setUserPreferredLanguages([]);
internals.settings.setTextTrackKindUserPreference("default");
});
</script>