相关疑难解决方法(0)

这个角度教程中的"转发器"是茉莉花概念吗?

通过角度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)

javascript testing jasmine angularjs

7
推荐指数
1
解决办法
4303
查看次数

标签 统计

angularjs ×1

jasmine ×1

javascript ×1

testing ×1