Sunday 15 July 2012

jquery - Pass a parameter to qunit teardown? -


I would like to call a special method on that item which I teardown . This object is usually created for each exam in the module. In the example code below, cb.close () must be called before TC.destroy . I have checked and there has passed a dispute for you.

  Module ('codebooks events', {setup: function ()} If looking for a suggested approach that < Code> cb  knows how to turn off the control. (Typef TC.ind .: == 'Undefined') {T.C. It ({Effect: false});}}, Teadown: function () ( If (TC Dastoroye) TC Dastorey ();}}); test ('search complete', function () (expected (1); var cb = TC.createControl ({type: 'cb', el: $ (' # Control-target ')}); Stop (); CB ('Cb: searchComplete', function () (OK, 'search complete'); cb.close (); start ();}); cb.tcTrigger ('cb: search', {word: 'abc' , Test ('status update', function) () (expected (1); var cb = TC.createControl ({type: 'cb', el: $ ('# Control-target ')}; stop (); on CB (' cb: statusUpdate ', function () (OK,' Status Update '); cb.close (); Start ();}); cb. TcTrigger ('cb: search', {word: 'abc', book: 'dictionary'});});  cb  variable     

code>. Then call close () on it inside your teardown callback. It must include all the quinit callbacks you need.

No comments:

Post a Comment