https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 374f409cd811fb34b5dc9912ac8fbbf5ff0ff3af authored by Darwin Huang on 22 December 2018, 17:56:00 UTC
Async Clipboard: ReadImage/WriteImage Proof of Concept (experimental).
Tip revision: 374f409
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