Revision f9bf37fb19a7be5c0b4054a4e747f2f9353cf996 authored by Mike West on 14 October 2016, 07:25:41 UTC, committed by GitHub on 14 October 2016, 07:25:41 UTC
* Referrer Policy: Test image loads inside srcdoc frames.

This patch teaches the 'img-tag'-style tests to load an image both
in the top-level document, and inside a 'srcdoc' frame. The referrer
should be the same in both places.

Addresses w3c/web-platform-tests#2851.

* fixup whitespace

* fixup console.log
1 parent 4e45bce
Raw File
eventsource-url.htm
<!DOCTYPE html>
<html>
  <head>
    <title>EventSource: url</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
  </head>
  <body>
    <div id="log"></div>
    <script>
      test(function() {
        var url = "resources/message.py",
            source = new EventSource(url)
        assert_equals(source.url.substr(-(url.length)), url)
        source.close()
      })
    </script>
  </body>
</html>

back to top