HomePhabricator Dev

Bug 1611189 [wpt PR 21380] - Replace some more "assert_throws(new FooError()…

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Bug 1611189 [wpt PR 21380] - Replace some more "assert_throws(new FooError(), 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", ...).
  1. 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 https://github.com/web-platform-tests/wpt/pull/21354.

The two manual fixups there address the issues that led to the revert.

wpt-commits: 9940584f86638e9e558928d0a5fc7266f1848cec
wpt-pr: 21380

Details

Provenance
bzbarskyAuthored on

Commit No Longer Exists

This commit no longer exists in the repository.