Move non-upstreamed Resource Timing tests out of web-platform-tests
[WebKit-https.git] / LayoutTests / http / wpt / resource-timing / rt-initiatorType-xmlhttprequest.js
1 resource_entry_type_test({
2     name: "xmlhttprequest (asynchronous)",
3     url: uniqueDataURL("xhr-async"),
4     initiatorType: "xmlhttprequest",
5     generateResource(url) {
6         let xhr = new XMLHttpRequest;
7         xhr.open("GET", url, true);
8         xhr.send();
9     }
10 });
11
12 resource_entry_type_test({
13     name: "xmlhttprequest (synchronous)",
14     url: uniqueDataURL("xhr-sync"),
15     initiatorType: "xmlhttprequest",
16     generateResource(url) {
17         let xhr = new XMLHttpRequest;
18         xhr.open("GET", url, true);
19         xhr.send();
20     }
21 });