| Index: LayoutTests/fast/notifications/resources/notification-worker.js
|
| diff --git a/LayoutTests/fast/notifications/resources/notification-worker.js b/LayoutTests/fast/notifications/resources/notification-worker.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d69be0e39e0b930bd3703318c72b9ec42644b021
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/notifications/resources/notification-worker.js
|
| @@ -0,0 +1,23 @@
|
| +var port = self;
|
| +
|
| +function isDedicatedWorker()
|
| +{
|
| + return !!self.postMessage;
|
| +}
|
| +
|
| +self.addEventListener('connect', function(event)
|
| +{
|
| + port = event.ports[0];
|
| + runTest();
|
| +});
|
| +
|
| +var testRunner = {
|
| + simulateWebNotificationClick: function(title)
|
| + {
|
| + if (port)
|
| + port.postMessage('simulateClick::' + title);
|
| + }
|
| +};
|
| +
|
| +if (isDedicatedWorker())
|
| + runTest();
|
|
|