Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo authored and sideshowbarker committed Oct 29, 2023
1 parent f49af76 commit 6b960ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fetch/api/request/destination/fetch-destination.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@
}, 'HTMLLinkElement with rel=stylesheet fetches with a "style" Request.destination');

// Import declaration with `type: "css"` - style destination
promise_test(async t => {
await new Promise((resolve, reject) => {
promise_test(t => {
return new Promise((resolve, reject) => {
frame.contentWindow.onerror = reject;

let node = frame.contentWindow.document.createElement("script");
Expand All @@ -207,8 +207,6 @@
frame.contentWindow.document.body.appendChild(node);
}).then(() => {
frame.contentWindow.onerror = null;
}, (e) => {
assert_unreached("Fetch errored.", e);
});
}, 'Import declaration with `type: "css"` fetches with a "style" Request.destination');

Expand Down

0 comments on commit 6b960ee

Please sign in to comment.