[Curl] Fix r222147
[WebKit-https.git] / LayoutTests / http / wpt / resource-timing / rt-resource-ignored.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Resource Timing - Ignored resources</title>
6 <link rel="help" href="https://w3c.github.io/resource-timing/#resources-included">
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: Ignored resources</h1>
13 <div id="log"></div>
14 <script>
15 promise_test(function(t) {
16     let ignoredImageURL = "data:image/png,0";
17     let allowedImageURL = uniqueImageURL("img-allowed");
18
19     let ignoredImg = document.body.appendChild(document.createElement("img"));
20     ignoredImg.src = ignoredImageURL;
21
22     let allowedImg = document.body.appendChild(document.createElement("img"));
23     allowedImg.src = allowedImageURL;
24
25     return observeResources(1).then(([entry]) => {
26         checkResourceTimingEntryType(entry, {name: allowedImageURL});
27     });
28 }, "data: URI resources do not create entries");
29 </script>
30 </body>
31 </html>