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
format-field-retry-empty.htm
<!doctype html>
<html>
  <head>
    <title>EventSource: empty retry field</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
  </head>
  <body>
    <div id="log"></div>
    <script>
      var test = async_test()
      test.step(function() {
        var source = new EventSource("resources/message.py?message=retry%0Adata%3Atest")
        source.onmessage = function(e) {
          test.step(function() {
            assert_equals("test", e.data)
            source.close()
          })
          test.done()
        }
      })
    </script>
  </body>
</html>

back to top