https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ee77ceced2790d1ab350b2fefc63d9d97c9205b0 authored by Marcos Cáceres on 21 November 2018, 07:58:49 UTC
Bug fixes
Tip revision: ee77cec
entry_type.any.js
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");
back to top