| <title>FormData.append</title> |
| <link rel=help href=https://xhr.spec.whatwg.org/#dom-formdata-append> |
| <script src=/resources/testharness.js></script> |
| <script src=/resources/testharnessreport.js></script> |
| function test_formdata(creator, verifier, description) { |
| async_test(description).step(function() { |
| var xhr = new XMLHttpRequest(); |
| xhr.onload = this.step_func(function() { |
| verifier(xhr.responseText); |
| xhr.open("POST", "resources/upload.py"); |
| test_formdata(function() { |
| fd.append("name", new String("value")); |
| assert_equals(data, "name=value,\n"); |
| }, "Passing a String object to FormData.append should work."); |