summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webvtt/api/VTTRegion/id.html
blob: 1eabac2d168658f75852359bb34ffdb4a037998a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<title>VTTRegion.id</title>
<link rel="help" href="https://w3c.github.io/webvtt/#dom-vttregion-id">
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
test(function() {
    var region = new VTTRegion();
    assert_true('id' in region, 'id is not supported');

    assert_equals(region.id, '', 'initial value');

    region.id = '1';
    assert_equals(region.id, '1', 'value after setting to "1"');

    region.id = '';
    assert_equals(region.id, '', 'value after setting to the empty string');

}, document.title + ' script-created region');
</script>