Skip to content

Commit

Permalink
Bug 1468218 [wpt PR 11463] - Rename Feature Policy: document-stream-i…
Browse files Browse the repository at this point in the history
…nsertion, a=testonly

Automatic update from web-platform-testsRename Feature Policy: document-stream-insertion

It was proposed here w3c/webappsec-permissions-policy#172
that "document-write" is a better name for this feature. This CL makes
the naming change correspondingly.

Bug: 841605
Change-Id: Id0a928fd3f6669eb3700736ff5770d4717d2b414
Reviewed-on: https://chromium-review.googlesource.com/1095328
Commit-Queue: Ehsan Karamad <ekaramadchromium.org>
Reviewed-by: Ian Clelland <iclellandchromium.org>
Reviewed-by: Kent Tamura <tkentchromium.org>
Reviewed-by: Nasko Oskov <naskochromium.org>
Cr-Commit-Position: refs/heads/master{#566829}

--

wpt-commits: a0272053ab1712be6bf6b967ce75797b351001fc
wpt-pr: 11463

UltraBlame original commit: 40f42f669a0b67e18bbc3beb3ac706bfb6cbb53a
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent b4356b5 commit f292d2c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions testing/web-platform/meta/MANIFEST.json
Expand Up @@ -274054,7 +274054,7 @@
{}
]
],
"feature-policy/experimental-features/resources/document-stream-insertion.html": [
"feature-policy/experimental-features/resources/document-write.html": [
[
{}
]
Expand Down Expand Up @@ -336594,9 +336594,9 @@
}
]
],
"feature-policy/experimental-features/document-stream-insertion.tentative.html": [
"feature-policy/experimental-features/document-write.tentative.html": [
[
"/feature-policy/experimental-features/document-stream-insertion.tentative.html",
"/feature-policy/experimental-features/document-write.tentative.html",
{}
]
],
Expand Down Expand Up @@ -566679,15 +566679,15 @@
"4239ec4ef240e199f15a38145d478d2c0aa43ad2",
"support"
],
"feature-policy/experimental-features/document-stream-insertion.tentative.html": [
"ec2c7269eff25b93d40b233ba0e17c69d31404e9",
"feature-policy/experimental-features/document-write.tentative.html": [
"c91dfd7dd6d0f18e3a5d224823676f623f9dd426",
"testharness"
],
"feature-policy/experimental-features/resources/common.js": [
"36dd671a85ed93f2e69927c843243cb953f82a97",
"support"
],
"feature-policy/experimental-features/resources/document-stream-insertion.html": [
"feature-policy/experimental-features/resources/document-write.html": [
"a0e39689056dc5cc24ad2d7e6fb2c681e84fd35d",
"support"
],
Expand Down
@@ -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>
Expand All @@ -14,7 +14,7 @@
"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 = [{
Expand All @@ -38,7 +38,7 @@
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() => {
Expand All @@ -59,10 +59,10 @@
});


// 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(
Expand Down

0 comments on commit f292d2c

Please sign in to comment.