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

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: Better fix (TM) with a unit test inside 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
« Tools/GardeningServer/scripts/ui.js ('K') | « 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..38f84cf37e15426581b509a894cc8830710be9ec 100644
--- a/Tools/GardeningServer/scripts/ui_unittests.js
+++ b/Tools/GardeningServer/scripts/ui_unittests.js
@@ -223,5 +223,40 @@ 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}
ojan 2014/06/05 00:54:48 Nit: We're a little less consitent about the space
Julien - ping for review 2014/06/05 01:51:52 Done.
+ ]
+};
+
+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>');
ojan 2014/06/05 00:54:48 When I do innerHTML based tests, I usually format
Julien - ping for review 2014/06/05 01:51:52 As we will be changing the formatting and it has a
+ start();
+ });
+});
})();
« Tools/GardeningServer/scripts/ui.js ('K') | « Tools/GardeningServer/scripts/ui.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698