17cfd2626d512cb4f4701ba55994ad6bbb1be0ec
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / resource-timing / rt-initiatorType.worker.js
1 importScripts("/resources/testharness.js");
2 importScripts("resources/rt-utilities.sub.js");
3
4 (function() {
5     if (!testNecessaryPerformanceFeatures()) {
6         done();
7         return;
8     }
9
10     importScripts("rt-initiatorType-fetch.js");
11     importScripts("rt-initiatorType-xmlhttprequest.js");
12
13     resource_entry_type_test({
14         name: "other - importScripts",
15         url: uniqueScriptURL("importScripts"),
16         initiatorType: "other",
17         generateResource(url) {
18             importScripts(url);
19         }
20     });
21
22     done();
23 })();