1
0
Fork 0
firefox/testing/web-platform/tests/performance-timeline/navigation-id-worker-created-entries.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

27 lines
No EOL
686 B
HTML

<!doctype html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
promise_test(async () => {
const worker = new Worker("resources/worker-navigation-id.js");
const navigationId = await new Promise(resolve => {
worker.onmessage = (e) => {
resolve(e.data);
};
worker.postMessage('');
});
assert_equals(navigationId.length, 0,
'Navigation id of performance entries created by a worker should be empty.');
}, 'Navigation id of performance entries created by workers should be empty');
</script>
</body>
</html>