https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0518cdc5e847f3ba10a6fb0e08f3b51b0f5b6574 authored by Mattias Buelens on 08 March 2018, 20:54:03 UTC
Readable byte streams: autoAllocateChunkSize test must not ignore second read
Tip revision: 0518cdc
invoke_with_timing_attributes.worker.js
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();
back to top