| OLD | NEW |
| (Empty) |
| 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() | |
| 2 This is a testharness.js-based test. | |
| 3 PASS window.performance is defined | |
| 4 PASS window.performance.getEntriesByName("mark1")[0].name == "mark1" | |
| 5 PASS window.performance.getEntriesByName("mark1")[0].startTime ~== (up to 20ms
difference allowed) | |
| 6 PASS window.performance.getEntriesByName("mark1")[0].entryType == "mark" | |
| 7 PASS window.performance.getEntriesByName("mark1")[0].duration == 0 | |
| 8 PASS window.performance.getEntriesByName("mark1")[1].name == "mark1" | |
| 9 PASS window.performance.getEntriesByName("mark1")[1].startTime ~== (up to 20ms
difference allowed) | |
| 10 PASS window.performance.getEntriesByName("mark1")[1].entryType == "mark" | |
| 11 PASS window.performance.getEntriesByName("mark1")[1].duration == 0 | |
| 12 PASS window.performance.getEntriesByName("mark1", "mark") returns an object cont
aining the "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 | |
| 14 PASS The "mark1" mark returned by window.performance.getEntriesByName("mark1", "
mark") matches the the "mark1" mark returned by window.performance.getEntriesByN
ame("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") | |
| 16 PASS window.performance.getEntries() returns an object containing the original "
mark1" mark in the correct order | |
| 17 PASS window.performance.getEntries() returns an object containing the duplicate
"mark1" mark in the correct order | |
| 18 PASS The "mark1" mark returned by window.performance.getEntries() matches the th
e "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"
) | |
| 20 PASS window.performance.getEntriesByType("mark") returns an object containing th
e original "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 | |
| 22 PASS The "mark1" mark returned by window.performance.getEntriesByType("mark") ma
tches the the "mark1" mark returned by window.performance.getEntriesByName("mark
1") | |
| 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. | |
| 25 | |
| OLD | NEW |