browser/base/content/test/general/file_dom_notifications.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:785928f1ef73
1 <html>
2 <head>
3 <script>
4 "use strict";
5
6 function showNotification() {
7 var options = {
8 dir: undefined,
9 lang: undefined,
10 body: "Test body",
11 tag: "Test tag",
12 icon: undefined,
13 };
14 return new Notification("Test title", options);
15 }
16 </script>
17 </head>
18 <body>
19 <form id="notificationForm" onsubmit="showNotification();">
20 <input type="submit" value="Show notification" id="submit"/>
21 </form>
22 </body>
23 </html>

mercurial