| Index: chrome/test/data/notifications/android_test.html
|
| diff --git a/chrome/test/data/notifications/android_test.html b/chrome/test/data/notifications/android_test.html
|
| index 7d6dfce5eba56a0858556cad37b9f2a6e9bdc34b..073972dfd1f80537c9519257bd3fbd34f3e60528 100644
|
| --- a/chrome/test/data/notifications/android_test.html
|
| +++ b/chrome/test/data/notifications/android_test.html
|
| @@ -11,7 +11,15 @@
|
| <script>
|
| function showNotification(title, options) {
|
| GetActivatedServiceWorker('android_test_worker.js', location.pathname)
|
| - .then(registration => registration.showNotification(title, options))
|
| + .then(registration => {
|
| + messagePort.addEventListener('message', function replyListener(event) {
|
| + if (event.data.startsWith('reply: ')) {
|
| + messagePort.removeEventListener('message', replyListener);
|
| + sendToTest(event.data);
|
| + }
|
| + });
|
| + return registration.showNotification(title, options);
|
| + })
|
| .catch(sendToTest);
|
| }
|
|
|
| @@ -30,4 +38,4 @@
|
| }
|
| </script>
|
| </body>
|
| -</html>
|
| +</html>
|
|
|