tor-browser

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

eventsource-constructor-document-domain.window.js (608B)


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