tor-browser

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

scroll.html (812B)


      1 <!doctype html>
      2 <title>VTTRegion.scroll</title>
      3 <link rel="help" href="https://w3c.github.io/webvtt/#dom-vttregion-scroll">
      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('scroll' in region, 'scroll is not supported');
     11 
     12    region.scroll = '';
     13    assert_equals(region.scroll, '');
     14 
     15    region.scroll = 'up';
     16    assert_equals(region.scroll, 'up');
     17 
     18    region.scroll = 'down';
     19    assert_equals(region.scroll, 'up');
     20 
     21    region.scroll = '';
     22    for (var invalid in ['left', 'right', 'center', 'top', 'bottom', 'down']) {
     23        region.scroll = invalid;
     24        assert_equals(region.scroll, '');
     25    }
     26 }, document.title + ' script-created region');
     27 </script>