⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 179731 in webkit


Ignore:
Timestamp:
Feb 5, 2015, 5:23:31 PM (12 years ago)
Author:
rniwa@webkit.org
Message:

Move commits viewer to the end of details view
https://bugs.webkit.org/show_bug.cgi?id=141315

Rubber-stamped by Andreas Kling.

Show the difference instead of the old value per kling's request.

  • public/v2/app.js:

(App.PaneController._updateDetails):

  • public/v2/index.html:
Location:
trunk/Websites/perf.webkit.org
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/perf.webkit.org/ChangeLog

    r179729 r179731  
     12015-02-05  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Move commits viewer to the end of details view
     4        https://bugs.webkit.org/show_bug.cgi?id=141315
     5
     6        Rubber-stamped by Andreas Kling.
     7
     8        Show the difference instead of the old value per kling's request.
     9
     10        * public/v2/app.js:
     11        (App.PaneController._updateDetails):
     12        * public/v2/index.html:
     13
    1142015-02-05  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/Websites/perf.webkit.org/public/v2/app.js

    r179729 r179731  
    764764
    765765        var chartData = this.get('chartData');
     766        var valueDiff = oldMeasurement ? chartData.formatter(currentMeasurement.mean() - oldMeasurement.mean()) : null;
     767        if (valueDiff && valueDiff > 0)
     768            valueDiff = '+' + valueDiff;
     769
    766770        this.set('details', Ember.Object.create({
    767771            status: this._computeStatus(currentPoint),
    768772            currentValue: chartData.formatter(currentMeasurement.mean()),
    769             oldValue: oldMeasurement ? chartData.formatter(oldMeasurement.mean()) : null,
     773            valueDiff: valueDiff,
    770774            buildNumber: buildNumber,
    771775            buildURL: buildURL,
  • trunk/Websites/perf.webkit.org/public/v2/index.html

    r179729 r179731  
    260260                    <td>
    261261                        {{details.currentValue}} {{chartData.unit}}
    262                         {{#if details.oldValue}}
    263                             (from {{details.oldValue}} {{chartData.unit}})
     262                        {{#if details.valueDiff}}
     263                            ({{details.valueDiff}} {{chartData.unit}})
    264264                        {{/if}}
    265265                        {{#if details.status.label}}
Note: See TracChangeset for help on using the changeset viewer.