aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/devtools_tests
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/devtools_tests')
-rw-r--r--python/servo/devtools_tests/sources/classic.js1
-rw-r--r--python/servo/devtools_tests/sources/module.js2
-rw-r--r--python/servo/devtools_tests/sources/test.html11
-rw-r--r--python/servo/devtools_tests/sources/worker.js1
4 files changed, 15 insertions, 0 deletions
diff --git a/python/servo/devtools_tests/sources/classic.js b/python/servo/devtools_tests/sources/classic.js
new file mode 100644
index 00000000000..84fd1671805
--- /dev/null
+++ b/python/servo/devtools_tests/sources/classic.js
@@ -0,0 +1 @@
+console.log("external classic");
diff --git a/python/servo/devtools_tests/sources/module.js b/python/servo/devtools_tests/sources/module.js
new file mode 100644
index 00000000000..a1d0f1f37cf
--- /dev/null
+++ b/python/servo/devtools_tests/sources/module.js
@@ -0,0 +1,2 @@
+export default 1;
+console.log("external module");
diff --git a/python/servo/devtools_tests/sources/test.html b/python/servo/devtools_tests/sources/test.html
new file mode 100644
index 00000000000..b8e1aa0e334
--- /dev/null
+++ b/python/servo/devtools_tests/sources/test.html
@@ -0,0 +1,11 @@
+<!doctype html><meta charset=utf-8>
+<script src="classic.js"></script>
+<script>
+ console.log("inline classic");
+ new Worker("worker.js");
+</script>
+<script type="module">
+ import module from "./module.js";
+ console.log("inline module");
+</script>
+<script src="https://servo.org/js/load-table.js"></script>
diff --git a/python/servo/devtools_tests/sources/worker.js b/python/servo/devtools_tests/sources/worker.js
new file mode 100644
index 00000000000..a7993a8b5fb
--- /dev/null
+++ b/python/servo/devtools_tests/sources/worker.js
@@ -0,0 +1 @@
+console.log("external classic worker");