https://github.com/web-platform-tests/wpt
Raw File
Tip revision: cafaab17fb276177303ea7baec5b070f7989c21e authored by Anne van Kesteren on 20 March 2018, 14:55:59 UTC
Add HTMLOrSVGElement to HTML's IDL
Tip revision: cafaab1
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