trisquel-icecat/icecat/tools/profiler/tests/browser/tracing.html
2025-10-06 02:35:48 -06:00

24 lines
574 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Do some naive JS executions</title>
<script>
function a() {
b();
}
function b() {
document.body.setAttribute("foo", "bar");
navigator.userAgent;
window.dispatchEvent(new Event("CustomEvent"));
document.body.click();
}
window.onload = a;
window.onclick = () => console.log("click!");
window.addEventListener("CustomEvent", function customEventHandler() {});
</script>
</head>
<body>
Execute some naive code which should be traced.
</body>
</html>