mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 82cecba576456d05c09894749379df1013ab488f
This commit is contained in:
parent
de9c84f686
commit
60b62482da
145 changed files with 2705 additions and 367 deletions
|
@ -6,6 +6,7 @@
|
|||
<iframe src="about:blank"></iframe>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
setup({ single_test: true });
|
||||
onload = function() {
|
||||
var ifr = document.getElementsByTagName('iframe')[0];
|
||||
ifr.contentDocument.body.appendChild(ifr.contentDocument.createElement('p')).textContent = 'Modified document';
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<iframe src="about:blank"></iframe>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
setup({ single_test: true });
|
||||
onload = function() {
|
||||
var ifr = document.getElementsByTagName('iframe')[0];
|
||||
ifr.contentDocument.open();
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<iframe src="support/blank.htm"></iframe>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
setup({ single_test: true });
|
||||
onload = function() {
|
||||
var ifr = document.getElementsByTagName('iframe')[0];
|
||||
ifr.contentDocument.body.appendChild(ifr.contentDocument.createElement('p')).textContent = 'Modified document';
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<iframe src="support/blank.htm"></iframe>
|
||||
<div id="target"></div>
|
||||
<script>
|
||||
setup({ single_test: true });
|
||||
onload = function(){
|
||||
var ifr = document.getElementsByTagName('iframe')[0];
|
||||
ifr.contentDocument.open();
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
<!--
|
||||
Test same-document navigation inside an srcdoc iframe using location.hash
|
||||
-->
|
||||
<title>same-document navigation inside an srcdoc iframe using location.hash</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/testdriver.js"></script>
|
||||
<script src="/resources/testdriver-vendor.js"></script>
|
||||
<script>
|
||||
async function test() {
|
||||
promise_test(async () => {
|
||||
// Wait until 'document' is available.
|
||||
await new Promise(resolve => window.addEventListener('load', resolve));
|
||||
|
||||
|
@ -66,8 +64,5 @@
|
|||
await hash_changed;
|
||||
assert_equals(iframe.contentWindow.location.href, "about:srcdoc#2");
|
||||
}
|
||||
|
||||
done();
|
||||
}
|
||||
test();
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue