| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <div id="description"></div> | 7 <div id="description"></div> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script> | 9 <script> |
| 10 description("Checks that the {title, dir, lang, body, tag, icon} pro
perties are set on the Notification object."); | 10 description("Checks that the {title, dir, lang, body, tag, icon} pro
perties are set on the Notification object."); |
| 11 if (window.testRunner) { | 11 if (window.testRunner) { |
| 12 testRunner.grantWebNotificationPermission("file://"); | 12 testRunner.grantWebNotificationPermission("file://", true); |
| 13 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
| 14 } | 14 } |
| 15 | 15 |
| 16 var options = { | 16 var options = { |
| 17 dir: "rtl", | 17 dir: "rtl", |
| 18 lang: "nl-NL", | 18 lang: "nl-NL", |
| 19 body: "Hallo, wereld!", | 19 body: "Hallo, wereld!", |
| 20 tag: "notification", | 20 tag: "notification", |
| 21 icon: "http://localhost/my_icon.png" | 21 icon: "http://localhost/my_icon.png" |
| 22 }; | 22 }; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 var noTagNotification = new Notification("My Notification"), | 56 var noTagNotification = new Notification("My Notification"), |
| 57 emptyTagNotification = new Notification("My Notification", { tag
: "" }); | 57 emptyTagNotification = new Notification("My Notification", { tag
: "" }); |
| 58 | 58 |
| 59 // Setting an empty string as the tag should be equal to not setting
the tag at all. | 59 // Setting an empty string as the tag should be equal to not setting
the tag at all. |
| 60 shouldBe("noTagNotification.tag", "emptyTagNotification.tag"); | 60 shouldBe("noTagNotification.tag", "emptyTagNotification.tag"); |
| 61 | 61 |
| 62 var successfullyParsed = true; | 62 var successfullyParsed = true; |
| 63 </script> | 63 </script> |
| 64 </body> | 64 </body> |
| 65 </html> | 65 </html> |
| OLD | NEW |