下面是我们有四个选项卡的代码片段。组选项卡设置为默认值。所以当视图被加载时,Group 默认是启用的。
xtype: 'oneclient-toggles-btn',
itemId: 'productToggle',
height: 40,
margin: '17 25 0 0',
btnList: [{
name: 'Group',
refer : "Group",
active: true
}, {
name: ' All ',
refer : "All",
active: false
}, {
name: 'My Favourites',
refer : "Favourite",
active: false
}, {
name: 'Invalid Data',
refer : "Invalid",
active: false
}, {
name: 'Inactive',
refer : "Inactive",
active: false
}
如果默认选项卡是“组”,我需要使用 Jasmine 进行测试。我该怎么做?提前致谢 :-)