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
32 lines
644 B
HTML
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>
|