https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 21cde61f3f55429f32256444ddf25e28769e2ae8 authored by Josh Matthews on 23 December 2018, 05:25:51 UTC
Claim to support testdriver in servodriver
Tip revision: 21cde61
EventListener-incumbent-global-subsubframe.sub.html
<!DOCTYPE html>
<script>
  function getTheListener() {
    return postMessage.bind(this, "respond", "*", undefined)
  }
  document.domain = "{{host}}";
  onmessage = function (e) {
    if (e.data == "sendclick") {
      document.body.click();
    } else {
      parent.postMessage(
        {
          actual: e.origin,
          expected: "{{location[scheme]}}://{{domains[www1]}}:{{ports[http][0]}}",
          reason: "Incumbent should have been the caller of addEventListener()"
        },
        "*")
    };
  }
</script>
back to top