summaryrefslogtreecommitdiffstats
path: root/devtools/shared/resources/tests/sources.html
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/shared/resources/tests/sources.html')
-rw-r--r--devtools/shared/resources/tests/sources.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/devtools/shared/resources/tests/sources.html b/devtools/shared/resources/tests/sources.html
new file mode 100644
index 0000000000..d765f25ef0
--- /dev/null
+++ b/devtools/shared/resources/tests/sources.html
@@ -0,0 +1,22 @@
+<!-- Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ -->
+<!doctype HTML>
+<html>
+ <head>
+ <meta charset="utf-8"/>
+ </head>
+ <body>
+ <script type="text/javascript">
+ "use strict";
+ /* eslint-disable */
+ function inlineSource() {}
+ // Assign it to a global in order to avoid it being GCed
+ eval("this.global = function evalFunction() {}");
+ // Assign the worker to a global variable in order to avoid
+ // having it be GCed.
+ this.worker = new Worker("worker-sources.js");
+ window.registrationPromise = navigator.serviceWorker.register("service-worker-sources.js");
+ </script>
+ <script src="sources.js"></script>
+ </body>
+</html>