From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001
From: Daniel Baumann
Date: Sun, 7 Apr 2024 11:22:09 +0200
Subject: Adding upstream version 110.0.1.
Signed-off-by: Daniel Baumann
---
.../web-platform/tests/user-timing/measure.html | 362 +++++++++++++++++++++
1 file changed, 362 insertions(+)
create mode 100644 testing/web-platform/tests/user-timing/measure.html
(limited to 'testing/web-platform/tests/user-timing/measure.html')
diff --git a/testing/web-platform/tests/user-timing/measure.html b/testing/web-platform/tests/user-timing/measure.html
new file mode 100644
index 0000000000..40f71a3362
--- /dev/null
+++ b/testing/web-platform/tests/user-timing/measure.html
@@ -0,0 +1,362 @@
+
+
+
+
+
+ window.performance User Timing measure() method is working properly
+
+
+
+
+
+
+
+
+
+
+
Description
+
This test validates that the performance.measure() method is working properly. This test creates the
+ following measures to test this method:
+
+
"measure_no_start_no_end": created using a measure() call without a startMark or endMark
+ provided
+
"measure_start_no_end": created using a measure() call with only the startMark provided
+
"measure_start_end": created using a measure() call with both a startMark or endMark provided
+
"measure_no_start_end": created using a measure() call with only the endMark provided
+
"measure_no_start_no_end": duplicate of the first measure, used to confirm names can be re-used
+
+ After creating each measure, the existence of these measures is validated by calling
+ performance.getEntriesByName() (both with and without the entryType parameter provided),
+ performance.getEntriesByType(), and performance.getEntries()
+