Title: [106960] trunk
Revision
106960
Author
[email protected]
Date
2012-02-07 10:54:24 -0800 (Tue, 07 Feb 2012)

Log Message

Dashboard on perf-o-matic should be sorted
https://bugs.webkit.org/show_bug.cgi?id=77924

Reviewed by Tony Chang.

Sort tests in the frontend using the fact ES5 keeps the property order in the insertion order.

* Websites/webkit-perf.appspot.com/js/config.js:
(fetchDashboardManifest):

Modified Paths

Diff

Modified: trunk/ChangeLog (106959 => 106960)


--- trunk/ChangeLog	2012-02-07 18:49:10 UTC (rev 106959)
+++ trunk/ChangeLog	2012-02-07 18:54:24 UTC (rev 106960)
@@ -1,3 +1,15 @@
+2012-02-07  Ryosuke Niwa  <[email protected]>
+
+        Dashboard on perf-o-matic should be sorted
+        https://bugs.webkit.org/show_bug.cgi?id=77924
+
+        Reviewed by Tony Chang.
+
+        Sort tests in the frontend using the fact ES5 keeps the property order in the insertion order.
+
+        * Websites/webkit-perf.appspot.com/js/config.js:
+        (fetchDashboardManifest):
+
 2012-02-07  Frederik Gladhorn  <[email protected]>
 
         Update .gitignore for Qt Creator/KDevelop.

Modified: trunk/Websites/webkit-perf.appspot.com/js/config.js (106959 => 106960)


--- trunk/Websites/webkit-perf.appspot.com/js/config.js	2012-02-07 18:49:10 UTC (rev 106959)
+++ trunk/Websites/webkit-perf.appspot.com/js/config.js	2012-02-07 18:54:24 UTC (rev 106960)
@@ -76,5 +76,13 @@
         cache: true,
     });
 
-    $.getJSON(SERVER + '/api/test/dashboard', callback);
+    $.getJSON(SERVER + '/api/test/dashboard', function (dashboardManifest) {
+        var testToId = dashboardManifest['testToId'];
+        var tests = Object.keys(testToId).sort();
+        var sortedTestToId = {};
+        for (var i = 0; i < tests.length; i++)
+            sortedTestToId[tests[i]] = testToId[tests[i]];
+        dashboardManifest['testToId'] = sortedTestToId;
+        callback(dashboardManifest);
+    });
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to