Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1611189 [wpt PR 21380] - Replace some more "assert_throws(new Foo…
…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
Showing
8 changed files
with
83 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -251,12 +251,11 @@ | |
+ | ||
) | ||
; | ||
assert_throws | ||
assert_throws_dom | ||
( | ||
new | ||
" | ||
SyntaxError | ||
( | ||
) | ||
" | ||
( | ||
) | ||
= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.