浏览 Angular js教程,我不明白 jasmine 测试中的中继器(功能?)来自哪里。这是茉莉花还是角结构?
该页面在元素中确实有一个 ng-repeat 属性<li>
- 但我看不出它如何转化为测试中对“中继器”的引用
it('should be possible to control phone order via the drop down select box',
function() {
//let's narrow the dataset to make the test assertions shorter
input('query').enter('tablet');
//where does 'repeater' below come from?
expect(repeater('.phones li', 'Phone List').column('phone.name')).
toEqual(["Motorola XOOM\u2122 with Wi-Fi",
"MOTOROLA XOOM\u2122"]);
select('orderProp').option('Alphabetical');
expect(repeater('.phones li', 'Phone List').column('phone.name')).
toEqual(["MOTOROLA XOOM\u2122",
"Motorola XOOM\u2122 with Wi-Fi"]);
});