summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resource-timing/initiator-type/misc.html
blob: 02d01a16336c9337dae037970f6f91ce7b71b0f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Resource Timing initiator type: miscellaneous elements</title>
<link rel="author" title="Google" href="http://www.google.com/" />
<link rel="help" href="https://www.w3.org/TR/resource-timing-2/#dom-performanceresourcetiming-initiatortype"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resource-timing/resources/observe-entry.js"></script>
<script src="resources/initiator-type-test.js"></script>
</head>
<body background="/resource-timing/resources/blue.png?id=body">
<input type="image" src="/resource-timing/resources/blue.png?id=input">
<object type="image/png" data="/resource-timing/resources/blue.png?id=object">
</object>
<script>
  navigator.sendBeacon('/resource-timing/resources/empty.py?id=beacon');
  fetch('/resource-timing/resources/empty.py?id=fetch');
  const evtSource = new EventSource('/resource-timing/resources/eventsource.py?id=eventsource');
</script>
<script>
  initiator_type_test("blue.png?id=body", "body", "<body background>");
  initiator_type_test("blue.png?id=input", "input", "<input type='image'>");
  initiator_type_test("blue.png?id=object", "object", "<object type='image/png'>");
  initiator_type_test("empty.py?id=beacon", "beacon", "sendBeacon()");
  initiator_type_test("empty.py?id=fetch", "fetch", "for fetch()");
  initiator_type_test("eventsource.py?id=eventsource", "other", "new EventSource()");
</script>
</body>
</html>