https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 40dc6ae8bbd4d1ce358402dd518c8ec26439913b authored by Timothy Gu on 31 July 2018, 19:10:11 UTC
Capture readyState changes before document.open too
Tip revision: 40dc6ae
worker-with-performance-observer.html
<!doctype html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
async_test(function(t) {
  const worker = new Worker("resources/worker-with-performance-observer.js");
  worker.onmessage = function(event) {
    t.step(() => assert_equals(event.data, 'SUCCESS'));
    t.done();
  }
}, 'Worker: Test Performance Observer inside a worker.');
</script>
</body>
</html>
back to top