OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <script src="../../resources/testharness.js"></script> | |
5 <script src="../../resources/testharnessreport.js"></script> | |
6 </head> | |
7 <body> | |
8 <script> | |
9 async_test(function(t) { | |
10 var worker = new Worker("resources/worker-with-perfobs.js"); | |
tdresser
2017/07/04 14:31:46
var -> const
npm
2017/07/07 14:45:09
Done.
| |
11 worker.onmessage = function (event) { | |
12 t.step( function() { | |
tdresser
2017/07/04 14:31:46
No space after (
Feel free to use arrow functions
npm
2017/07/07 14:45:09
Done.
| |
13 assert_equals('SUCCESS', event.data); | |
14 }); | |
15 t.done(); | |
16 }; | |
17 }, 'Worker: Test Performance Observer inside a worker.'); | |
18 </script> | |
19 </body> | |
20 </html> | |
OLD | NEW |