https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e7d3527321e5e94401ce1e6d1714bee8205b9e4a authored by Hiroshige Hayashizaki on 22 December 2018, 07:14:30 UTC
[wpt/upgrade-insecure-requests] Fix generateRedirect()
Tip revision: e7d3527
supported-usertiming-types.any.js
test(() => {
  if (typeof PerformanceObserver.supportedEntryTypes === "undefined")
    assert_unreached("supportedEntryTypes is not supported.");
  const types = PerformanceObserver.supportedEntryTypes;
  assert_true(types.includes("mark"),
    "There should be 'mark' in PerformanceObserver.supportedEntryTypes");
  assert_true(types.includes("measure"),
    "There should be 'measure' in PerformanceObserver.supportedEntryTypes");
  assert_greater_than(types.indexOf("measure"), types.indexOf('mark'),
    "The 'measure' entry should appear after the 'mark' entry");
}, "supportedEntryTypes contains 'mark' and 'measure'.");
back to top