diff options
author | Delan Azabani <dazabani@igalia.com> | 2025-04-08 18:45:02 +0800 |
---|---|---|
committer | Delan Azabani <dazabani@igalia.com> | 2025-04-08 19:25:56 +0800 |
commit | 3b1373e3ed0ae68aa81b1a97dd5ed9e6edf8db89 (patch) | |
tree | 8cc9350173254e0482d374def4b7dab5c8ce0b01 /python/servo/devtools_tests | |
parent | 95eedb997ae459002c73ec61aa4c6c45d0cc358e (diff) | |
download | servo-3b1373e3ed0ae68aa81b1a97dd5ed9e6edf8db89.tar.gz servo-3b1373e3ed0ae68aa81b1a97dd5ed9e6edf8db89.zip |
Devtools: add automated test for Debugger > Sources
Co-authored-by: atbrakhi <atbrakhi@igalia.com>
Signed-off-by: Delan Azabani <dazabani@igalia.com>
Diffstat (limited to 'python/servo/devtools_tests')
-rw-r--r-- | python/servo/devtools_tests/sources/classic.js | 1 | ||||
-rw-r--r-- | python/servo/devtools_tests/sources/module.js | 2 | ||||
-rw-r--r-- | python/servo/devtools_tests/sources/test.html | 11 | ||||
-rw-r--r-- | python/servo/devtools_tests/sources/worker.js | 1 |
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"); |