OLD | NEW |
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 Loading... |
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 Loading... |
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 })(); |
OLD | NEW |