diff options
author | Moonchild <moonchild@palemoon.org> | 2021-02-04 19:41:06 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-02-04 19:41:06 +0000 |
commit | 914368530ba622ff0117cd34bec058fb0d862155 (patch) | |
tree | 6c29459914d1b01ed27fad039d0b982d1dbc32c3 /testing/web-platform/tests/XMLHttpRequest/formdata-delete.htm | |
parent | c5ad76a2875ca5c06c5bbff7b2f2e3ff7b3599c3 (diff) | |
download | UXP-914368530ba622ff0117cd34bec058fb0d862155.tar UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.gz UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.lz UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.xz UXP-914368530ba622ff0117cd34bec058fb0d862155.zip |
Issue #439 - Remove web-platform tests from the tree.
This removes a total of 23,936 files we would never use nor have the capacity
to properly maintain or keep up-to-date.
Diffstat (limited to 'testing/web-platform/tests/XMLHttpRequest/formdata-delete.htm')
-rw-r--r-- | testing/web-platform/tests/XMLHttpRequest/formdata-delete.htm | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/testing/web-platform/tests/XMLHttpRequest/formdata-delete.htm b/testing/web-platform/tests/XMLHttpRequest/formdata-delete.htm deleted file mode 100644 index 283b44b5a..000000000 --- a/testing/web-platform/tests/XMLHttpRequest/formdata-delete.htm +++ /dev/null @@ -1,65 +0,0 @@ -<!doctype html> -<html lang=en> -<meta charset=utf-8> -<title>FormData: delete</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> - <link rel="help" href="https://xhr.spec.whatwg.org/#dom-formdata-get" /> - <link rel="help" href="https://xhr.spec.whatwg.org/#dom-formdata-getall" /> -<div id="log"></div> -<form id="form1"> - <input type="hidden" name="key" value="value1"> - <input type="hidden" name="key" value="value2"> -</form> -<form id="form2"> - <input type="hidden" name="key1" value="value1"> - <input type="hidden" name="key2" value="value2"> -</form> -<form id="empty-form" /> -<script> - test(function() { - var fd = create_formdata(['key', 'value1'], ['key', 'value2']); - fd.delete('key'); - assert_equals(fd.get('key'), null); - }, 'testFormDataDelete'); - test(function() { - var fd = new FormData(document.getElementById('form1')); - fd.delete('key'); - assert_equals(fd.get('key'), null); - }, 'testFormDataDeleteFromForm'); - test(function() { - var fd = new FormData(document.getElementById('form1')); - fd.delete('nil'); - assert_equals(fd.get('key'), 'value1'); - }, 'testFormDataDeleteFromFormNonExistentKey'); - test(function() { - var fd = new FormData(document.getElementById('form2')); - fd.delete('key1'); - assert_equals(fd.get('key1'), null); - assert_equals(fd.get('key2'), 'value2'); - }, 'testFormDataDeleteFromFormOtherKey'); - test(function() { - var fd = new FormData(document.getElementById('empty-form')); - fd.delete('key'); - assert_equals(fd.get('key'), null); - }, 'testFormDataDeleteFromEmptyForm'); - test(function() { - var fd = create_formdata(['key', 'value1'], ['key', 'value2']); - fd.delete('nil'); - assert_equals(fd.get('key'), 'value1'); - }, 'testFormDataDeleteNonExistentKey'); - test(function() { - var fd = create_formdata(['key1', 'value1'], ['key2', 'value2']); - fd.delete('key1'); - assert_equals(fd.get('key1'), null); - assert_equals(fd.get('key2'), 'value2'); - }, 'testFormDataDeleteOtherKey'); - - function create_formdata() { - var fd = new FormData(); - for (var i = 0; i < arguments.length; i++) { - fd.append.apply(fd, arguments[i]); - }; - return fd; - } -</script> |