Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(671)

Delta Between Two Patch Sets: test/test_browser_charm_details.js

Issue 8171047: Add support for loading QA data into charm detail
Left Patch Set: Created 12 years ago
Right Patch Set: Add support for loading QA data into charm detail Created 12 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « test/data/qa.json ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b