OLD | NEW |
1 Description | |
2 | |
3 This test validates that the performance.mark() method is working properly. This
test creates the following marks to test this method: | |
4 | |
5 "mark1": created using a normal mark() call | |
6 "mark1": duplicate of the first mark, used to confirm names can be re-used | |
7 After creating each mark, the existence of these marks is validated by calling p
erformance.getEntriesByName() (both with and without the entryType parameter pro
vided), performance.getEntriesByType(), and performance.getEntries() | 1 After creating each mark, the existence of these marks is validated by calling p
erformance.getEntriesByName() (both with and without the entryType parameter pro
vided), performance.getEntriesByType(), and performance.getEntries() |
8 | 2 This is a testharness.js-based test. |
9 PASS window.performance is defined | 3 PASS window.performance is defined |
10 PASS window.performance.getEntriesByName("mark1")[0].name == "mark1" | 4 PASS window.performance.getEntriesByName("mark1")[0].name == "mark1" |
11 PASS window.performance.getEntriesByName("mark1")[0].startTime ~== (up to 20ms
difference allowed) | 5 PASS window.performance.getEntriesByName("mark1")[0].startTime ~== (up to 20ms
difference allowed) |
12 PASS window.performance.getEntriesByName("mark1")[0].entryType == "mark" | 6 PASS window.performance.getEntriesByName("mark1")[0].entryType == "mark" |
13 PASS window.performance.getEntriesByName("mark1")[0].duration == 0 | 7 PASS window.performance.getEntriesByName("mark1")[0].duration == 0 |
14 PASS window.performance.getEntriesByName("mark1")[1].name == "mark1" | 8 PASS window.performance.getEntriesByName("mark1")[1].name == "mark1" |
15 PASS window.performance.getEntriesByName("mark1")[1].startTime ~== (up to 20ms
difference allowed) | 9 PASS window.performance.getEntriesByName("mark1")[1].startTime ~== (up to 20ms
difference allowed) |
16 PASS window.performance.getEntriesByName("mark1")[1].entryType == "mark" | 10 PASS window.performance.getEntriesByName("mark1")[1].entryType == "mark" |
17 PASS window.performance.getEntriesByName("mark1")[1].duration == 0 | 11 PASS window.performance.getEntriesByName("mark1")[1].duration == 0 |
18 PASS window.performance.getEntriesByName("mark1", "mark") returns an object cont
aining the "mark1" mark in the correct order | 12 PASS window.performance.getEntriesByName("mark1", "mark") returns an object cont
aining the "mark1" mark in the correct order |
19 PASS window.performance.getEntriesByName("mark1", "mark") returns an object cont
aining the duplicate "mark1" mark in the correct order | 13 PASS window.performance.getEntriesByName("mark1", "mark") returns an object cont
aining the duplicate "mark1" mark in the correct order |
20 PASS The "mark1" mark returned by window.performance.getEntriesByName("mark1", "
mark") matches the the "mark1" mark returned by window.performance.getEntriesByN
ame("mark1") | 14 PASS The "mark1" mark returned by window.performance.getEntriesByName("mark1", "
mark") matches the the "mark1" mark returned by window.performance.getEntriesByN
ame("mark1") |
21 PASS The duplicate "mark1" mark returned by window.performance.getEntriesByName(
"mark1", "mark") matches the the duplicate "mark1" mark returned by window.perfo
rmance.getEntriesByName("mark1") | 15 PASS The duplicate "mark1" mark returned by window.performance.getEntriesByName(
"mark1", "mark") matches the the duplicate "mark1" mark returned by window.perfo
rmance.getEntriesByName("mark1") |
22 PASS window.performance.getEntries() returns an object containing the original "
mark1" mark in the correct order | 16 PASS window.performance.getEntries() returns an object containing the original "
mark1" mark in the correct order |
23 PASS window.performance.getEntries() returns an object containing the duplicate
"mark1" mark in the correct order | 17 PASS window.performance.getEntries() returns an object containing the duplicate
"mark1" mark in the correct order |
24 PASS The "mark1" mark returned by window.performance.getEntries() matches the th
e "mark1" mark returned by window.performance.getEntriesByName("mark1") | 18 PASS The "mark1" mark returned by window.performance.getEntries() matches the th
e "mark1" mark returned by window.performance.getEntriesByName("mark1") |
25 PASS The "mark1" mark returned by window.performance.getEntries() matches the th
e duplicate "mark1" mark returned by window.performance.getEntriesByName("mark1"
) | 19 PASS The "mark1" mark returned by window.performance.getEntries() matches the th
e duplicate "mark1" mark returned by window.performance.getEntriesByName("mark1"
) |
26 PASS window.performance.getEntriesByType("mark") returns an object containing th
e original "mark1" mark in the correct order | 20 PASS window.performance.getEntriesByType("mark") returns an object containing th
e original "mark1" mark in the correct order |
27 PASS window.performance.getEntriesByType("mark") returns an object containing th
e duplicate "mark1" mark in the correct order | 21 PASS window.performance.getEntriesByType("mark") returns an object containing th
e duplicate "mark1" mark in the correct order |
28 PASS The "mark1" mark returned by window.performance.getEntriesByType("mark") ma
tches the the "mark1" mark returned by window.performance.getEntriesByName("mark
1") | 22 PASS The "mark1" mark returned by window.performance.getEntriesByType("mark") ma
tches the the "mark1" mark returned by window.performance.getEntriesByName("mark
1") |
29 PASS The "mark1" mark returned by window.performance.getEntriesByType("mark") ma
tches the the duplicate "mark1" mark returned by window.performance.getEntriesBy
Name("mark1") | 23 PASS The "mark1" mark returned by window.performance.getEntriesByType("mark") ma
tches the the duplicate "mark1" mark returned by window.performance.getEntriesBy
Name("mark1") |
| 24 Harness: the test ran to completion. |
30 | 25 |
OLD | NEW |