[Curl] Fix r222147
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / 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 <meta name="author" title="JosephPecoraro" href="mailto:joepeck@webkit.org">
7 <link rel="help" href="https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-initiatortype">
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10 <script src="resources/rt-utilities.sub.js"></script>
11 </head>
12 <body>
13 <h1>Resource Timing: Element localName initiatorType</h1>
14 <div id="log"></div>
15 <script>
16 resource_entry_type_test({
17     name: "video - <video src>",
18     url: uniqueDataURL("video"),
19     initiatorType: "video",
20     generateResource(url) {
21         let video = document.createElement("video");
22         video.src = url;
23     }
24 });
25
26 resource_entry_type_test({
27     name: "audio - <audio src>",
28     url: uniqueDataURL("audio"),
29     initiatorType: "audio",
30     generateResource(url) {
31         let audio = document.createElement("audio");
32         audio.src = url;
33     }
34 });
35 </script>
36 </body>
37 </html>