Changeset 93691 in webkit


Ignore:
Timestamp:
Aug 23, 2011 9:24:08 PM (13 years ago)
Author:
Dimitri Glazkov
Message:

Make notifications appear in time order again.
https://bugs.webkit.org/show_bug.cgi?id=66815

Reviewed by Adam Barth.

  • BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/notifications.js: Added setting index of the notification.
  • BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/notifications_unittests.js: Updated the test.
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/notifications.js

    r93607 r93691  
    161161    {
    162162        var commitDataDate = new Date(commitData.time);
    163         if (this._time.date > commitDataDate);
     163        if (this._time.date > commitDataDate); {
     164            this.setIndex(commitDataDate.getTime());
    164165            this._time.setDate(commitDataDate);
     166        }
    165167        return this._causes.appendChild(new ui.notifications.SuspiciousCommit(commitData));
    166168    }
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/notifications_unittests.js

    r93607 r93691  
    9191});
    9292
    93 test('TestFailures', 8, function() {
     93test('TestFailures', 10, function() {
    9494    var testFailures = new ui.notifications.TestFailures();
    9595    equal(testFailures.tagName, 'LI');
     
    106106        '</ul>');
    107107    testFailures.addFailureAnalysis({testName: 'test'});
     108    equal(testFailures.index(), 0);
    108109    equal(testFailures.innerHTML,
    109110        '<time class="relative">Just now</time>' +
     
    139140    time.setMinutes(time.getMinutes() - 10);
    140141    testFailures.addCommitData({revision: 1, time: time, title: "title", author: "author", reviewer: "reviewer"});
     142    equal(testFailures.index(), time.getTime());
    141143    equal(testFailures.innerHTML,
    142144        '<time class="relative">10 minutes ago</time>' +
  • trunk/Tools/ChangeLog

    r93681 r93691  
     12011-08-23  Dimitri Glazkov  <dglazkov@chromium.org>
     2
     3        Make notifications appear in time order again.
     4        https://bugs.webkit.org/show_bug.cgi?id=66815
     5
     6        Reviewed by Adam Barth.
     7
     8        * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/notifications.js: Added setting index of the notification.
     9        * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/notifications_unittests.js: Updated the test.
     10
    1112011-08-23  James Robinson  <jamesr@chromium.org>
    212
Note: See TracChangeset for help on using the changeset viewer.