summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/constants.html
blob: 3c8046cdc482934b07f72d974ba97e4ebb611075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<title>TextTrack constants</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
setup(function(){
    window.video = document.createElement('video');
    window.t1 = video.addTextTrack('subtitles');
});
test(function(){
    assert_equals(t1.DISABLED, undefined, "t1.DISABLED");
    assert_equals(t1.HIDDEN, undefined, "t1.HIDDEN");
    assert_equals(t1.SHOWING, undefined, "t1.SHOWING");
    assert_equals(TextTrack.prototype.DISABLED, undefined, "TextTrack.prototype.DISABLED");
    assert_equals(TextTrack.prototype.HIDDEN, undefined, "TextTrack.prototype.HIDDEN");
    assert_equals(TextTrack.prototype.SHOWING, undefined, "TextTrack.prototype.SHOWING");
    assert_equals(TextTrack.DISABLED, undefined, "TextTrack.DISABLED");
    assert_equals(TextTrack.HIDDEN, undefined, "TextTrack.HIDDEN");
    assert_equals(TextTrack.SHOWING, undefined, "TextTrack.SHOWING");
});

</script>