summaryrefslogtreecommitdiffstats
path: root/browser/modules/test/usageTelemetrySearchSuggestions.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'browser/modules/test/usageTelemetrySearchSuggestions.sjs')
-rw-r--r--browser/modules/test/usageTelemetrySearchSuggestions.sjs9
1 files changed, 9 insertions, 0 deletions
diff --git a/browser/modules/test/usageTelemetrySearchSuggestions.sjs b/browser/modules/test/usageTelemetrySearchSuggestions.sjs
new file mode 100644
index 000000000..1978b4f66
--- /dev/null
+++ b/browser/modules/test/usageTelemetrySearchSuggestions.sjs
@@ -0,0 +1,9 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+function handleRequest(req, resp) {
+ let suffixes = ["foo", "bar"];
+ let data = [req.queryString, suffixes.map(s => req.queryString + s)];
+ resp.setHeader("Content-Type", "application/json", false);
+ resp.write(JSON.stringify(data));
+}