Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / resources / worker-formdata.js
blobb0c1a51e6dbc1cfef0d0098a98c053495b22e2aa
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)");
19 finishJSTest();