https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7ea8a74ed7ad55fd3991e599c413cfcb3edb709c authored by Luke Bjerring on 09 April 2018, 21:41:12 UTC
Improve error message for failed wptserve
Tip revision: 7ea8a74
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