Skip to content

Commit 8326383

Browse files
committed
Bug 1879240 [wpt PR 44460] - Use OK status to check RaceNetworkRequest response, a=testonly
Automatic update from web-platform-tests Use OK status to check RaceNetworkRequest response Reflecting the comment on yoshisatoyanagisawa/ServiceWorker#10 (comment) Bug: 1371756 Change-Id: I6de1fed384e32fbdae40799ef48d4ce2eeb3eccd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5276401 Reviewed-by: Minoru Chikamune <chikamunechromium.org> Reviewed-by: Yoshisato Yanagisawa <yyanagisawachromium.org> Reviewed-by: Kouhei Ueno <kouheichromium.org> Commit-Queue: Shunya Shishido <sisidovskichromium.org> Cr-Commit-Position: refs/heads/main{#1257762} -- wpt-commits: 4c4bec5ff51e2230e4d3ee69773c608ae255f04d wpt-pr: 44460 UltraBlame original commit: 2fa7948b44b6df8c83ff94f083948147447baecc
1 parent 005a921 commit 8326383

File tree

2 files changed

+1153
-0
lines changed

2 files changed

+1153
-0
lines changed

testing/web-platform/tests/service-workers/service-worker/tentative/static-router/resources/direct.py

+102
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import
22
os
3+
import
4+
time
35
def
46
main
57
(
@@ -8,6 +10,106 @@
810
)
911
:
1012

13+
if
14+
'
15+
server_slow
16+
'
17+
in
18+
request
19+
.
20+
url_parts
21+
.
22+
query
23+
:
24+
25+
time
26+
.
27+
sleep
28+
(
29+
0
30+
.
31+
2
32+
)
33+
34+
if
35+
'
36+
server_no_content
37+
'
38+
in
39+
request
40+
.
41+
url_parts
42+
.
43+
query
44+
:
45+
46+
return
47+
204
48+
[
49+
(
50+
b
51+
'
52+
Content
53+
-
54+
Type
55+
'
56+
b
57+
'
58+
text
59+
/
60+
plain
61+
'
62+
)
63+
]
64+
u
65+
'
66+
Network
67+
with
68+
%
69+
s
70+
request
71+
'
72+
%
73+
request
74+
.
75+
method
76+
77+
if
78+
'
79+
server_not_found
80+
'
81+
in
82+
request
83+
.
84+
url_parts
85+
.
86+
query
87+
:
88+
89+
return
90+
404
91+
[
92+
(
93+
b
94+
'
95+
Content
96+
-
97+
Type
98+
'
99+
b
100+
'
101+
text
102+
/
103+
plain
104+
'
105+
)
106+
]
107+
u
108+
'
109+
Not
110+
Found
111+
'
112+
11113
return
12114
200
13115
[

0 commit comments

Comments
 (0)