Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: LayoutTests/fast/workers/resources/worker-formdata.js

Issue 227483008: Support FormData on WorkerGlobalScope. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/workers/worker-formdata.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/workers/resources/worker-formdata.js
diff --git a/LayoutTests/fast/workers/resources/worker-formdata.js b/LayoutTests/fast/workers/resources/worker-formdata.js
new file mode 100644
index 0000000000000000000000000000000000000000..b0c1a51e6dbc1cfef0d0098a98c053495b22e2aa
--- /dev/null
+++ b/LayoutTests/fast/workers/resources/worker-formdata.js
@@ -0,0 +1,19 @@
+importScripts('../../../resources/js-test.js');
+
+description("Test FormData interface object");
+
+shouldBeDefined("FormData");
+shouldBe("FormData.length", "0");
+
+var formData = new FormData();
+
+shouldBeNonNull("formData");
+
+shouldBeTrue("FormData.prototype.hasOwnProperty('append')");
+shouldNotThrow("formData.append('key', 'value');");
+var blob = new Blob([]);
+shouldBeNonNull("blob");
+shouldNotThrow("formData.append('key', blob);");
+shouldNotThrow("formData.append('key', blob, 'filename');");
+shouldThrow("postMessage(formData)");
+finishJSTest();
« no previous file with comments | « no previous file | LayoutTests/fast/workers/worker-formdata.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698