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
importscripts.html
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
 async_test(function(t) {
   var w = new Worker("importscripts.js")
   w.onmessage = t.step_func(function(e) {
     if(e.data == "END")
       t.done()
     else
       assert_equals(e.data, "PASS")
   })
 }, "Test importScripts()")
</script>
back to top