mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision c26470dac73f2df9d4822a0d3482f7eb1ebf57d9
This commit is contained in:
parent
7de87c487b
commit
4d3c932c47
648 changed files with 9014 additions and 4821 deletions
|
@ -0,0 +1,30 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>FileAPI Test: Verify behavior of Blob URL in unique origins</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<iframe id="sandboxed-iframe" sandbox="allow-scripts"></iframe>
|
||||
|
||||
<script>
|
||||
|
||||
const iframe_scripts = [
|
||||
'/resources/testharness.js',
|
||||
'resources/fetch-tests.js',
|
||||
'url-format.any.js',
|
||||
'url-with-xhr.any.js',
|
||||
'url-with-fetch.any.js',
|
||||
'url-with-tags.window.js',
|
||||
];
|
||||
|
||||
let html = '<!doctype html>\n<meta charset="utf-8">\n<body>\n';
|
||||
for (const script of iframe_scripts)
|
||||
html = html + '<script src="' + script + '"></' + 'script>\n';
|
||||
|
||||
const frame = document.querySelector('#sandboxed-iframe');
|
||||
frame.setAttribute('srcdoc', html);
|
||||
frame.setAttribute('style', 'display:none;');
|
||||
|
||||
fetch_tests_from_window(frame.contentWindow);
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue