tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

id.html (649B)


      1 <!doctype html>
      2 <title>VTTRegion.id</title>
      3 <link rel="help" href="https://w3c.github.io/webvtt/#dom-vttregion-id">
      4 <script src=/resources/testharness.js></script>
      5 <script src=/resources/testharnessreport.js></script>
      6 <div id=log></div>
      7 <script>
      8 test(function() {
      9    var region = new VTTRegion();
     10    assert_true('id' in region, 'id is not supported');
     11 
     12    assert_equals(region.id, '', 'initial value');
     13 
     14    region.id = '1';
     15    assert_equals(region.id, '1', 'value after setting to "1"');
     16 
     17    region.id = '';
     18    assert_equals(region.id, '', 'value after setting to the empty string');
     19 
     20 }, document.title + ' script-created region');
     21 </script>