https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f5bb782c766f17893c02dea2539281efb173f551 authored by Han Leon on 13 May 2018, 12:29:46 UTC
[ServiceWorker] Propagate change for ServiceWorkerRegistration#updateViaCache
Tip revision: f5bb782
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