mirror of
https://github.com/servo/servo.git
synced 2025-08-28 00:28:20 +01:00
Update web-platform-tests to revision 66f38302334f162d363afcf4a1792d895072f3ef
This commit is contained in:
parent
36f5b69224
commit
b198cd722a
622 changed files with 3374 additions and 2001 deletions
2
tests/wpt/web-platform-tests/feature-policy/META.yml
Normal file
2
tests/wpt/web-platform-tests/feature-policy/META.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
suggested_reviewers:
|
||||
- clelland
|
|
@ -1 +0,0 @@
|
|||
@clelland
|
|
@ -1,5 +1,5 @@
|
|||
<!doctype html>
|
||||
<title>'document-stream-insertion' tests</title>
|
||||
<title>'document-write' tests</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/feature-policy/experimental-features/resources/common.js"></script>
|
||||
|
@ -14,7 +14,7 @@ html, body {
|
|||
"use strict";
|
||||
|
||||
let iframeElement = document.querySelector("iframe");
|
||||
let url = url_base + "document-stream-insertion.html";
|
||||
let url = url_base + "document-write.html";
|
||||
|
||||
let text_to_write = "<div>FOO<\/div>";
|
||||
let test_cases = [{
|
||||
|
@ -38,7 +38,7 @@ html, body {
|
|||
expected_value_enabled: "FOO"
|
||||
}];
|
||||
|
||||
// The feature 'document-stream-insertion' is enabled by default and when it
|
||||
// The feature 'document-write' is enabled by default and when it
|
||||
// is enabled, all dynamic markup insertion API work as intended.
|
||||
test_cases.forEach((tc) => {
|
||||
promise_test(async() => {
|
||||
|
@ -59,10 +59,10 @@ html, body {
|
|||
});
|
||||
|
||||
|
||||
// Disabling 'document-stream-insertion' throws exception on the included API.
|
||||
// Disabling 'document-write' throws exception on the included API.
|
||||
test_cases.forEach((tc) => {
|
||||
promise_test(async() => {
|
||||
setFeatureState(iframeElement, "document-stream-insertion", "'none'");
|
||||
setFeatureState(iframeElement, "document-write", "'none'");
|
||||
await loadUrlInIframe(iframeElement, url);
|
||||
await sendMessageAndGetResponse(iframeElement.contentWindow, tc).then((response) => {
|
||||
assert_true(
|
Loading…
Add table
Add a link
Reference in a new issue