Chromium Code Reviews| Index: chrome/test/data/notifications/android_test_worker.js |
| diff --git a/chrome/test/data/notifications/android_test_worker.js b/chrome/test/data/notifications/android_test_worker.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..84de7b5268e039b028842b934e53b255cc721248 |
| --- /dev/null |
| +++ b/chrome/test/data/notifications/android_test_worker.js |
| @@ -0,0 +1,14 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +var messagePort = null; |
| + |
| +addEventListener('message', function(event) { |
| + messagePort = event.data; |
| + messagePort.postMessage('ready'); |
| +}); |
| + |
| +addEventListener('notificationclick', function(event) { |
|
Michael van Ouwerkerk
2015/02/26 17:24:23
This doesn't do anything. Why is it included?
Peter Beverloo
2015/02/26 18:22:38
Took it out. Future tests will need it.
|
| + |
| +}); |