tor-browser

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

stable-state-dialogs-manual.html (729B)


      1 <!doctype html>
      2 <title>stable state in dialogs</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id=log></div>
      6 <script>
      7 ['alert', 'confirm', 'prompt'].forEach(function(dialog) {
      8  test(function() {
      9    v = document.createElement('video');
     10    v.src = 'data:,';
     11    assert_equals(v.networkState, v.NETWORK_NO_SOURCE, 'networkState before dialog');
     12    assert_equals(v.currentSrc, '', 'currentSrc before dialog');
     13    window[dialog]('dismiss this dialog');
     14    assert_equals(v.networkState, v.NETWORK_NO_SOURCE, 'networkState after dialog');
     15    assert_equals(v.currentSrc, '', 'currentSrc after dialog');
     16  }, 'stable state in ' + dialog + '()');
     17 });
     18 </script>