Bug 1020581 - Notification resend test feedback improvement and less strict on timestamp. r=mhenretty
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Thu, 05 Jun 2014 03:00:00 -0400
changeset 186861 d0737ba3f4c9c612f67b9e26ce95e53818d029ed
parent 186860 5ac4b3ef5e0ec165818b83043a8658572eae1f1c
child 186862 b1d854aec0e3f4c9968130280f3973e3eb5eb70e
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmhenretty
bugs1020581
milestone32.0a1
Bug 1020581 - Notification resend test feedback improvement and less strict on timestamp. r=mhenretty
dom/tests/mochitest/notification/test_notification_resend.html
--- a/dom/tests/mochitest/notification/test_notification_resend.html
+++ b/dom/tests/mochitest/notification/test_notification_resend.html
@@ -150,17 +150,17 @@
         is(notif.text, "Body", "Notification body is valid: " + notif.text);
         is(notif.manifestURL, manifestURL, "Notification manifest URL is valid: " + notif.manifestURL);
         is(notif.imageURL, "icon.jpg", "Notification icon URL is valid: " + notif.imageURL);
         is(notif.lang, "en-US", "Notification lang is valid: " + notif.lang);
         is(notif.id, notif.manifestURL + "#tag:" + notif.tag, "Notification id is valid: " + notif.id);
         ok(notif.dbId.match(uuidRegEx), "Notification dbId is valid: " + notif.dbId);
         is(notif.dir, "ltr", "Notification dir is valid: " + notif.dir);
         is(notif.tag, "fakeTag", "Notification tag is valid: " + notif.tag);
-        ok((notif.timestamp > now), "Notification timestamp is valid: " + notif.timestamp);
+        ok((notif.timestamp >= now), "Notification timestamp is valid: (" + notif.timestamp + " >= " + now + ")");
         notif2.close();
       });
     }
   ];
 
   MockServices.register();
   NotificationTest.run(steps, function () {
     MockServices.unregister();