tor-browser

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

stable-state-print-manual.html (802B)


      1 <!doctype html>
      2 <title>stable state in print()</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id=log></div>
      6 <button>click this button and dismiss the print dialog</button>
      7 <script>
      8 async_test(function(t) {
      9  var button = document.querySelector('button');
     10  button.onclick = t.step_func(function() {
     11    v = document.createElement('video');
     12    v.src = 'data:,';
     13    assert_equals(v.networkState, v.NETWORK_NO_SOURCE, 'networkState before dialog');
     14    assert_equals(v.currentSrc, '', 'currentSrc before dialog');
     15    print();
     16    assert_equals(v.networkState, v.NETWORK_NO_SOURCE, 'networkState after dialog');
     17    assert_equals(v.currentSrc, '', 'currentSrc after dialog');
     18    t.done();
     19    button.remove();
     20  });
     21 });
     22 </script>