Bug 1704910 [wpt PR 28460] - chore: restructure xhr/formdata tests, a=testonly
commite55971900576b7bf98cf54b51bbe4866068c24b9
authorLuca Casonato <lucacasonato@yahoo.com>
Fri, 23 Apr 2021 10:17:51 +0000 (23 10:17 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 23 Apr 2021 22:15:58 +0000 (23 22:15 +0000)
treeae66ccbb1fac29f03c16c2d0237d318f5f820945
parent8ae6466baa9622df075c0598fa4967abdd36522d
Bug 1704910 [wpt PR 28460] - chore: restructure xhr/formdata tests, a=testonly

Automatic update from web-platform-tests
XHR: restructure FormData tests

This commit restrucutres xhr/formdata tests that do not require a form element to be .any.js tests, and thus runnable outside the browser, and in workers (like in Deno). This commit only moves tests around (no changes or removals), with the exception of the "Passing a String object to FormData.set should work" and "Passing a String object to FormData.append should work." tests because the tests are exact replicas of the "formdata with string" test in xhr/formdata.html. Because of that they have been removed.
--

wpt-commits: e45a9f9e65d039c76817ee2a6a1ef02c9311a1cb
wpt-pr: 28460
18 files changed:
testing/web-platform/tests/xhr/FormData-append.html [deleted file]
testing/web-platform/tests/xhr/formdata-blob.htm [deleted file]
testing/web-platform/tests/xhr/formdata-set.htm [deleted file]
testing/web-platform/tests/xhr/formdata.html [moved from testing/web-platform/tests/xhr/formdata.htm with 82% similarity]
testing/web-platform/tests/xhr/formdata/append-formelement.html [new file with mode: 0644]
testing/web-platform/tests/xhr/formdata/append.any.js [new file with mode: 0644]
testing/web-platform/tests/xhr/formdata/constructor-formelement.html [moved from testing/web-platform/tests/xhr/formdata-constructor.html with 98% similarity]
testing/web-platform/tests/xhr/formdata/constructor.any.js [new file with mode: 0644]
testing/web-platform/tests/xhr/formdata/delete-formelement.html [moved from testing/web-platform/tests/xhr/formdata-delete.htm with 61% similarity]
testing/web-platform/tests/xhr/formdata/delete.any.js [new file with mode: 0644]
testing/web-platform/tests/xhr/formdata/foreach.any.js [moved from testing/web-platform/tests/xhr/formdata-foreach.html with 88% similarity]
testing/web-platform/tests/xhr/formdata/get-formelement.html [moved from testing/web-platform/tests/xhr/formdata-get.htm with 55% similarity]
testing/web-platform/tests/xhr/formdata/get.any.js [new file with mode: 0644]
testing/web-platform/tests/xhr/formdata/has-formelement.html [moved from testing/web-platform/tests/xhr/formdata-has.htm with 58% similarity]
testing/web-platform/tests/xhr/formdata/has.any.js [new file with mode: 0644]
testing/web-platform/tests/xhr/formdata/set-blob.any.js [moved from testing/web-platform/tests/xhr/formdata-set-blob.html with 80% similarity]
testing/web-platform/tests/xhr/formdata/set-formelement.html [new file with mode: 0644]
testing/web-platform/tests/xhr/formdata/set.any.js [new file with mode: 0644]