Skip to content

Commit

Permalink
Bug 1611189 [wpt PR 21380] - Replace some more "assert_throws(new Foo…
Browse files Browse the repository at this point in the history
…Error(), stuff)" calls with a…, a=testonly

Automatic update from web-platform-tests
Replace some more "assert_throws(new FooError(), stuff)" calls with assert_throws_js or assert_throws_dom. (#21380)

This diff was generated by running:

  find . -type f -print0 | xargs -0 perl -pi -e 'BEGIN { $/ = undef; } s/assert_throws\(([ \n]*)new ([A-Za-z]*Error) *\(\) *(, *.)/assert_throws_js(\1\2\3/gs'

on the relevant files and then:

1) Manually fixing up "assert_throws_js(SyntaxError, ...)" to be 'assert_throws_dom("SyntaxError", ...).

2) Changing kv-storage/interface.https.html to get TypeError from the same global as the object it's testing.

Note: these are the files which had changes to them reverted as part
of landing <web-platform-tests/wpt#21354>.
The two manual fixups there address the issues that led to the revert.
--

wpt-commits: 9940584f86638e9e558928d0a5fc7266f1848cec
wpt-pr: 21380

UltraBlame original commit: 9ea48d16df286ee13c9d96a6421a25a2d8b72118
  • Loading branch information
marco-c committed Jan 28, 2020
1 parent 8ed046f commit 425960e
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 192 deletions.
Expand Up @@ -251,12 +251,11 @@
+
)
;
assert_throws
assert_throws_dom
(
new
"
SyntaxError
(
)
"
(
)
=
Expand Down
Expand Up @@ -124,14 +124,11 @@
(
)
{
assert_throws
assert_throws_js
(
new
TypeError
(
)
(
)
=
>
CSS
Expand All @@ -141,14 +138,11 @@
)
)
;
assert_throws
assert_throws_js
(
new
TypeError
(
)
(
)
=
>
CSS
Expand All @@ -159,14 +153,11 @@
)
)
;
assert_throws
assert_throws_js
(
new
TypeError
(
)
(
)
=
>
CSS
Expand All @@ -177,14 +168,11 @@
)
)
;
assert_throws
assert_throws_js
(
new
TypeError
(
)
(
)
=
>
CSS
Expand All @@ -195,14 +183,11 @@
)
)
;
assert_throws
assert_throws_js
(
new
TypeError
(
)
(
)
=
>
CSS
Expand All @@ -215,14 +200,11 @@
)
)
;
assert_throws
assert_throws_js
(
new
TypeError
(
)
(
)
=
>
CSS
Expand Down Expand Up @@ -324,14 +306,11 @@
Invalid
property
names
assert_throws
assert_throws_js
(
new
TypeError
(
)
(
)
=
>
CSS
Expand All @@ -343,12 +322,11 @@
)
)
;
assert_throws
assert_throws_dom
(
new
"
SyntaxError
(
)
"
(
)
=
Expand All @@ -374,12 +352,11 @@
)
)
;
assert_throws
assert_throws_dom
(
new
"
SyntaxError
(
)
"
(
)
=
Expand All @@ -400,12 +377,11 @@
)
)
;
assert_throws
assert_throws_dom
(
new
"
SyntaxError
(
)
"
(
)
=
Expand Down Expand Up @@ -508,12 +484,11 @@
}
)
;
assert_throws
assert_throws_dom
(
new
"
SyntaxError
(
)
"
(
)
=
Expand Down Expand Up @@ -733,14 +708,11 @@
}
)
;
assert_throws
assert_throws_js
(
new
TypeError
(
)
(
)
=
>
CSS
Expand Down
Expand Up @@ -187,12 +187,11 @@
=
>
{
assert_throws
assert_throws_dom
(
new
"
SyntaxError
(
)
"
(
)
=
Expand Down Expand Up @@ -399,14 +398,11 @@
)
)
;
assert_throws
assert_throws_js
(
new
TypeError
(
)
(
)
=
>
result
Expand Down Expand Up @@ -578,14 +574,11 @@
)
)
;
assert_throws
assert_throws_js
(
new
TypeError
(
)
(
)
=
>
result
Expand Down
Expand Up @@ -128,12 +128,11 @@
=
>
{
assert_throws
assert_throws_dom
(
new
"
SyntaxError
(
)
"
(
)
=
Expand Down Expand Up @@ -168,12 +167,11 @@
=
>
{
assert_throws
assert_throws_dom
(
new
"
SyntaxError
(
)
"
(
)
=
Expand Down Expand Up @@ -210,12 +208,11 @@
=
>
{
assert_throws
assert_throws_dom
(
new
"
SyntaxError
(
)
"
(
)
=
Expand Down Expand Up @@ -253,12 +250,11 @@
=
>
{
assert_throws
assert_throws_dom
(
new
"
SyntaxError
(
)
"
(
)
=
Expand Down

0 comments on commit 425960e

Please sign in to comment.