blob: 32677c64d3bd5f63e5182541634c3e9abb0a0bea [file] [log] [blame]
importScripts("/resources/testharness.js");
importScripts("resources/webperftestharness.js");
function emit_test(attrName) {
test(function() {
performance.mark(attrName);
performance.clearMarks(attrName);
}, "performance.mark should not throw if used with timing attribute " + attrName
+ " in workers");
}
for (var i in timingAttributes) {
emit_test(timingAttributes[i]);
}
function emit_test2(attrName) {
test(function() {
performance.measure(attrName);
performance.clearMeasures(attrName);
}, "performance.measure should not throw if used with timing attribute " + attrName
+ " in workers");
}
for (var i in timingAttributes) {
emit_test2(timingAttributes[i]);
}
done();