Update WPT tests for embedded content
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / html / semantics / embedded-content / the-embed-element / document-getters-return-null-for-cross-origin.html
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>Test that getSVGDocument() returns null for a cross-origin document.</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <body>
7 <embed src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect height="100" width="100"/></svg>'></embed>
8 <script>
9 const embed = document.querySelector('embed');
10 var t = async_test('HTMLEmbedElement.getSVGDocument() for cross-origin document');
11 window.addEventListener(
12     'load', t.step_func_done(() => { assert_equals(embed.getSVGDocument(), null); }));
13 </script>
14 </body>