Files
sousa-gecko/tools/profiler/tests/browser/inline_script_test.html
T
Nazım Can Altınova 1ba9f601bc Bug 1999953 - Add some tests for source table and specifically the start line/column information r=mstange,profiler-reviewers
This patch adds tests for the changes that I made in the previous patch.
But also while I was adding it I realized that we didn't add a test for
the source table itself. This patch also adds some basic tests for
checking if the source table is well formed.

Differential Revision: https://phabricator.services.mozilla.com/D272638
2026-03-20 16:28:17 +00:00

32 lines
644 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Inline Script Test</title>
</head>
<body>
<script>
function inlineFunction1() {
// Busy wait to ensure we get sampled.
const startTime = Date.now();
while (Date.now() - startTime < 100) {
// Busy loop.
}
return "test1";
}
inlineFunction1();
</script>
<h1>Test Page</h1>
<script>
function inlineFunction2() {
// Busy wait to ensure we get sampled.
const startTime = Date.now();
while (Date.now() - startTime < 100) {
// Busy loop.
}
return "test2";
}
inlineFunction2();
</script>
</body>
</html>