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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Tools/GardeningServer/scripts/ui.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 var treestatus; 217 var treestatus;
218 simulator.runTest(function() { 218 simulator.runTest(function() {
219 treeStatus = new ui.TreeStatus(); 219 treeStatus = new ui.TreeStatus();
220 }).then(function() { 220 }).then(function() {
221 equal(treeStatus.innerHTML, '<div> blink status: <span>OPEN</span></div> <div> chromium status: <span>OPEN</span></div>'); 221 equal(treeStatus.innerHTML, '<div> blink status: <span>OPEN</span></div> <div> chromium status: <span>OPEN</span></div>');
222 start(); 222 start();
223 }); 223 });
224 }); 224 });
225 225
226 var currentRoll = {
227 "results": [
228 {"messages":[], "base_url":"svn://svn.chromium.org/chrome/trunk/src", "s ubject":"Blink roll 540:550", "closed":false, "issue":1000}
229 ]
230 };
231
232 asyncTest("RevisionDetails", 2, function() {
233 var simulator = new NetworkSimulator();
234 simulator.json = function(url)
235 {
236 return Promise.resolve(currentRoll);
237 }
238 simulator.get = function (url)
239 {
240 return Promise.resolve("540");
241 }
242
243 model.state.resultsByBuilder = {
244 "Linux": {
245 "blink_revision": "554",
246 }
247 };
248 model.state.recentCommits = [
249 {
250 "revision": "555",
251 }];
252
253 var revisionDetails;
254 simulator.runTest(function() {
255 revisionDetails = ui.revisionDetails();
256 }).then(function() {
257 equal(revisionDetails.innerHTML,
258 'Latest revision processed by every bot: ' +
259 '<details>' +
260 '<summary>' +
261 '<a href="http://src.chromium.org/viewvc/blink?view=rev& amp;revision=554">554' +
262 '<span id="revisionPopUp">' +
263 '<table>' +
264 '<tr>' +
265 '<td><a href="http://build.chromium.org/ p/chromium.webkit/waterfall?builder=Linux">Linux</a></td>' +
266 '<td>554</td>' +
267 '</tr>' +
268 '</table>' +
269 '</span>' +
270 '</a>' +
271 '</summary>' +
272 '<table>' +
273 '<tr>' +
274 '<td><a href="http://build.chromium.org/p/chromium.w ebkit/waterfall?builder=Linux">Linux</a></td>' +
275 '<td>554</td>' +
276 '</tr>' +
277 '</table>' +
278 '</details>' +
279 ', trunk is at <a href="http://src.chromium.org/viewvc/blink?vie w=rev&amp;revision=555">555</a>' +
280 '<br>' +
281 'Last roll is to <a href="http://src.chromium.org/viewvc/blink?v iew=rev&amp;revision=540">540</a>, current autoroll <a href="https://codereview. chromium.org/1000">540:550</a>');
282 start();
283 });
284 });
226 285
227 })(); 286 })();
OLDNEW
« 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