diff options
Diffstat (limited to 'browser/modules/test/contentSearchSuggestions.sjs')
-rw-r--r-- | browser/modules/test/contentSearchSuggestions.sjs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/browser/modules/test/contentSearchSuggestions.sjs b/browser/modules/test/contentSearchSuggestions.sjs new file mode 100644 index 000000000..1978b4f66 --- /dev/null +++ b/browser/modules/test/contentSearchSuggestions.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)); +} |