| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 } | 45 } |
| 46 }); | 46 }); |
| 47 | 47 |
| 48 ui.actions.Close = base.extends(Action, { | 48 ui.actions.Close = base.extends(Action, { |
| 49 init: function() { | 49 init: function() { |
| 50 this.textContent = 'Close'; | 50 this.textContent = 'Close'; |
| 51 this._eventName = 'close'; | 51 this._eventName = 'close'; |
| 52 } | 52 } |
| 53 }); | 53 }); |
| 54 | 54 |
| 55 ui.actions.Rollout = base.extends(Action, { | |
| 56 init: function() { | |
| 57 this.textContent = 'Roll out'; | |
| 58 this._eventName = 'rollout'; | |
| 59 this.title = 'Rolls out this revision.' | |
| 60 } | |
| 61 }); | |
| 62 | |
| 63 ui.actions.Examine = base.extends(Action, { | 55 ui.actions.Examine = base.extends(Action, { |
| 64 init: function() { | 56 init: function() { |
| 65 this.textContent = 'Examine'; | 57 this.textContent = 'Examine'; |
| 66 this._eventName = 'examine'; | 58 this._eventName = 'examine'; |
| 67 this.title = 'Examine these failures in detail.' | 59 this.title = 'Examine these failures in detail.' |
| 68 } | 60 } |
| 69 }); | 61 }); |
| 70 | 62 |
| 71 ui.actions.ExpectFailure = base.extends(Action, { | 63 ui.actions.ExpectFailure = base.extends(Action, { |
| 72 init: function() { | 64 init: function() { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 100 }, | 92 }, |
| 101 add: function(action) | 93 add: function(action) |
| 102 { | 94 { |
| 103 var item = document.createElement('li'); | 95 var item = document.createElement('li'); |
| 104 item.appendChild(action); | 96 item.appendChild(action); |
| 105 $(this).append(item); | 97 $(this).append(item); |
| 106 } | 98 } |
| 107 }); | 99 }); |
| 108 | 100 |
| 109 })(); | 101 })(); |
| OLD | NEW |