Bug 1569066 [wpt PR 18094] - [WPT/mixed-content] Tentatively rename source_scheme to source_protocol, a=testonly

Automatic update from web-platform-tests
[WPT/mixed-content] Tentatively rename source_scheme to source_protocol

To use common names in referrer-policy and
mixed-content tests.

The final goal is to rename all to `source_scheme` (which is done in
https://chromium-review.googlesource.com/c/chromium/src/+/1718991).
This CL renames first `source_scheme` to `source_protocol`,
just to avoid rebasing in a long chain of commits.

Generated files will be updated after some more changes, not now.

Bug: 906850
Change-Id: Ic89e60e8a5f2f2780ad416ef189cfc5d1ad1b16e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717115
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681061}

--

wpt-commits: bb133fdd5ace2f947f43dae92f6d6b278b445205
wpt-pr: 18094
This commit is contained in:
Hiroshige Hayashizaki 2019-08-01 14:30:34 +00:00 committed by moz-wptsync-bot
parent a1ccc34f63
commit 54012906ef
3 changed files with 15 additions and 15 deletions

View File

@ -22,12 +22,12 @@ class MixedContentConfig(object):
self.test_file_path_pattern = self.selection_pattern + \
'%(spec_name)s/' + \
'%(name)s.%(source_scheme)s.html'
'%(name)s.%(source_protocol)s.html'
self.test_description_template = '''delivery_type: %(delivery_type)s
delivery_value: %(delivery_value)s
origin: %(origin)s
source_scheme: %(source_scheme)s
source_scheme: %(source_protocol)s
context_nesting: %(context_nesting)s
redirection: %(redirection)s
subresource: %(subresource)s

View File

@ -126,7 +126,7 @@ def validate(spec_json, details):
# Validate the test_expansion schema members.
details['object'] = test_expansion_schema
assert_contains_only_fields(test_expansion_schema, [
'expansion', 'source_scheme', 'delivery_type', 'delivery_value',
'expansion', 'source_protocol', 'delivery_type', 'delivery_value',
'context_nesting', 'redirection', 'subresource', 'origin',
'expectation'
])

View File

@ -9,7 +9,7 @@
{
"name": "opt-in-blocks",
"expansion": "default",
"source_scheme": "https",
"source_protocol": "https",
"delivery_type": "*",
"delivery_value": "opt-in",
"context_nesting": "top-level",
@ -24,7 +24,7 @@
{
"name": "no-opt-in-allows",
"expansion": "default",
"source_scheme": "https",
"source_protocol": "https",
"delivery_type": "*",
"delivery_value": null,
"context_nesting": "top-level",
@ -47,7 +47,7 @@
{
"name": "opt-in-blocks",
"expansion": "default",
"source_scheme": "https",
"source_protocol": "https",
"delivery_type": "*",
"delivery_value": "opt-in",
"context_nesting": "top-level",
@ -62,7 +62,7 @@
{
"name": "no-opt-in-blocks",
"expansion": "default",
"source_scheme": "https",
"source_protocol": "https",
"delivery_type": "*",
"delivery_value": null,
"context_nesting": "top-level",
@ -77,7 +77,7 @@
{
"name": "ws-downgrade-blocks",
"expansion": "default",
"source_scheme": "https",
"source_protocol": "https",
"delivery_type": "*",
"delivery_value": "*",
"context_nesting": "top-level",
@ -100,7 +100,7 @@
{
"name": "allowed",
"expansion": "default",
"source_scheme": "https",
"source_protocol": "https",
"delivery_type": "*",
"delivery_value": "*",
"context_nesting": "top-level",
@ -115,7 +115,7 @@
{
"name": "websocket-allowed",
"expansion": "default",
"source_scheme": "https",
"source_protocol": "https",
"delivery_type": "*",
"delivery_value": "*",
"context_nesting": "top-level",
@ -137,7 +137,7 @@
{
"name": "Skip-redundant-no-opt-in",
"expansion": "*",
"source_scheme": "*",
"source_protocol": "*",
"delivery_type": "http-rp",
"delivery_value": null,
"context_nesting": "*",
@ -152,7 +152,7 @@
{
"name": "Redundant-subresources",
"expansion": "*",
"source_scheme": "*",
"source_protocol": "*",
"delivery_type": "*",
"delivery_value": "*",
"context_nesting": "*",
@ -169,7 +169,7 @@
{
"name": "Skip-origins-not-applicable-to-websockets",
"expansion": "*",
"source_scheme": "*",
"source_protocol": "*",
"delivery_type": "*",
"delivery_value": "*",
"context_nesting": "*",
@ -191,7 +191,7 @@
{
"name": "Skip-redundant-for-opt-in-method",
"expansion": "*",
"source_scheme": "*",
"source_protocol": "*",
"delivery_type": "meta",
"delivery_value": "opt-in",
"context_nesting": "*",
@ -210,7 +210,7 @@
"default",
"override"
],
"source_scheme": [
"source_protocol": [
"http",
"https"
],