summaryrefslogtreecommitdiffstats
path: root/devtools/client/performance/test/doc_worker.html
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/performance/test/doc_worker.html')
-rw-r--r--devtools/client/performance/test/doc_worker.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/devtools/client/performance/test/doc_worker.html b/devtools/client/performance/test/doc_worker.html
new file mode 100644
index 000000000..fd1962157
--- /dev/null
+++ b/devtools/client/performance/test/doc_worker.html
@@ -0,0 +1,29 @@
+<!-- Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ -->
+<!doctype html>
+
+<html>
+ <head>
+ <meta charset="utf-8"/>
+ <title>Performance test page</title>
+ </head>
+
+ <body>
+ <script type="text/javascript">
+ "use strict";
+
+ /* exported performWork */
+ function performWork() {
+ const worker = new Worker("js_simpleWorker.js");
+
+ worker.addEventListener("message", function (e) {
+ console.log(e.data);
+ console.timeStamp("Done");
+ }, false);
+
+ worker.postMessage("Hello World");
+ }
+ </script>
+ </body>
+
+</html>