tor-browser

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

eventsource-onopen.any.js (521B)


      1 // META: title=EventSource: onopen (announcing the connection)
      2 
      3      var test = async_test()
      4      test.step(function() {
      5        source = new EventSource("resources/message.py")
      6        source.onopen = function(e) {
      7          test.step(function() {
      8            assert_equals(source.readyState, source.OPEN)
      9            assert_false(e.hasOwnProperty('data'))
     10            assert_false(e.bubbles)
     11            assert_false(e.cancelable)
     12            this.close()
     13          }, this)
     14          test.done()
     15        }
     16      })