| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 var notification = null; | 2 var notification = null; |
| 3 var chromeExtensionsUrl = "chrome://settings/extensionSettings"; | 3 var chromeExtensionsUrl = "chrome://extensions/"; |
| 4 | 4 |
| 5 // Shows the notification window using the specified URL. | 5 // Shows the notification window using the specified URL. |
| 6 // Control continues at onNotificationDone(). | 6 // Control continues at onNotificationDone(). |
| 7 function showNotification(url) { | 7 function showNotification(url) { |
| 8 notification = window.webkitNotifications.createHTMLNotification(url); | 8 notification = window.webkitNotifications.createHTMLNotification(url); |
| 9 notification.onerror = function() { | 9 notification.onerror = function() { |
| 10 chrome.test.fail("Failed to show notification."); | 10 chrome.test.fail("Failed to show notification."); |
| 11 }; | 11 }; |
| 12 notification.show(); | 12 notification.show(); |
| 13 } | 13 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 41 chrome.test.succeed(); | 41 chrome.test.succeed(); |
| 42 }, | 42 }, |
| 43 function absoluteURL() { | 43 function absoluteURL() { |
| 44 showNotification(chrome.extension.getURL("notification.html")); | 44 showNotification(chrome.extension.getURL("notification.html")); |
| 45 }, | 45 }, |
| 46 function relativeURL() { | 46 function relativeURL() { |
| 47 showNotification('notification.html'); | 47 showNotification('notification.html'); |
| 48 } | 48 } |
| 49 ]); | 49 ]); |
| 50 </script> | 50 </script> |
| OLD | NEW |