blob: a0225ad2f76fdcfebb0a7c9aff9bd0030ecf86aa [file] [log] [blame]
test(() => {
if (typeof PerformanceObserver.supportedEntryTypes === "undefined")
assert_unreached("supportedEntryTypes is not supported.");
const types = PerformanceObserver.supportedEntryTypes;
assert_greater_than(types.length, 0,
"There should be at least one entry in supportedEntryTypes.");
for (let i = 1; i < types.length; i++) {
assert_true(types[i-1] < types[i],
"The strings '" + types[i-1] + "' and '" + types[i] +
"' are repeated or they are not in alphabetical order.")
}
}, "supportedEntryTypes exists and returns entries in alphabetical order");