mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0
This commit is contained in:
parent
1d40075f03
commit
079092dfea
2381 changed files with 90360 additions and 17722 deletions
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Set location from a parent</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
onload = function() {
|
||||
var fr = document.querySelector("iframe")
|
||||
fr.contentWindow.location = "support/dummy.html"
|
||||
fr.onload = function() {
|
||||
assert_equals(fr.contentDocument.referrer, document.URL)
|
||||
done()
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Set src from a function called from a parent</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<iframe src="support/set-parent-src.html"></iframe>
|
||||
<script>
|
||||
onload = function() {
|
||||
var fr = document.querySelector("iframe")
|
||||
fr.contentWindow.go()
|
||||
fr.onload = function() {
|
||||
assert_equals(fr.contentDocument.referrer, document.URL)
|
||||
done()
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Set location from a function called from a parent</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<iframe src="support/location-set.html"></iframe>
|
||||
<script>
|
||||
onload = function() {
|
||||
var fr = document.querySelector("iframe")
|
||||
var url = fr.contentDocument.URL
|
||||
fr.contentWindow.go()
|
||||
fr.onload = function() {
|
||||
assert_equals(fr.contentDocument.referrer, url)
|
||||
done()
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Set the src attribute to about:blank and check referrer</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
onload = function() {
|
||||
var fr = document.querySelector("iframe")
|
||||
fr.src = "about:blank"
|
||||
fr.onload = function() {
|
||||
assert_equals(fr.contentDocument.referrer, document.URL)
|
||||
done()
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,3 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<p>Hello.
|
|
@ -0,0 +1,8 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<script>
|
||||
function go() {
|
||||
location.href = "support/dummy.html"
|
||||
}
|
||||
</script>
|
||||
<p>Hello. Go.
|
|
@ -0,0 +1,8 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<script>
|
||||
function go() {
|
||||
frameElement.src = "support/dummy.html"
|
||||
}
|
||||
</script>
|
||||
<p>Hello. Go.
|
Loading…
Add table
Add a link
Reference in a new issue