Move non-upstreamed Resource Timing tests out of web-platform-tests
[WebKit-https.git] / LayoutTests / http / wpt / resource-timing / rt-initiatorType-media.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Resource Timing - Element localName initiatorType</title>
6 <link rel="help" href="https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-initiatortype">
7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script>
9 <script src="resources/rt-utilities.sub.js"></script>
10 </head>
11 <body>
12 <h1>Resource Timing: Element localName initiatorType</h1>
13 <div id="log"></div>
14 <script>
15 resource_entry_type_test({
16     name: "video - <video src>",
17     url: uniqueDataURL("video"),
18     initiatorType: "video",
19     generateResource(url) {
20         let video = document.createElement("video");
21         video.src = url;
22     }
23 });
24
25 resource_entry_type_test({
26     name: "audio - <audio src>",
27     url: uniqueDataURL("audio"),
28     initiatorType: "audio",
29     generateResource(url) {
30         let audio = document.createElement("audio");
31         audio.src = url;
32     }
33 });
34 </script>
35 </body>
36 </html>