1 importScripts('../../../resources/js-test.js');
3 description("Test FormData interface object");
5 shouldBeDefined("FormData");
6 shouldBe("FormData.length", "0");
8 var formData = new FormData();
10 shouldBeNonNull("formData");
12 shouldBeTrue("FormData.prototype.hasOwnProperty('append')");
13 shouldNotThrow("formData.append('key', 'value');");
14 var blob = new Blob([]);
15 shouldBeNonNull("blob");
16 shouldNotThrow("formData.append('key', blob);");
17 shouldNotThrow("formData.append('key', blob, 'filename');");
18 shouldThrow("postMessage(formData)");