summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/about/searchSuggestionEngine.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'browser/base/content/test/about/searchSuggestionEngine.sjs')
-rw-r--r--browser/base/content/test/about/searchSuggestionEngine.sjs9
1 files changed, 9 insertions, 0 deletions
diff --git a/browser/base/content/test/about/searchSuggestionEngine.sjs b/browser/base/content/test/about/searchSuggestionEngine.sjs
new file mode 100644
index 0000000000..1978b4f665
--- /dev/null
+++ b/browser/base/content/test/about/searchSuggestionEngine.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));
+}