LEFT | RIGHT |
1 'use strict'; | 1 'use strict'; |
2 | 2 |
3 (function() { | 3 (function() { |
4 | 4 |
5 describe('browser_charm_view', function() { | 5 describe('browser_charm_view', function() { |
6 var CharmView, models, node, view, views, Y; | 6 var CharmView, models, node, view, views, Y; |
7 | 7 |
8 before(function(done) { | 8 before(function(done) { |
9 Y = YUI(GlobalConfig).use( | 9 Y = YUI(GlobalConfig).use( |
10 'node-event-simulate', | 10 'node-event-simulate', |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 it('qa content is loaded when the tab is clicked on', function(done) { | 227 it('qa content is loaded when the tab is clicked on', function(done) { |
228 var view = new CharmView({ | 228 var view = new CharmView({ |
229 charm: new models.BrowserCharm({ | 229 charm: new models.BrowserCharm({ |
230 files: [], | 230 files: [], |
231 id: 'precise/ceph-9' | 231 id: 'precise/ceph-9' |
232 }) | 232 }) |
233 }); | 233 }); |
234 view.render(node); | 234 view.render(node); |
235 | 235 |
236 view._loadQAContent = function() { | 236 view._loadQAContent = function() { |
237 assert(1); | 237 // This test is just verifying that we don't timeout. The event fired, |
| 238 // was caught here, and we completed the test run. No assertion to be |
| 239 // found here. |
238 done(); | 240 done(); |
239 }; | 241 }; |
240 | 242 |
241 var qa_tab = Y.one('.tabs li a.bws_qa'); | 243 var qa_tab = Y.one('.tabs li a.bws_qa'); |
242 qa_tab.simulate('click'); | 244 qa_tab.simulate('click'); |
243 }); | 245 }); |
244 }); | 246 }); |
245 })(); | 247 })(); |
246 | 248 |
LEFT | RIGHT |