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

Side by Side Diff: LayoutTests/fast/notifications/resources/notification-worker.js

Issue 624033003: [WIP] Move Web Notifications to a WebFrame-less code path (Blink). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: current state Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 var port = self;
2
3 function isDedicatedWorker()
4 {
5 return !!self.postMessage;
6 }
7
8 self.addEventListener('connect', function(event)
9 {
10 port = event.ports[0];
11 runTest();
12 });
13
14 var testRunner = {
15 simulateWebNotificationClick: function(title)
16 {
17 if (port)
18 port.postMessage('simulateClick::' + title);
19 }
20 };
21
22 if (isDedicatedWorker())
23 runTest();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698