Import fetch/api/cors tests
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / fetch / api / cors / sandboxed-iframe.html
1 <!doctype html>
2 <html>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <iframe sandbox="allow-scripts" src="../resources/sandboxed-iframe.html"></iframe>
6 <script>
7 promise_test(async (t) => {
8   const message = await new Promise((resolve) => {
9     window.addEventListener('message', e => resolve(e.data));
10   });
11   assert_equals(message, 'PASS');
12 }, 'CORS with sandboxed iframe');
13 </script>
14 </html>