通过角度js 教程,我不明白转发器(功能?)来自茉莉花测试.这是茉莉花还是棱角分明的构造?
页面在<li>元素中确实有一个ng-repeat属性- 但是我没看到它如何转换为测试中对'repeater'的引用
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"]);
});
Run Code Online (Sandbox Code Playgroud)