summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/sjs_random-javascript.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/debugger/test/mochitest/sjs_random-javascript.sjs')
-rw-r--r--devtools/client/debugger/test/mochitest/sjs_random-javascript.sjs11
1 files changed, 11 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/sjs_random-javascript.sjs b/devtools/client/debugger/test/mochitest/sjs_random-javascript.sjs
new file mode 100644
index 000000000..3e0ea8e53
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/sjs_random-javascript.sjs
@@ -0,0 +1,11 @@
+/* Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ */
+
+function handleRequest(request, response) {
+ response.setStatusLine(request.httpVersion, 200, "OK");
+ response.setHeader("Content-Type", "application/javascript; charset=utf-8", false);
+ response.write([
+ "window.setInterval(function bacon() {",
+ " var x = '" + Math.random() + "';",
+ "}, 0);"].join("\n"));
+}