我想在 Ext4 中测试视图,但是
Application.getView
返回构造函数,我想不出如何使它工作。
describe("general", function() {
it("should have fields enabled by default", function(){
var view = Application.getView('BRM.view.business_rule.form_part.General'),
viewInstance = new view(),
items = viewInstance.items
;
_.each(items, function(item){
console.log(item);
debugger;
})
})
})