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

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

Issue 362453003: Remove dead code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 23 matching lines...) Expand all
34 }); 34 });
35 } 35 }
36 36
37 ui.kUseNewWindowForLinksSetting = 'gardenomatic.use-new-window-for-links'; 37 ui.kUseNewWindowForLinksSetting = 'gardenomatic.use-new-window-for-links';
38 38
39 ui.displayNameForBuilder = function(builderName) 39 ui.displayNameForBuilder = function(builderName)
40 { 40 {
41 return builderName.replace(/Webkit /, ''); 41 return builderName.replace(/Webkit /, '');
42 } 42 }
43 43
44 ui.urlForTest = function(testName)
45 {
46 return 'http://trac.webkit.org/browser/trunk/LayoutTests/' + testName;
47 }
48
49 ui.urlForCrbug = function(bugID) 44 ui.urlForCrbug = function(bugID)
50 { 45 {
51 return 'http://crbug.com/' + bugID; 46 return 'http://crbug.com/' + bugID;
52 } 47 }
53 48
54 ui.urlForFlakinessDashboard = function(opt_testNameList) 49 ui.urlForFlakinessDashboard = function(opt_testNameList)
55 { 50 {
56 var testsParameter = opt_testNameList ? opt_testNameList.join(',') : ''; 51 var testsParameter = opt_testNameList ? opt_testNameList.join(',') : '';
57 return 'http://test-results.appspot.com/dashboards/flakiness_dashboard.html# tests=' + encodeURIComponent(testsParameter); 52 return 'http://test-results.appspot.com/dashboards/flakiness_dashboard.html# tests=' + encodeURIComponent(testsParameter);
58 } 53 }
59 54
60 ui.urlForEmbeddedFlakinessDashboard = function(opt_testNameList) 55 ui.urlForEmbeddedFlakinessDashboard = function(opt_testNameList)
61 { 56 {
62 return ui.urlForFlakinessDashboard(opt_testNameList) + '&showChrome=false'; 57 return ui.urlForFlakinessDashboard(opt_testNameList) + '&showChrome=false';
63 } 58 }
64 59
65 ui.rolloutReasonForTestNameList = function(testNameList)
66 {
67 return 'Broke:\n' + testNameList.map(function(testName) {
68 return '* ' + testName;
69 }).join('\n');
70 }
71
72 ui.setTargetForLink = function(anchor) 60 ui.setTargetForLink = function(anchor)
73 { 61 {
74 if (anchor.href.indexOf('#') === 0) 62 if (anchor.href.indexOf('#') === 0)
75 return; 63 return;
76 if (ui.useNewWindowForLinks) 64 if (ui.useNewWindowForLinks)
77 anchor.target = '_blank'; 65 anchor.target = '_blank';
78 else 66 else
79 anchor.removeAttribute('target'); 67 anchor.removeAttribute('target');
80 } 68 }
81 69
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // We want this feature, but need to fetch the lastBlinkRollRevision via the interwebs. 301 // We want this feature, but need to fetch the lastBlinkRollRevision via the interwebs.
314 // Promise.all([checkout.lastBlinkRollRevision(), rollbot.fetchCurrentRo ll()]).then(function(results) { 302 // Promise.all([checkout.lastBlinkRollRevision(), rollbot.fetchCurrentRo ll()]).then(function(results) {
315 // theSpan.lastRolledRevision = results[0]; 303 // theSpan.lastRolledRevision = results[0];
316 // theSpan.roll = results[1]; 304 // theSpan.roll = results[1];
317 // theSpan.updateUI(totRevision); 305 // theSpan.updateUI(totRevision);
318 // }); 306 // });
319 } 307 }
320 }); 308 });
321 309
322 })(); 310 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/results_unittests.js ('k') | Tools/GardeningServer/scripts/ui/results.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698