Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1295)

Unified Diff: Tools/GardeningServer/scripts/ui_unittests.js

Issue 314913002: [GOM] Improve the display of the roll information (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Ojan's comments. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/GardeningServer/scripts/ui.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/scripts/ui_unittests.js
diff --git a/Tools/GardeningServer/scripts/ui_unittests.js b/Tools/GardeningServer/scripts/ui_unittests.js
index cb6849834a92736846a167008f158ecbbbfe61cd..3e433bd925f21c9322ce0e4638d624b30cbf3eac 100644
--- a/Tools/GardeningServer/scripts/ui_unittests.js
+++ b/Tools/GardeningServer/scripts/ui_unittests.js
@@ -223,5 +223,64 @@ asyncTest("TreeStatus", 2, function() {
});
});
+var currentRoll = {
+ "results": [
+ {"messages":[], "base_url":"svn://svn.chromium.org/chrome/trunk/src", "subject":"Blink roll 540:550", "closed":false, "issue":1000}
+ ]
+};
+
+asyncTest("RevisionDetails", 2, function() {
+ var simulator = new NetworkSimulator();
+ simulator.json = function(url)
+ {
+ return Promise.resolve(currentRoll);
+ }
+ simulator.get = function (url)
+ {
+ return Promise.resolve("540");
+ }
+
+ model.state.resultsByBuilder = {
+ "Linux": {
+ "blink_revision": "554",
+ }
+ };
+ model.state.recentCommits = [
+ {
+ "revision": "555",
+ }];
+
+ var revisionDetails;
+ simulator.runTest(function() {
+ revisionDetails = ui.revisionDetails();
+ }).then(function() {
+ equal(revisionDetails.innerHTML,
+ 'Latest revision processed by every bot: ' +
+ '<details>' +
+ '<summary>' +
+ '<a href="http://src.chromium.org/viewvc/blink?view=rev&amp;revision=554">554' +
+ '<span id="revisionPopUp">' +
+ '<table>' +
+ '<tr>' +
+ '<td><a href="http://build.chromium.org/p/chromium.webkit/waterfall?builder=Linux">Linux</a></td>' +
+ '<td>554</td>' +
+ '</tr>' +
+ '</table>' +
+ '</span>' +
+ '</a>' +
+ '</summary>' +
+ '<table>' +
+ '<tr>' +
+ '<td><a href="http://build.chromium.org/p/chromium.webkit/waterfall?builder=Linux">Linux</a></td>' +
+ '<td>554</td>' +
+ '</tr>' +
+ '</table>' +
+ '</details>' +
+ ', trunk is at <a href="http://src.chromium.org/viewvc/blink?view=rev&amp;revision=555">555</a>' +
+ '<br>' +
+ 'Last roll is to <a href="http://src.chromium.org/viewvc/blink?view=rev&amp;revision=540">540</a>, current autoroll <a href="https://codereview.chromium.org/1000">540:550</a>');
+ start();
+ });
+});
})();
« no previous file with comments | « Tools/GardeningServer/scripts/ui.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698