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 207167 d0737ba3f4c9c612f67b9e26ce95e53818d029ed
parent 207166 5ac4b3ef5e0ec165818b83043a8658572eae1f1c
child 207168 b1d854aec0e3f4c9968130280f3973e3eb5eb70e
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmhenretty
bugs1020581
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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();