Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: LayoutTests/fast/notifications/notification-properties.html

Issue 186713002: Add new layout tests for the Web Notification API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698