summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/performance-timeline/navigation-id-worker-created-entries.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/performance-timeline/navigation-id-worker-created-entries.html')
-rw-r--r--testing/web-platform/tests/performance-timeline/navigation-id-worker-created-entries.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/web-platform/tests/performance-timeline/navigation-id-worker-created-entries.html b/testing/web-platform/tests/performance-timeline/navigation-id-worker-created-entries.html
new file mode 100644
index 0000000000..96fc57be1d
--- /dev/null
+++ b/testing/web-platform/tests/performance-timeline/navigation-id-worker-created-entries.html
@@ -0,0 +1,27 @@
+<!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> \ No newline at end of file