mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add XHR support for FormData
This commit is contained in:
parent
c420a870c1
commit
184b522230
13 changed files with 173 additions and 174 deletions
|
@ -80,8 +80,14 @@
|
|||
assert_equals(fd.get('key'), "null");
|
||||
}, 'testFormDataAppendToFormNull2');
|
||||
test(function() {
|
||||
assert_object_equals(create_formdata(['key', new Blob(), 'blank.txt']).get('key'),
|
||||
new File(new Blob(), 'blank.txt'));
|
||||
var f1 = create_formdata(['key', new Blob(), 'blank.txt']).get('key');
|
||||
var f2 = new File([new Blob()], 'blank.txt');
|
||||
|
||||
var fileAttrs = ['name', 'size', 'type'];
|
||||
|
||||
fileAttrs.forEach(function(attr) {
|
||||
assert_equals(f1[attr], f2[attr], attr + " should be equal");
|
||||
});
|
||||
}, 'testFormDataAppendEmptyBlob');
|
||||
|
||||
function create_formdata() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue