mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Update web-platform-tests to revision 14cfa4d648cc1c853b4153268df672d21425f8c1
This commit is contained in:
parent
1b73cf3352
commit
75736751d9
1213 changed files with 19434 additions and 12344 deletions
|
@ -0,0 +1,18 @@
|
|||
<html>
|
||||
<head>
|
||||
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'self'; connect-src 'self';">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src='../support/logTest.sub.js?logs=["PASS (1/2): Script can execute","PASS (2/2): Eval works"]'></script>
|
||||
<script src='../support/alertAssert.sub.js?alerts=[]'></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.onmessage = function(e) {
|
||||
log(e.data);
|
||||
}
|
||||
</script>
|
||||
<iframe src="support/sandboxed-eval.sub.html"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src='../support/logTest.sub.js?logs=["Message"]'></script>
|
||||
<script src="../support/alertAssert.sub.js?alerts=[]"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
window.onmessage = function(e) {
|
||||
log(e.data);
|
||||
}
|
||||
</script>
|
||||
|
||||
<iframe src="support/sandboxed-data-iframe.sub.html?sandbox=allow-scripts"></iframe>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src='../support/logTest.sub.js?logs=["Message"]'></script>
|
||||
<script src="../support/alertAssert.sub.js?alerts=[]"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
window.onmessage = function(e) {
|
||||
log(e.data);
|
||||
}
|
||||
</script>
|
||||
|
||||
<iframe src="support/sandboxed-post-message-to-parent.sub.html?sandbox=allow-scripts"></iframe>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src='../support/logTest.sub.js?logs=["PASS2"]'></script>
|
||||
<script src="../support/alertAssert.sub.js?alerts=[]"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
window.onmessage = function(e) {
|
||||
log(e.data);
|
||||
}
|
||||
</script>
|
||||
|
||||
<iframe src="support/sandboxed-data-iframe.sub.html?sandbox="
|
||||
onload="log('PASS2')"></iframe>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src='../support/logTest.sub.js?logs=["PASS2"]'></script>
|
||||
<script src="../support/alertAssert.sub.js?alerts=[]"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p>This test passes if it does alert pass.</p>
|
||||
|
||||
<script>
|
||||
window.onmessage = function(e) {
|
||||
log(e.data);
|
||||
}
|
||||
</script>
|
||||
|
||||
<iframe src="support/sandboxed-post-message-to-parent.sub.html?sandbox="
|
||||
onload="log('PASS2')"></iframe>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
<iframe src="data:text/html,<script>window.top.postMessage('Message','*');</script>"></iframe>
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: sandbox {{GET[sandbox]}};
|
|
@ -0,0 +1,4 @@
|
|||
<script>
|
||||
window.parent.postMessage('PASS (1/2): Script can execute', '*');
|
||||
eval("window.parent.postMessage('PASS (2/2): Eval works', '*')");
|
||||
</script>
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: sandbox allow-scripts
|
|
@ -0,0 +1,3 @@
|
|||
<script>
|
||||
window.top.postMessage("Message", "*");
|
||||
</script>
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: sandbox {{GET[sandbox]}};
|
Loading…
Add table
Add a link
Reference in a new issue