summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/js/builtins/Promise-incumbent-global-subsubframe.sub.html
blob: 9edd9d278ab58e706e09fadae6c4c933aa9e87f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<script>
  document.domain = "{{host}}";
  onmessage = function (e) {
    parent.postMessage(
      {
        actual: e.origin,
        expected: "{{location[scheme]}}://{{domains[www1]}}:{{ports[http][0]}}",
        reason: "Incumbent should have been the caller of then()"
      },
      "*");
  }
</script>