https://github.com/web-platform-tests/wpt
Raw File
Tip revision: a588436c16db4c8ae8644662124ff1af7e03f0d9 authored by Stephen McGruer on 03 April 2018, 21:32:18 UTC
Web Animations: Add test for Document::getAnimations across iframes
Tip revision: a588436
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