Skip to content

Commit

Permalink
Bug 1509607 [wpt PR 14218] - Add muted error tests for redirected scr…
Browse files Browse the repository at this point in the history
…ipts, a=testonly

Automatic update from web-platform-tests
Add muted error tests for redirected scripts

Helps with whatwg/fetch#737.
--

wpt-commits: 18bb80e6e1254b36db6467fdd1aa1e9e7748bb58
wpt-pr: 14218

UltraBlame original commit: d1852804c36e57cb123dc6a336c58e986e16e02f
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent 133c624 commit dc6c227
Showing 1 changed file with 338 additions and 0 deletions.
Expand Up @@ -63,6 +63,11 @@
.
org
/
multipage
/
webappapis
.
html
#
report
-
Expand Down Expand Up @@ -469,6 +474,106 @@
)
;
}
var
test4
=
async_test
(
"
Errors
for
same
-
origin
scripts
redirected
to
a
"
+
"
cross
-
origin
url
and
redirected
back
to
"
+
"
same
-
origin
should
be
muted
"
)
;
var
check4
=
test4
.
step_func_done
(
(
)
=
>
check
(
true
)
)
;
var
test5
=
async_test
(
"
Errors
for
cross
-
origin
scripts
redirected
to
a
"
+
"
same
-
origin
url
should
be
muted
"
)
;
var
check5
=
test5
.
step_func_done
(
(
)
=
>
check
(
true
)
)
;
function
unreachable
(
Expand Down Expand Up @@ -670,3 +775,236 @@
/
iframe
>
<
script
src
=
"
/
fetch
/
api
/
resources
/
redirect
.
py
?
location
=
/
/
{
{
domains
[
www2
]
}
}
:
{
{
ports
[
http
]
[
0
]
}
}
/
fetch
/
api
/
resources
/
redirect
.
py
?
location
=
/
/
{
{
host
}
}
:
{
{
ports
[
http
]
[
0
]
}
}
/
html
/
semantics
/
scripting
-
1
/
the
-
script
-
element
/
cacheable
-
script
-
throw
.
py
?
same
-
cross
-
same
"
onerror
=
"
test4
.
unreached_func
(
)
(
)
"
onload
=
"
check4
(
)
"
>
<
/
script
>
<
script
src
=
"
/
/
{
{
domains
[
www2
]
}
}
:
{
{
ports
[
http
]
[
0
]
}
}
/
fetch
/
api
/
resources
/
redirect
.
py
?
location
=
/
/
{
{
host
}
}
:
{
{
ports
[
http
]
[
0
]
}
}
/
html
/
semantics
/
scripting
-
1
/
the
-
script
-
element
/
cacheable
-
script
-
throw
.
py
?
cross
-
same
"
onerror
=
"
test5
.
unreached_func
(
)
(
)
"
onload
=
"
check5
(
)
"
>
<
/
script
>

0 comments on commit dc6c227

Please sign in to comment.