Merge lp:~cjwatson/launchpad/eslint-remove-unused-vars into lp:launchpad
- eslint-remove-unused-vars
- Merge into devel
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 18431 |
Proposed branch: | lp:~cjwatson/launchpad/eslint-remove-unused-vars |
Merge into: | lp:launchpad |
Prerequisite: | lp:~cjwatson/launchpad/eslint-remove-dead-code |
Diff against target: |
438 lines (+44/-60) 21 files modified
lib/lp/app/javascript/anim/tests/test_anim.js (+1/-2) lib/lp/app/javascript/gallery-accordion/gallery-accordion.js (+2/-2) lib/lp/app/javascript/picker/tests/test_picker_patcher.js (+1/-1) lib/lp/app/javascript/subscribers/tests/test_subscribers_list.js (+11/-17) lib/lp/app/javascript/tests/test_expander.js (+2/-2) lib/lp/app/javascript/tests/test_foldables.js (+1/-1) lib/lp/app/javascript/tests/test_longpoll.js (+1/-1) lib/lp/bugs/javascript/bugtask_index.js (+8/-8) lib/lp/bugs/javascript/duplicates.js (+1/-2) lib/lp/bugs/javascript/filebug.js (+1/-5) lib/lp/bugs/javascript/tests/test_bug_notification_level.js (+1/-1) lib/lp/bugs/javascript/tests/test_filebug.js (+1/-1) lib/lp/bugs/javascript/tests/test_pre_search.js (+2/-3) lib/lp/bugs/javascript/tests/test_subscription.js (+2/-4) lib/lp/registry/javascript/distroseries/widgets.js (+1/-1) lib/lp/registry/javascript/distroseriesdifferences_details.js (+3/-3) lib/lp/registry/javascript/structural-subscription.js (+1/-1) lib/lp/registry/javascript/tests/test_distroseriesdifferences_details.js (+1/-1) lib/lp/registry/javascript/tests/test_team_mailinglists.js (+1/-2) lib/lp/soyuz/javascript/base.js (+1/-1) lib/lp/testing/tests/test_yuixhr_fixture.js (+1/-1) |
To merge this branch: | bzr merge lp:~cjwatson/launchpad/eslint-remove-unused-vars |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | Approve | ||
Review via email: mp+327894@code.launchpad.net |
Commit message
Remove lots of unused variable assignments spotted by ESLint.
Description of the change
To post a comment you must log in.
Revision history for this message
William Grant (wgrant) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'lib/lp/app/javascript/anim/tests/test_anim.js' | |||
2 | --- lib/lp/app/javascript/anim/tests/test_anim.js 2013-03-20 03:41:40 +0000 | |||
3 | +++ lib/lp/app/javascript/anim/tests/test_anim.js 2017-07-21 17:11:32 +0000 | |||
4 | @@ -52,8 +52,7 @@ | |||
5 | 52 | test_resolveNodeListFrom_anythine_else: function() { | 52 | test_resolveNodeListFrom_anythine_else: function() { |
6 | 53 | var succeed = true; | 53 | var succeed = true; |
7 | 54 | try { | 54 | try { |
10 | 55 | var nodelist = tests.resolveNodeListFrom( | 55 | tests.resolveNodeListFrom({crazy: true, broken: 'definitely'}); |
9 | 56 | {crazy: true, broken: 'definitely'}); | ||
11 | 57 | } catch(e) { | 56 | } catch(e) { |
12 | 58 | succeed = false; | 57 | succeed = false; |
13 | 59 | } | 58 | } |
14 | 60 | 59 | ||
15 | === modified file 'lib/lp/app/javascript/gallery-accordion/gallery-accordion.js' | |||
16 | --- lib/lp/app/javascript/gallery-accordion/gallery-accordion.js 2011-03-15 13:29:18 +0000 | |||
17 | +++ lib/lp/app/javascript/gallery-accordion/gallery-accordion.js 2017-07-21 17:11:32 +0000 | |||
18 | @@ -904,7 +904,7 @@ | |||
19 | 904 | * @param item {Y.AccordionItem} An <code>Y.AccordionItem</code> instance to be set as draggable | 904 | * @param item {Y.AccordionItem} An <code>Y.AccordionItem</code> instance to be set as draggable |
20 | 905 | */ | 905 | */ |
21 | 906 | _initItemDragDrop: function( item ){ | 906 | _initItemDragDrop: function( item ){ |
23 | 907 | var itemHeader, dd, bb, itemBB, ddrop; | 907 | var itemHeader, dd, bb, itemBB; |
24 | 908 | 908 | ||
25 | 909 | itemHeader = item.getStdModNode( WidgetStdMod.HEADER ); | 909 | itemHeader = item.getStdModNode( WidgetStdMod.HEADER ); |
26 | 910 | 910 | ||
27 | @@ -924,7 +924,7 @@ | |||
28 | 924 | constrain2node: bb | 924 | constrain2node: bb |
29 | 925 | }); | 925 | }); |
30 | 926 | 926 | ||
32 | 927 | ddrop = new Y.DD.Drop({ | 927 | new Y.DD.Drop({ |
33 | 928 | node: itemBB, | 928 | node: itemBB, |
34 | 929 | groups: [ DRAGGROUP ] | 929 | groups: [ DRAGGROUP ] |
35 | 930 | }); | 930 | }); |
36 | 931 | 931 | ||
37 | === modified file 'lib/lp/app/javascript/picker/tests/test_picker_patcher.js' | |||
38 | --- lib/lp/app/javascript/picker/tests/test_picker_patcher.js 2016-09-12 19:41:46 +0000 | |||
39 | +++ lib/lp/app/javascript/picker/tests/test_picker_patcher.js 2017-07-21 17:11:32 +0000 | |||
40 | @@ -352,7 +352,7 @@ | |||
41 | 352 | // to copy the selected value to the text input field. | 352 | // to copy the selected value to the text input field. |
42 | 353 | this.text_input = Y.Node.create( | 353 | this.text_input = Y.Node.create( |
43 | 354 | '<input id="field.testfield" value="foo" />'); | 354 | '<input id="field.testfield" value="foo" />'); |
45 | 355 | var node = Y.one(document.body).appendChild(this.text_input); | 355 | Y.one(document.body).appendChild(this.text_input); |
46 | 356 | this.select_menu = Y.Node.create( | 356 | this.select_menu = Y.Node.create( |
47 | 357 | '<select id="field.testfield-suggestions"> ' + | 357 | '<select id="field.testfield-suggestions"> ' + |
48 | 358 | ' <option value="">Did you mean...</option>' + | 358 | ' <option value="">Did you mean...</option>' + |
49 | 359 | 359 | ||
50 | === modified file 'lib/lp/app/javascript/subscribers/tests/test_subscribers_list.js' | |||
51 | --- lib/lp/app/javascript/subscribers/tests/test_subscribers_list.js 2017-07-21 17:11:31 +0000 | |||
52 | +++ lib/lp/app/javascript/subscribers/tests/test_subscribers_list.js 2017-07-21 17:11:32 +0000 | |||
53 | @@ -110,7 +110,7 @@ | |||
54 | 110 | test_no_container_error: function() { | 110 | test_no_container_error: function() { |
55 | 111 | // When there is no matching container node in the DOM tree, | 111 | // When there is no matching container node in the DOM tree, |
56 | 112 | // an exception is thrown. | 112 | // an exception is thrown. |
58 | 113 | var sl = new module.SubscribersList({ | 113 | new module.SubscribersList({ |
59 | 114 | container_box: '#not-found', | 114 | container_box: '#not-found', |
60 | 115 | subscriber_levels: []}); | 115 | subscriber_levels: []}); |
61 | 116 | }, | 116 | }, |
62 | @@ -133,7 +133,7 @@ | |||
63 | 133 | Y.Node.create('<div />').addClass('container')); | 133 | Y.Node.create('<div />').addClass('container')); |
64 | 134 | this.root.appendChild( | 134 | this.root.appendChild( |
65 | 135 | Y.Node.create('<div />').addClass('container')); | 135 | Y.Node.create('<div />').addClass('container')); |
67 | 136 | var sl = new module.SubscribersList({ | 136 | new module.SubscribersList({ |
68 | 137 | container_box: '.container', | 137 | container_box: '.container', |
69 | 138 | subscriber_levels: []}); | 138 | subscriber_levels: []}); |
70 | 139 | }, | 139 | }, |
71 | @@ -761,7 +761,7 @@ | |||
72 | 761 | test_removeSectionNodeIfEmpty_keeps_others: function() { | 761 | test_removeSectionNodeIfEmpty_keeps_others: function() { |
73 | 762 | // With two empty sections, only the requested one is removed. | 762 | // With two empty sections, only the requested one is removed. |
74 | 763 | var subscribers_list = setUpSubscribersList(this.root); | 763 | var subscribers_list = setUpSubscribersList(this.root); |
76 | 764 | var section_node1 = subscribers_list._getOrCreateSection('Level3'); | 764 | subscribers_list._getOrCreateSection('Level3'); |
77 | 765 | var section_node2 = subscribers_list._getOrCreateSection( | 765 | var section_node2 = subscribers_list._getOrCreateSection( |
78 | 766 | 'Level1'); | 766 | 'Level1'); |
79 | 767 | 767 | ||
80 | @@ -1187,8 +1187,7 @@ | |||
81 | 1187 | // fails with an exception. | 1187 | // fails with an exception. |
82 | 1188 | var subscribers_list = setUpSubscribersList(this.root); | 1188 | var subscribers_list = setUpSubscribersList(this.root); |
83 | 1189 | var subscriber = { name: 'user' }; | 1189 | var subscriber = { name: 'user' }; |
86 | 1190 | var subscriber_node = subscribers_list.addSubscriber( | 1190 | subscribers_list.addSubscriber(subscriber, 'Level1'); |
85 | 1191 | subscriber, 'Level1'); | ||
87 | 1192 | subscribers_list.addUnsubscribeAction(subscriber, "not-function"); | 1191 | subscribers_list.addUnsubscribeAction(subscriber, "not-function"); |
88 | 1193 | }, | 1192 | }, |
89 | 1194 | 1193 | ||
90 | @@ -1224,9 +1223,7 @@ | |||
91 | 1224 | // Removing a subscriber works when the subscriber is in the list. | 1223 | // Removing a subscriber works when the subscriber is in the list. |
92 | 1225 | var subscribers_list = setUpSubscribersList(this.root); | 1224 | var subscribers_list = setUpSubscribersList(this.root); |
93 | 1226 | var subscriber = { name: 'user' }; | 1225 | var subscriber = { name: 'user' }; |
97 | 1227 | var subscriber_node = subscribers_list.addSubscriber( | 1226 | subscribers_list.addSubscriber(subscriber, 'Level3'); |
95 | 1228 | subscriber, 'Level3'); | ||
96 | 1229 | var section_node = subscriber_node.ancestor('.subscribers-section'); | ||
98 | 1230 | subscribers_list.removeSubscriber(subscriber); | 1227 | subscribers_list.removeSubscriber(subscriber); |
99 | 1231 | // Entire section is removed along with the subscriber. | 1228 | // Entire section is removed along with the subscriber. |
100 | 1232 | Y.Assert.areEqual(0, _getAllSections(subscribers_list).length); | 1229 | Y.Assert.areEqual(0, _getAllSections(subscribers_list).length); |
101 | @@ -1238,9 +1235,7 @@ | |||
102 | 1238 | var subscriber = { name: 'user' }; | 1235 | var subscriber = { name: 'user' }; |
103 | 1239 | var other_node = subscribers_list.addSubscriber( | 1236 | var other_node = subscribers_list.addSubscriber( |
104 | 1240 | { name: 'other' }, 'Level3'); | 1237 | { name: 'other' }, 'Level3'); |
108 | 1241 | var subscriber_node = subscribers_list.addSubscriber( | 1238 | subscribers_list.addSubscriber(subscriber, 'Level3'); |
106 | 1242 | subscriber, 'Level3'); | ||
107 | 1243 | var section_node = subscriber_node.ancestor('.subscribers-section'); | ||
109 | 1244 | subscribers_list.removeSubscriber(subscriber); | 1239 | subscribers_list.removeSubscriber(subscriber); |
110 | 1245 | // Section is not removed because it still has 'other' subscriber. | 1240 | // Section is not removed because it still has 'other' subscriber. |
111 | 1246 | var all_sections = _getAllSections(subscribers_list); | 1241 | var all_sections = _getAllSections(subscribers_list); |
112 | @@ -1341,7 +1336,7 @@ | |||
113 | 1341 | // When there's no activity in progress, nothing happens. | 1336 | // When there's no activity in progress, nothing happens. |
114 | 1342 | var subscribers_list = setUpSubscribersList(this.root); | 1337 | var subscribers_list = setUpSubscribersList(this.root); |
115 | 1343 | var subscriber = { name: 'user' }; | 1338 | var subscriber = { name: 'user' }; |
117 | 1344 | var node = subscribers_list.addSubscriber(subscriber, 'Level3'); | 1339 | subscribers_list.addSubscriber(subscriber, 'Level3'); |
118 | 1345 | subscribers_list.stopSubscriberActivity(subscriber); | 1340 | subscribers_list.stopSubscriberActivity(subscriber); |
119 | 1346 | }, | 1341 | }, |
120 | 1347 | 1342 | ||
121 | @@ -1454,10 +1449,9 @@ | |||
122 | 1454 | test_SubscribersLoader_container_error: function() { | 1449 | test_SubscribersLoader_container_error: function() { |
123 | 1455 | // If no container node to hold the subscribers list is specified, | 1450 | // If no container node to hold the subscribers list is specified, |
124 | 1456 | // it fails with an error. | 1451 | // it fails with an error. |
129 | 1457 | var loader = | 1452 | new module.SubscribersLoader({ |
130 | 1458 | new module.SubscribersLoader({ | 1453 | container_box: '#not-found', |
131 | 1459 | container_box: '#not-found', | 1454 | subscriber_levels: []}); |
128 | 1460 | subscriber_levels: []}); | ||
132 | 1461 | }, | 1455 | }, |
133 | 1462 | 1456 | ||
134 | 1463 | test_SubscribersLoader_context_error: function() { | 1457 | test_SubscribersLoader_context_error: function() { |
135 | @@ -1999,7 +1993,7 @@ | |||
136 | 1999 | setup_called = true; | 1993 | setup_called = true; |
137 | 2000 | }; | 1994 | }; |
138 | 2001 | 1995 | ||
140 | 2002 | var loader = setUpLoader(this.root, config); | 1996 | setUpLoader(this.root, config); |
141 | 2003 | 1997 | ||
142 | 2004 | Y.Assert.isTrue(setup_called); | 1998 | Y.Assert.isTrue(setup_called); |
143 | 2005 | 1999 | ||
144 | 2006 | 2000 | ||
145 | === modified file 'lib/lp/app/javascript/tests/test_expander.js' | |||
146 | --- lib/lp/app/javascript/tests/test_expander.js 2014-01-24 04:41:21 +0000 | |||
147 | +++ lib/lp/app/javascript/tests/test_expander.js 2017-07-21 17:11:32 +0000 | |||
148 | @@ -61,7 +61,7 @@ | |||
149 | 61 | } | 61 | } |
150 | 62 | var root = this.makeNode(); | 62 | var root = this.makeNode(); |
151 | 63 | var hook = root.appendChild(this.makeNode('hook')); | 63 | var hook = root.appendChild(this.makeNode('hook')); |
153 | 64 | var icon = hook.appendChild(this.makeNode('icon')); | 64 | hook.appendChild(this.makeNode('icon')); |
154 | 65 | var content = hook.appendChild(this.makeNode('content')); | 65 | var content = hook.appendChild(this.makeNode('content')); |
155 | 66 | if (args.expanded) { | 66 | if (args.expanded) { |
156 | 67 | content.addClass('expanded'); | 67 | content.addClass('expanded'); |
157 | @@ -149,7 +149,7 @@ | |||
158 | 149 | var root = this.makeExpanderHooks(); | 149 | var root = this.makeExpanderHooks(); |
159 | 150 | var icon = root.one('.icon'); | 150 | var icon = root.one('.icon'); |
160 | 151 | icon.addClass('hidden'); | 151 | icon.addClass('hidden'); |
162 | 152 | var expander = this.makeExpander(root); | 152 | this.makeExpander(root); |
163 | 153 | Y.Assert.isFalse(icon.hasClass('hidden')); | 153 | Y.Assert.isFalse(icon.hasClass('hidden')); |
164 | 154 | }, | 154 | }, |
165 | 155 | 155 | ||
166 | 156 | 156 | ||
167 | === modified file 'lib/lp/app/javascript/tests/test_foldables.js' | |||
168 | --- lib/lp/app/javascript/tests/test_foldables.js 2013-03-20 03:41:40 +0000 | |||
169 | +++ lib/lp/app/javascript/tests/test_foldables.js 2017-07-21 17:11:32 +0000 | |||
170 | @@ -101,7 +101,7 @@ | |||
171 | 101 | 101 | ||
172 | 102 | var link = Y.one('a'); | 102 | var link = Y.one('a'); |
173 | 103 | link.simulate('click'); | 103 | link.simulate('click'); |
175 | 104 | var quote = Y.one('.foldable-quoted'); | 104 | quote = Y.one('.foldable-quoted'); |
176 | 105 | Y.Assert.areSame(quote.getStyle('display'), 'inline'); | 105 | Y.Assert.areSame(quote.getStyle('display'), 'inline'); |
177 | 106 | 106 | ||
178 | 107 | // Make sure that if clicked again it hides. | 107 | // Make sure that if clicked again it hides. |
179 | 108 | 108 | ||
180 | === modified file 'lib/lp/app/javascript/tests/test_longpoll.js' | |||
181 | --- lib/lp/app/javascript/tests/test_longpoll.js 2017-07-21 17:11:31 +0000 | |||
182 | +++ lib/lp/app/javascript/tests/test_longpoll.js 2017-07-21 17:11:32 +0000 | |||
183 | @@ -94,7 +94,7 @@ | |||
184 | 94 | Y.on(longpoll.longpoll_start_event, function() { | 94 | Y.on(longpoll.longpoll_start_event, function() { |
185 | 95 | fired = true; | 95 | fired = true; |
186 | 96 | }); | 96 | }); |
188 | 97 | var manager = this.setupLongPoll(); | 97 | this.setupLongPoll(); |
189 | 98 | Y.Assert.isTrue(fired, "Start event not fired."); | 98 | Y.Assert.isTrue(fired, "Start event not fired."); |
190 | 99 | }, | 99 | }, |
191 | 100 | 100 | ||
192 | 101 | 101 | ||
193 | === modified file 'lib/lp/bugs/javascript/bugtask_index.js' | |||
194 | --- lib/lp/bugs/javascript/bugtask_index.js 2017-07-21 17:11:31 +0000 | |||
195 | +++ lib/lp/bugs/javascript/bugtask_index.js 2017-07-21 17:11:32 +0000 | |||
196 | @@ -545,13 +545,13 @@ | |||
197 | 545 | (LP.links.me !== null)) { | 545 | (LP.links.me !== null)) { |
198 | 546 | if (Y.Lang.isValue(bugtarget_content)) { | 546 | if (Y.Lang.isValue(bugtarget_content)) { |
199 | 547 | if (conf.target_is_product) { | 547 | if (conf.target_is_product) { |
207 | 548 | var bugtarget_picker = Y.lp.app.picker.addPickerPatcher( | 548 | Y.lp.app.picker.addPickerPatcher( |
208 | 549 | 'Product', | 549 | 'Product', |
209 | 550 | conf.bugtask_path, | 550 | conf.bugtask_path, |
210 | 551 | "target_link", | 551 | "target_link", |
211 | 552 | bugtarget_content.get('id'), | 552 | bugtarget_content.get('id'), |
212 | 553 | {"step_title": "Search projects", | 553 | {"step_title": "Search projects", |
213 | 554 | "header": "Change project"}); | 554 | "header": "Change project"}); |
214 | 555 | } | 555 | } |
215 | 556 | } | 556 | } |
216 | 557 | 557 | ||
217 | @@ -1046,7 +1046,7 @@ | |||
218 | 1046 | if (!Y.Lang.isValue(io_provider)) { | 1046 | if (!Y.Lang.isValue(io_provider)) { |
219 | 1047 | io_provider = Y.lp.client.get_configured_io_provider(); | 1047 | io_provider = Y.lp.client.get_configured_io_provider(); |
220 | 1048 | } | 1048 | } |
222 | 1049 | var request = io_provider.io(batched_comments_url, {on: handlers}); | 1049 | io_provider.io(batched_comments_url, {on: handlers}); |
223 | 1050 | }; | 1050 | }; |
224 | 1051 | 1051 | ||
225 | 1052 | /** | 1052 | /** |
226 | 1053 | 1053 | ||
227 | === modified file 'lib/lp/bugs/javascript/duplicates.js' | |||
228 | --- lib/lp/bugs/javascript/duplicates.js 2017-07-21 17:11:31 +0000 | |||
229 | +++ lib/lp/bugs/javascript/duplicates.js 2017-07-21 17:11:32 +0000 | |||
230 | @@ -339,7 +339,6 @@ | |||
231 | 339 | } | 339 | } |
232 | 340 | 340 | ||
233 | 341 | var that = this; | 341 | var that = this; |
234 | 342 | var spinner = null; | ||
235 | 343 | var error_handler = this._error_handler(widget); | 342 | var error_handler = this._error_handler(widget); |
236 | 344 | var submit_url = LP.cache.context.web_link + '/+duplicate'; | 343 | var submit_url = LP.cache.context.web_link + '/+duplicate'; |
237 | 345 | var y_config = { | 344 | var y_config = { |
238 | @@ -362,7 +361,7 @@ | |||
239 | 362 | } | 361 | } |
240 | 363 | } | 362 | } |
241 | 364 | that.set('error', null); | 363 | that.set('error', null); |
243 | 365 | spinner = that._show_bug_spinner(widget); | 364 | that._show_bug_spinner(widget); |
244 | 366 | }, | 365 | }, |
245 | 367 | success: function(id, response) { | 366 | success: function(id, response) { |
246 | 368 | that._submit_bug_success( | 367 | that._submit_bug_success( |
247 | 369 | 368 | ||
248 | === modified file 'lib/lp/bugs/javascript/filebug.js' | |||
249 | --- lib/lp/bugs/javascript/filebug.js 2014-01-30 15:04:06 +0000 | |||
250 | +++ lib/lp/bugs/javascript/filebug.js 2017-07-21 17:11:32 +0000 | |||
251 | @@ -11,11 +11,7 @@ | |||
252 | 11 | var namespace = Y.namespace('lp.bugs.filebug'); | 11 | var namespace = Y.namespace('lp.bugs.filebug'); |
253 | 12 | var info_type = Y.lp.app.information_type; | 12 | var info_type = Y.lp.app.information_type; |
254 | 13 | 13 | ||
260 | 14 | // For tests. | 14 | var setup_filebug = function() { |
256 | 15 | var skip_animation; | ||
257 | 16 | |||
258 | 17 | var setup_filebug = function(skip_anim) { | ||
259 | 18 | skip_animation = skip_anim; | ||
261 | 19 | if (LP.cache.enable_bugfiling_duplicate_search) { | 15 | if (LP.cache.enable_bugfiling_duplicate_search) { |
262 | 20 | Y.lp.bugs.filebug_dupefinder.setup_dupe_finder(); | 16 | Y.lp.bugs.filebug_dupefinder.setup_dupe_finder(); |
263 | 21 | } | 17 | } |
264 | 22 | 18 | ||
265 | === modified file 'lib/lp/bugs/javascript/tests/test_bug_notification_level.js' | |||
266 | --- lib/lp/bugs/javascript/tests/test_bug_notification_level.js 2013-03-20 03:41:40 +0000 | |||
267 | +++ lib/lp/bugs/javascript/tests/test_bug_notification_level.js 2017-07-21 17:11:32 +0000 | |||
268 | @@ -216,7 +216,7 @@ | |||
269 | 216 | var radio_buttons = node.all('input[name="field.subscription"]'); | 216 | var radio_buttons = node.all('input[name="field.subscription"]'); |
270 | 217 | 217 | ||
271 | 218 | module._bug_notification_level_visible = false; | 218 | module._bug_notification_level_visible = false; |
273 | 219 | var state = module._initialize(radio_buttons, level_node); | 219 | module._initialize(radio_buttons, level_node); |
274 | 220 | Y.Assert.isTrue(module._bug_notification_level_visible); | 220 | Y.Assert.isTrue(module._bug_notification_level_visible); |
275 | 221 | }, | 221 | }, |
276 | 222 | 222 | ||
277 | 223 | 223 | ||
278 | === modified file 'lib/lp/bugs/javascript/tests/test_filebug.js' | |||
279 | --- lib/lp/bugs/javascript/tests/test_filebug.js 2013-03-20 03:41:40 +0000 | |||
280 | +++ lib/lp/bugs/javascript/tests/test_filebug.js 2017-07-21 17:11:32 +0000 | |||
281 | @@ -57,7 +57,7 @@ | |||
282 | 57 | } | 57 | } |
283 | 58 | var form = Y.Node.create(Y.one('#' + form_id).getContent()); | 58 | var form = Y.Node.create(Y.one('#' + form_id).getContent()); |
284 | 59 | this.fixture.appendChild(form); | 59 | this.fixture.appendChild(form); |
286 | 60 | Y.lp.bugs.filebug.setup_filebug(true); | 60 | Y.lp.bugs.filebug.setup_filebug(); |
287 | 61 | }, | 61 | }, |
288 | 62 | 62 | ||
289 | 63 | tearDown: function () { | 63 | tearDown: function () { |
290 | 64 | 64 | ||
291 | === modified file 'lib/lp/bugs/javascript/tests/test_pre_search.js' | |||
292 | --- lib/lp/bugs/javascript/tests/test_pre_search.js 2013-03-20 03:41:40 +0000 | |||
293 | +++ lib/lp/bugs/javascript/tests/test_pre_search.js 2017-07-21 17:11:32 +0000 | |||
294 | @@ -3,9 +3,8 @@ | |||
295 | 3 | 3 | ||
296 | 4 | YUI.add('lp.bugs.bugtask_index.test_pre_search', function (Y) { | 4 | YUI.add('lp.bugs.bugtask_index.test_pre_search', function (Y) { |
297 | 5 | var module = Y.lp.bugs.bugtask_index; | 5 | var module = Y.lp.bugs.bugtask_index; |
301 | 6 | // Local aliases | 6 | // Local alias. |
302 | 7 | var Assert = Y.Assert, | 7 | var ArrayAssert = Y.ArrayAssert; |
300 | 8 | ArrayAssert = Y.ArrayAssert; | ||
303 | 9 | 8 | ||
304 | 10 | // A picker implementation that records method calls for testing. | 9 | // A picker implementation that records method calls for testing. |
305 | 11 | function FauxPicker() { | 10 | function FauxPicker() { |
306 | 12 | 11 | ||
307 | === modified file 'lib/lp/bugs/javascript/tests/test_subscription.js' | |||
308 | --- lib/lp/bugs/javascript/tests/test_subscription.js 2017-07-21 17:11:31 +0000 | |||
309 | +++ lib/lp/bugs/javascript/tests/test_subscription.js 2017-07-21 17:11:32 +0000 | |||
310 | @@ -2200,8 +2200,7 @@ | |||
311 | 2200 | var args = { bugs: [ { self: { self_link: 'http://bug/' } } ], | 2200 | var args = { bugs: [ { self: { self_link: 'http://bug/' } } ], |
312 | 2201 | teams: [ { self: { self_link: 'http://team1/' } }, | 2201 | teams: [ { self: { self_link: 'http://team1/' } }, |
313 | 2202 | { self: { self_link: 'http://team2/' } }] }; | 2202 | { self: { self_link: 'http://team2/' } }] }; |
316 | 2203 | var data = module._get_unsubscribe_duplicates_text_and_subscriptions( | 2203 | module._get_unsubscribe_duplicates_text_and_subscriptions(args); |
315 | 2204 | args); | ||
317 | 2205 | } | 2204 | } |
318 | 2206 | 2205 | ||
319 | 2207 | })); | 2206 | })); |
320 | @@ -2457,8 +2456,7 @@ | |||
321 | 2457 | var args = { bugs: [ { self: { self_link: 'http://bug/' } } ], | 2456 | var args = { bugs: [ { self: { self_link: 'http://bug/' } } ], |
322 | 2458 | teams: [ { self: { self_link: 'http://team1/' } }, | 2457 | teams: [ { self: { self_link: 'http://team1/' } }, |
323 | 2459 | { self: { self_link: 'http://team2/' } }] }; | 2458 | { self: { self_link: 'http://team2/' } }] }; |
326 | 2460 | var data = module._get_unsubscribe_duplicates_text_and_subscriptions( | 2459 | module._get_unsubscribe_duplicates_text_and_subscriptions(args); |
325 | 2461 | args); | ||
327 | 2462 | } | 2460 | } |
328 | 2463 | 2461 | ||
329 | 2464 | })); | 2462 | })); |
330 | 2465 | 2463 | ||
331 | === modified file 'lib/lp/registry/javascript/distroseries/widgets.js' | |||
332 | --- lib/lp/registry/javascript/distroseries/widgets.js 2013-04-09 05:05:39 +0000 | |||
333 | +++ lib/lp/registry/javascript/distroseries/widgets.js 2017-07-21 17:11:32 +0000 | |||
334 | @@ -434,7 +434,7 @@ | |||
335 | 434 | // of the parents is among them. | 434 | // of the parents is among them. |
336 | 435 | return true; | 435 | return true; |
337 | 436 | } | 436 | } |
339 | 437 | var ds, choice; | 437 | var ds; |
340 | 438 | for (ds in this._archindep_tags) { | 438 | for (ds in this._archindep_tags) { |
341 | 439 | var arch_tag = this._archindep_tags[ds]; | 439 | var arch_tag = this._archindep_tags[ds]; |
342 | 440 | var i = 0; | 440 | var i = 0; |
343 | 441 | 441 | ||
344 | === modified file 'lib/lp/registry/javascript/distroseriesdifferences_details.js' | |||
345 | --- lib/lp/registry/javascript/distroseriesdifferences_details.js 2013-04-09 05:05:39 +0000 | |||
346 | +++ lib/lp/registry/javascript/distroseriesdifferences_details.js 2017-07-21 17:11:32 +0000 | |||
347 | @@ -106,7 +106,7 @@ | |||
348 | 106 | var blacklist_slot = container.one('div.blacklist-options'); | 106 | var blacklist_slot = container.one('div.blacklist-options'); |
349 | 107 | 107 | ||
350 | 108 | if (blacklist_slot !== null) { | 108 | if (blacklist_slot !== null) { |
352 | 109 | var blacklist_widget = new BlacklistWidget( | 109 | new BlacklistWidget( |
353 | 110 | {srcNode: blacklist_slot, | 110 | {srcNode: blacklist_slot, |
354 | 111 | sourceName: source_name, | 111 | sourceName: source_name, |
355 | 112 | dsdLink: api_uri, | 112 | dsdLink: api_uri, |
356 | @@ -617,14 +617,14 @@ | |||
357 | 617 | 617 | ||
358 | 618 | namespace.setup = function() { | 618 | namespace.setup = function() { |
359 | 619 | Y.all('table.listing a.toggle-extra').each(function(toggle){ | 619 | Y.all('table.listing a.toggle-extra').each(function(toggle){ |
361 | 620 | var row = new namespace.ExpandableRowWidget({toggle: toggle}); | 620 | new namespace.ExpandableRowWidget({toggle: toggle}); |
362 | 621 | }); | 621 | }); |
363 | 622 | }; | 622 | }; |
364 | 623 | 623 | ||
365 | 624 | var set_package_diff_status = function(container, new_status, note_msg) { | 624 | var set_package_diff_status = function(container, new_status, note_msg) { |
366 | 625 | container.removeClass('request-derived-diff'); | 625 | container.removeClass('request-derived-diff'); |
367 | 626 | container.removeClass('PENDING'); | 626 | container.removeClass('PENDING'); |
369 | 627 | note = container.all('.note').remove(); | 627 | container.all('.note').remove(); |
370 | 628 | container.addClass(new_status); | 628 | container.addClass(new_status); |
371 | 629 | if (note_msg !== undefined) { | 629 | if (note_msg !== undefined) { |
372 | 630 | container.append([ | 630 | container.append([ |
373 | 631 | 631 | ||
374 | === modified file 'lib/lp/registry/javascript/structural-subscription.js' | |||
375 | --- lib/lp/registry/javascript/structural-subscription.js 2017-07-21 17:11:31 +0000 | |||
376 | +++ lib/lp/registry/javascript/structural-subscription.js 2017-07-21 17:11:32 +0000 | |||
377 | @@ -885,7 +885,7 @@ | |||
378 | 885 | .set('text', LP.cache.context.title); | 885 | .set('text', LP.cache.context.title); |
379 | 886 | add_recipient_picker(content_node, hide_recipient_picker); | 886 | add_recipient_picker(content_node, hide_recipient_picker); |
380 | 887 | 887 | ||
382 | 888 | var accordion = create_accordion('#accordion-overlay', content_node); | 888 | create_accordion('#accordion-overlay', content_node); |
383 | 889 | 889 | ||
384 | 890 | // Set up click handlers for the events radio buttons. | 890 | // Set up click handlers for the events radio buttons. |
385 | 891 | var radio_group = Y.all('#events input'); | 891 | var radio_group = Y.all('#events input'); |
386 | 892 | 892 | ||
387 | === modified file 'lib/lp/registry/javascript/tests/test_distroseriesdifferences_details.js' | |||
388 | --- lib/lp/registry/javascript/tests/test_distroseriesdifferences_details.js 2017-07-21 17:11:31 +0000 | |||
389 | +++ lib/lp/registry/javascript/tests/test_distroseriesdifferences_details.js 2017-07-21 17:11:32 +0000 | |||
390 | @@ -95,7 +95,7 @@ | |||
391 | 95 | }, | 95 | }, |
392 | 96 | 96 | ||
393 | 97 | test_initializer: function() { | 97 | test_initializer: function() { |
395 | 98 | var row = new module.ExpandableRowWidget({toggle: this.toggle}); | 98 | new module.ExpandableRowWidget({toggle: this.toggle}); |
396 | 99 | Y.Assert.isTrue(this.toggle.hasClass('treeCollapsed')); | 99 | Y.Assert.isTrue(this.toggle.hasClass('treeCollapsed')); |
397 | 100 | Y.Assert.isTrue(this.toggle.hasClass('sprite')); | 100 | Y.Assert.isTrue(this.toggle.hasClass('sprite')); |
398 | 101 | }, | 101 | }, |
399 | 102 | 102 | ||
400 | === modified file 'lib/lp/registry/javascript/tests/test_team_mailinglists.js' | |||
401 | --- lib/lp/registry/javascript/tests/test_team_mailinglists.js 2017-07-21 17:11:31 +0000 | |||
402 | +++ lib/lp/registry/javascript/tests/test_team_mailinglists.js 2017-07-21 17:11:32 +0000 | |||
403 | @@ -54,8 +54,7 @@ | |||
404 | 54 | forwards_navigation: Y.all('.last,.next'), | 54 | forwards_navigation: Y.all('.last,.next'), |
405 | 55 | backwards_navigation: Y.all('.first,.previous') | 55 | backwards_navigation: Y.all('.first,.previous') |
406 | 56 | }; | 56 | }; |
409 | 57 | var message_list = new Y.lp.registry.team.mailinglists.MessageList( | 57 | new Y.lp.registry.team.mailinglists.MessageList(config); |
408 | 58 | config); | ||
410 | 59 | 58 | ||
411 | 60 | var fired = false; | 59 | var fired = false; |
412 | 61 | Y.on('messageList:backwards', function () { | 60 | Y.on('messageList:backwards', function () { |
413 | 62 | 61 | ||
414 | === modified file 'lib/lp/soyuz/javascript/base.js' | |||
415 | --- lib/lp/soyuz/javascript/base.js 2011-04-11 06:49:29 +0000 | |||
416 | +++ lib/lp/soyuz/javascript/base.js 2017-07-21 17:11:32 +0000 | |||
417 | @@ -23,7 +23,7 @@ | |||
418 | 23 | failure_message.addClass('update-failure-message'); | 23 | failure_message.addClass('update-failure-message'); |
419 | 24 | failure_message.one('span').set('text', text); | 24 | failure_message.one('span').set('text', text); |
420 | 25 | 25 | ||
422 | 26 | var retry_link = failure_message.one('a') | 26 | failure_message.one('a') |
423 | 27 | .addClass('update-retry') | 27 | .addClass('update-retry') |
424 | 28 | .set('href', '') | 28 | .set('href', '') |
425 | 29 | .on('click', handler); | 29 | .on('click', handler); |
426 | 30 | 30 | ||
427 | === modified file 'lib/lp/testing/tests/test_yuixhr_fixture.js' | |||
428 | --- lib/lp/testing/tests/test_yuixhr_fixture.js 2013-04-08 08:06:09 +0000 | |||
429 | +++ lib/lp/testing/tests/test_yuixhr_fixture.js 2017-07-21 17:11:32 +0000 | |||
430 | @@ -53,7 +53,7 @@ | |||
431 | 53 | }, | 53 | }, |
432 | 54 | 54 | ||
433 | 55 | test_teardown_clears_attributes: function() { | 55 | test_teardown_clears_attributes: function() { |
435 | 56 | var data = module.setup(this, 'baseline'); | 56 | module.setup(this, 'baseline'); |
436 | 57 | module.teardown(this); | 57 | module.teardown(this); |
437 | 58 | Y.Assert.isUndefined(this._lp_fixture_setups); | 58 | Y.Assert.isUndefined(this._lp_fixture_setups); |
438 | 59 | Y.Assert.isUndefined(this._lp_fixture_data); | 59 | Y.Assert.isUndefined(this._lp_fixture_data); |