Skip to content

Commit

Permalink
Bug 1696986 [wpt PR 27894] - Fetch: redo Content-Length parser test n…
Browse files Browse the repository at this point in the history
…ames, a=testonly

Automatic update from web-platform-tests
Fetch: redo Content-Length parser test names

See whatwg/fetch#1183 for context.

--

wpt-commits: 34f0fc0f2d7e04c980e6ec708b590c0c220127e4
wpt-pr: 27894

UltraBlame original commit: b75ba7dbf5a92b46ca08d90e19e22af43647ef01
  • Loading branch information
marco-c committed Mar 15, 2021
1 parent c2ecc7c commit 85e085f
Showing 1 changed file with 36 additions and 18 deletions.
54 changes: 36 additions & 18 deletions testing/web-platform/tests/fetch/content-length/parsing.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,15 @@ testUnits
.
forEach
(
testUnit
=
>
{
const
input
=
encodeURIComponent
(
testUnit
.
{
input
output
}
)
;
=
>
{
promise_test
(
t
Expand All @@ -78,7 +73,6 @@ result
=
fetch
(
"
resources
/
content
Expand All @@ -89,15 +83,16 @@ py
?
length
=
"
+
{
encodeURIComponent
(
input
)
}
)
;
if
(
testUnit
.
output
=
=
Expand Down Expand Up @@ -142,8 +137,6 @@ assert_equals
text
.
length
testUnit
.
output
)
;
Expand All @@ -152,8 +145,33 @@ output
;
}
}
Input
:
{
format_value
(
input
)
}
.
Expected
:
{
output
=
=
=
null
?
"
network
error
"
:
output
}
.
)
;
}
)
Expand Down

0 comments on commit 85e085f

Please sign in to comment.