Skip to content

Commit fead8ca

Browse files
committed
Bug 1467831 [wpt PR 11427] - Fetch: basic syntax tests for Cross-Origin-Resource-Policy, a=testonly
Automatic update from web-platform-testsFetch: basic syntax tests for Cross-Origin-Resource-Policy Supplements #11171. For whatwg/fetch#733. -- wpt-commits: b7373b42eeac24ff6cb3ed494ffbf09e781287da wpt-pr: 11427 UltraBlame original commit: 0d5c1298c115f6ccc0b1e19e7494b1dd72ae7f18
1 parent bd3dcd5 commit fead8ca

File tree

2 files changed

+257
-0
lines changed

2 files changed

+257
-0
lines changed

testing/web-platform/meta/MANIFEST.json

+92
Original file line numberDiff line numberDiff line change
@@ -2073054,6 +2073054,72 @@ html
20730542073054
"
20730552073055
fetch
20730562073056
/
2073057+
cross
2073058+
-
2073059+
origin
2073060+
-
2073061+
resource
2073062+
-
2073063+
policy
2073064+
/
2073065+
syntax
2073066+
.
2073067+
any
2073068+
.
2073069+
js
2073070+
"
2073071+
:
2073072+
[
2073073+
[
2073074+
"
2073075+
/
2073076+
fetch
2073077+
/
2073078+
cross
2073079+
-
2073080+
origin
2073081+
-
2073082+
resource
2073083+
-
2073084+
policy
2073085+
/
2073086+
syntax
2073087+
.
2073088+
any
2073089+
.
2073090+
html
2073091+
"
2073092+
{
2073093+
}
2073094+
]
2073095+
[
2073096+
"
2073097+
/
2073098+
fetch
2073099+
/
2073100+
cross
2073101+
-
2073102+
origin
2073103+
-
2073104+
resource
2073105+
-
2073106+
policy
2073107+
/
2073108+
syntax
2073109+
.
2073110+
any
2073111+
.
2073112+
worker
2073113+
.
2073114+
html
2073115+
"
2073116+
{
2073117+
}
2073118+
]
2073119+
]
2073120+
"
2073121+
fetch
2073122+
/
20730572073123
data
20730582073124
-
20730592073125
urls
@@ -3779061,6 +3779127,32 @@ testharness
37790613779127
"
37790623779128
fetch
37790633779129
/
3779130+
cross
3779131+
-
3779132+
origin
3779133+
-
3779134+
resource
3779135+
-
3779136+
policy
3779137+
/
3779138+
syntax
3779139+
.
3779140+
any
3779141+
.
3779142+
js
3779143+
"
3779144+
:
3779145+
[
3779146+
"
3779147+
77377a2a82a22bf9ff637a1e3b918eda6cb28858
3779148+
"
3779149+
"
3779150+
testharness
3779151+
"
3779152+
]
3779153+
"
3779154+
fetch
3779155+
/
37790643779156
data
37790653779157
-
37790663779158
urls
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
/
2+
/
3+
META
4+
:
5+
script
6+
=
7+
/
8+
common
9+
/
10+
get
11+
-
12+
host
13+
-
14+
info
15+
.
16+
sub
17+
.
18+
js
19+
const
20+
crossOriginURL
21+
=
22+
get_host_info
23+
(
24+
)
25+
.
26+
HTTP_REMOTE_ORIGIN
27+
+
28+
"
29+
/
30+
fetch
31+
/
32+
cross
33+
-
34+
origin
35+
-
36+
resource
37+
-
38+
policy
39+
/
40+
resources
41+
/
42+
hello
43+
.
44+
py
45+
?
46+
corp
47+
=
48+
"
49+
;
50+
[
51+
"
52+
same
53+
"
54+
"
55+
same
56+
same
57+
-
58+
origin
59+
"
60+
"
61+
SAME
62+
-
63+
ORIGIN
64+
"
65+
"
66+
Same
67+
-
68+
Origin
69+
"
70+
"
71+
same
72+
-
73+
origin
74+
<
75+
>
76+
"
77+
"
78+
same
79+
-
80+
origin
81+
same
82+
-
83+
origin
84+
"
85+
]
86+
.
87+
forEach
88+
(
89+
incorrectHeaderValue
90+
=
91+
>
92+
{
93+
/
94+
/
95+
Note
96+
:
97+
an
98+
incorrect
99+
value
100+
results
101+
in
102+
a
103+
successful
104+
load
105+
so
106+
this
107+
test
108+
is
109+
only
110+
meaningful
111+
in
112+
/
113+
/
114+
implementations
115+
with
116+
support
117+
for
118+
the
119+
header
120+
.
121+
promise_test
122+
(
123+
t
124+
=
125+
>
126+
{
127+
return
128+
fetch
129+
(
130+
crossOriginURL
131+
+
132+
encodeURIComponent
133+
(
134+
incorrectHeaderValue
135+
)
136+
{
137+
mode
138+
:
139+
"
140+
no
141+
-
142+
cors
143+
"
144+
}
145+
)
146+
;
147+
}
148+
"
149+
Parsing
150+
Cross
151+
-
152+
Origin
153+
-
154+
Resource
155+
-
156+
Policy
157+
:
158+
"
159+
+
160+
incorrectHeaderValue
161+
)
162+
;
163+
}
164+
)
165+
;

0 commit comments

Comments
 (0)