New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace some "assert_throws(new FooError(), stuff)" calls with assert_throws_js #21354
Conversation
No, that shouldn't matter. Looking at those tests,:
Let's see how the rest of this stuff goes, and then I can do a separate PR to fix these tests properly. Thank you again for sorting through this! |
Stability checks fail as expected, but results are good for all browsers (no diffs). Merging (this was reviewed in #21350) |
…ssert_throws_js or assert_throws_dom. 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#21354>. The two manual fixups there address the issues that led to the revert.
…ssert_throws_js or assert_throws_dom. 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#21354>. The two manual fixups there address the issues that led to the revert.
|
…ssert_throws_js or assert_throws_dom. 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#21354>. The two manual fixups there address the issues that led to the revert.
…ssert_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 <#21354>. The two manual fixups there address the issues that led to the revert.
#21354 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken.
#21354 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken.
…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
…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
…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
…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
…actor, a=testonly Automatic update from web-platform-tests Fixup indentation from PR 21353 web-platform-tests/wpt#21353 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21354 web-platform-tests/wpt#21354 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21378 web-platform-tests/wpt#21378 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21379 web-platform-tests/wpt#21379 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21377 web-platform-tests/wpt#21377 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21390 web-platform-tests/wpt#21390 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21392 web-platform-tests/wpt#21392 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- wpt-commits: e4499c8ff1ecf603ecbda020102ec9c956d594f6, 88ab2f0e4965b8e6ea61d3ff4f90ff5215de8a4e, 21578f29a8e82eff91c0fd43ad709fbf3fbe9e72, e836541f46abbd9272233578ad4e8ac0867bde15, f2961a22018844dae808cb12af6774ba8b435773, 597c0519c494486d18ab81a32a7206014ee23b5a, 63c2f7190b779112aa79d28a51cc29b98ca381dc wpt-pr: 21422
…actor, a=testonly Automatic update from web-platform-tests Fixup indentation from PR 21353 web-platform-tests/wpt#21353 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21354 web-platform-tests/wpt#21354 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21378 web-platform-tests/wpt#21378 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21379 web-platform-tests/wpt#21379 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21377 web-platform-tests/wpt#21377 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21390 web-platform-tests/wpt#21390 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- Fixup indentation from PR 21392 web-platform-tests/wpt#21392 used an approach which was known to cause indentation problems in some cases. This commit is an attempt to fixup any indentation issues, by running a (hacky) script to parse the diff and locate places where indentation was broken. -- wpt-commits: e4499c8ff1ecf603ecbda020102ec9c956d594f6, 88ab2f0e4965b8e6ea61d3ff4f90ff5215de8a4e, 21578f29a8e82eff91c0fd43ad709fbf3fbe9e72, e836541f46abbd9272233578ad4e8ac0867bde15, f2961a22018844dae808cb12af6774ba8b435773, 597c0519c494486d18ab81a32a7206014ee23b5a, 63c2f7190b779112aa79d28a51cc29b98ca381dc wpt-pr: 21422
This is an attempt to understand what part of #21350 is failing the CI; please excuse the email spam when wpt-pr-bot cc's you to this PR.