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

Side by Side Diff: Tools/GardeningServer/scripts/ui.js

Issue 173133003: Convert garden-o-matic guts over to promises where appropriate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update to ToT Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 $(summaryLinkNode).mouseout(function(ev) { 327 $(summaryLinkNode).mouseout(function(ev) {
328 if (!revisionsNode.open) { 328 if (!revisionsNode.open) {
329 $(revisionsPopUp).removeClass("active"); 329 $(revisionsPopUp).removeClass("active");
330 } 330 }
331 }); 331 });
332 332
333 var totRevision = model.latestRevision(); 333 var totRevision = model.latestRevision();
334 theSpan.appendChild(document.createTextNode(', trunk is at ')); 334 theSpan.appendChild(document.createTextNode(', trunk is at '));
335 theSpan.appendChild(base.createLinkNode(trac.changesetURL(totRevision), totRevision)); 335 theSpan.appendChild(base.createLinkNode(trac.changesetURL(totRevision), totRevision));
336 336
337 checkout.lastBlinkRollRevision(function(revision) { 337 checkout.lastBlinkRollRevision().then(function(revision) {
338 theSpan.appendChild(document.createTextNode(', last roll is to ')); 338 theSpan.appendChild(document.createTextNode(', last roll is to '));
339 theSpan.appendChild(base.createLinkNode(trac.changesetURL(revision), revision)); 339 theSpan.appendChild(base.createLinkNode(trac.changesetURL(revision), revision));
340 }, function() {}); 340 }, function() {});
341 341
342 rollbot.fetchCurrentRoll(function(roll) { 342 rollbot.fetchCurrentRoll().then(function(roll) {
343 theSpan.appendChild(document.createTextNode(', current autoroll ')); 343 theSpan.appendChild(document.createTextNode(', current autoroll '));
344 if (roll) { 344 if (roll) {
345 var linkText = "" + roll.fromRevision + ":" + roll.toRevision; 345 var linkText = "" + roll.fromRevision + ":" + roll.toRevision;
346 theSpan.appendChild(base.createLinkNode(roll.url, linkText)); 346 theSpan.appendChild(base.createLinkNode(roll.url, linkText));
347 if (roll.isStopped) 347 if (roll.isStopped)
348 theSpan.appendChild(document.createTextNode(' (STOPPED) ')); 348 theSpan.appendChild(document.createTextNode(' (STOPPED) '));
349 } else { 349 } else {
350 theSpan.appendChild(document.createTextNode(' None')); 350 theSpan.appendChild(document.createTextNode(' None'));
351 } 351 }
352 }); 352 });
353 } 353 }
354 }); 354 });
355 355
356 })(); 356 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/svn-log_unittests.js ('k') | Tools/GardeningServer/scripts/ui/results.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698