mirror of
https://github.com/servo/servo.git
synced 2025-08-29 17:18:23 +01:00
Update web-platform-tests to revision c2e5b9fbaa17424f05ca2bb04609790a3b61d5c2
This commit is contained in:
parent
db7bb2a510
commit
f2c1b70e4a
138 changed files with 2799 additions and 851 deletions
|
@ -9,10 +9,16 @@ html, body {
|
|||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
<iframe></iframe>
|
||||
<body>
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
function newIframe() {
|
||||
var i = document.createElement("iframe");
|
||||
document.body.appendChild(i);
|
||||
return i;
|
||||
}
|
||||
|
||||
let iframeElement = document.querySelector("iframe");
|
||||
let url = url_base + "document-write.html";
|
||||
|
||||
|
@ -42,6 +48,7 @@ html, body {
|
|||
// is enabled, all dynamic markup insertion API work as intended.
|
||||
test_cases.forEach((tc) => {
|
||||
promise_test(async() => {
|
||||
let iframeElement = newIframe();
|
||||
await loadUrlInIframe(iframeElement, url);
|
||||
await sendMessageAndGetResponse(iframeElement.contentWindow, tc).then((response) => {
|
||||
assert_false(
|
||||
|
@ -62,6 +69,7 @@ html, body {
|
|||
// Disabling 'document-write' throws exception on the included API.
|
||||
test_cases.forEach((tc) => {
|
||||
promise_test(async() => {
|
||||
let iframeElement = newIframe();
|
||||
setFeatureState(iframeElement, "document-write", "'none'");
|
||||
await loadUrlInIframe(iframeElement, url);
|
||||
await sendMessageAndGetResponse(iframeElement.contentWindow, tc).then((response) => {
|
||||
|
@ -80,3 +88,4 @@ html, body {
|
|||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue