Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /user-timing/entry_type.any.html - WPT Dashboard Interop Dashboard
- /user-timing/entry_type.any.worker.html - WPT Dashboard Interop Dashboard
test(function () {
self.performance.mark('mark');
var mark_entry = self.performance.getEntriesByName('mark')[0];
assert_equals(Object.prototype.toString.call(mark_entry), '[object PerformanceMark]', 'Class name of mark entry should be PerformanceMark.');
}, "Validate the user timing entry type PerformanceMark");
test(function () {
self.performance.measure('measure');
var measure_entry = self.performance.getEntriesByName('measure')[0];
assert_equals(Object.prototype.toString.call(measure_entry), '[object PerformanceMeasure]', 'Class name of measure entry should be PerformanceMeasure.');
}, "Validate the user timing entry type PerformanceMeasure");