Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/workers/worker-with-performance-observer.html

Issue 2953993003: Add LayoutTest for PerformanceObserver inside Worker (Closed)
Patch Set: DontExpose Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698