| OLD | NEW |
| (Empty) |
| 1 After creating each measure, the existence of these measures is validated by cal
ling performance.getEntriesByName() (both with and without the entryType paramet
er provided), performance.getEntriesByType(), and performance.getEntries() | |
| 2 This is a testharness.js-based test. | |
| 3 PASS window.performance is defined | |
| 4 PASS window.performance.getEntriesByName("measure_no_start_no_end")[0].name == "
measure_no_start_no_end" | |
| 5 PASS window.performance.getEntriesByName("measure_no_start_no_end")[0].startTime
== | |
| 6 PASS window.performance.getEntriesByName("measure_no_start_no_end")[0].entryType
== "measure" | |
| 7 PASS window.performance.getEntriesByName("measure_no_start_no_end")[0].duration
~== (up to 20ms difference allowed) | |
| 8 PASS window.performance.getEntriesByName("measure_start_no_end")[0].name == "mea
sure_start_no_end" | |
| 9 PASS window.performance.getEntriesByName("measure_start_no_end")[0].startTime ==
| |
| 10 PASS window.performance.getEntriesByName("measure_start_no_end")[0].entryType ==
"measure" | |
| 11 PASS window.performance.getEntriesByName("measure_start_no_end")[0].duration ~==
(up to 20ms difference allowed) | |
| 12 PASS window.performance.getEntriesByName("measure_start_end")[0].name == "measur
e_start_end" | |
| 13 PASS window.performance.getEntriesByName("measure_start_end")[0].startTime == | |
| 14 PASS window.performance.getEntriesByName("measure_start_end")[0].entryType == "m
easure" | |
| 15 PASS window.performance.getEntriesByName("measure_start_end")[0].duration ~== (
up to 20ms difference allowed) | |
| 16 PASS window.performance.getEntriesByName("measure_no_start_no_end")[1].name == "
measure_no_start_no_end" | |
| 17 PASS window.performance.getEntriesByName("measure_no_start_no_end")[1].startTime
== | |
| 18 PASS window.performance.getEntriesByName("measure_no_start_no_end")[1].entryType
== "measure" | |
| 19 PASS window.performance.getEntriesByName("measure_no_start_no_end")[1].duration
~== (up to 20ms difference allowed) | |
| 20 PASS window.performance.getEntriesByName("measure_no_start_no_end", "measure")[0
] returns an object containing the "measure_no_start_no_end" measure in the corr
ect order, and its value matches the "measure_no_start_no_end" measure returned
by window.performance.getEntriesByName("measure_no_start_no_end") | |
| 21 PASS window.performance.getEntriesByName("measure_start_no_end", "measure")[0] r
eturns an object containing the "measure_start_no_end" measure in the correct or
der, and its value matches the "measure_start_no_end" measure returned by window
.performance.getEntriesByName("measure_start_no_end") | |
| 22 PASS window.performance.getEntriesByName("measure_start_end", "measure")[0] retu
rns an object containing the "measure_start_end" measure in the correct order, a
nd its value matches the "measure_start_end" measure returned by window.performa
nce.getEntriesByName("measure_start_end") | |
| 23 PASS window.performance.getEntriesByName("measure_no_start_no_end", "measure")[1
] returns an object containing the "measure_no_start_no_end" measure in the corr
ect order, and its value matches the "measure_no_start_no_end" measure returned
by window.performance.getEntriesByName("measure_no_start_no_end") | |
| 24 PASS window.performance.getEntries() returns an object containing the "measure_n
o_start_no_end" measure, and it's value matches the measure returned by window.p
erformance.getEntriesByName("measure_no_start_no_end")[0]. | |
| 25 PASS window.performance.getEntries() returns an object containing the "measure_s
tart_no_end" measure, and it's value matches the measure returned by window.perf
ormance.getEntriesByName("measure_start_no_end")[0]. | |
| 26 PASS window.performance.getEntries() returns an object containing the "measure_s
tart_end" measure, and it's value matches the measure returned by window.perform
ance.getEntriesByName("measure_start_end")[0]. | |
| 27 PASS window.performance.getEntries() returns an object containing the "measure_n
o_start_no_end" measure, and it's value matches the measure returned by window.p
erformance.getEntriesByName("measure_no_start_no_end")[1]. | |
| 28 PASS window.performance.getEntries() returns an object containing all test measu
res in order. | |
| 29 PASS window.performance.getEntriesByType("measure") returns an object containing
the "measure_no_start_no_end" measure, and it's value matches the measure retur
ned by window.performance.getEntriesByName("measure_no_start_no_end")[0]. | |
| 30 PASS window.performance.getEntriesByType("measure") returns an object containing
the "measure_start_no_end" measure, and it's value matches the measure returned
by window.performance.getEntriesByName("measure_start_no_end")[0]. | |
| 31 PASS window.performance.getEntriesByType("measure") returns an object containing
the "measure_start_end" measure, and it's value matches the measure returned by
window.performance.getEntriesByName("measure_start_end")[0]. | |
| 32 PASS window.performance.getEntriesByType("measure") returns an object containing
the "measure_no_start_no_end" measure, and it's value matches the measure retur
ned by window.performance.getEntriesByName("measure_no_start_no_end")[1]. | |
| 33 PASS window.performance.getEntriesByType("measure") returns an object containing
all test measures in order. | |
| 34 Harness: the test ran to completion. | |
| 35 | |
| OLD | NEW |