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