| OLD | NEW |
| 1 if (self.importScripts) { |
| 2 importScripts('../../../resources/js-test.js'); |
| 3 importScripts('notification-worker.js'); |
| 4 } |
| 5 |
| 1 function runTest() | 6 function runTest() |
| 2 { | 7 { |
| 3 var notification = new Notification('Hello, world!'); | 8 var notification = new Notification('Hello, world!'); |
| 4 notification.onshow = function() { | 9 notification.onshow = function() { |
| 5 debug('notification.onshow fired.'); | 10 debug('notification.onshow fired.'); |
| 6 if (window.testRunner) | 11 finishJSTest(); |
| 7 testRunner.notifyDone(); | |
| 8 }; | 12 }; |
| 9 | 13 |
| 10 notification.onerror = function() { | 14 notification.onerror = function() { |
| 11 debug('notification.onerror fired.'); | 15 debug('notification.onerror fired.'); |
| 12 if (window.testRunner) | 16 finishJSTest(); |
| 13 testRunner.notifyDone(); | |
| 14 }; | 17 }; |
| 15 } | 18 } |
| OLD | NEW |