Polymer 呼叫固定装置时聚合物冲洗

Polymer 呼叫固定装置时聚合物冲洗,polymer,polymer-1.0,web-component,web-component-tester,wct,Polymer,Polymer 1.0,Web Component,Web Component Tester,Wct,在夹具调用的位置设置冲洗功能可以吗?我已经试过了,而且效果更好,因为我不需要在每次测试中都刷新。在谷歌做这类事情的例子中没有发现。有什么建议吗 setup(function(done) { flush(function() { var element = fixture('basic'); done(); }); }); 测试将像这样直接 test('instantiating the element works', function() { assert.eq

在夹具调用的位置设置冲洗功能可以吗?我已经试过了,而且效果更好,因为我不需要在每次测试中都刷新。在谷歌做这类事情的例子中没有发现。有什么建议吗

setup(function(done) {
  flush(function() {
    var element = fixture('basic');
    done();
  });
});
测试将像这样直接

test('instantiating the element works', function() {
    assert.equal(Polymer.dom(element.root).querySelector('paper-card').is, 'paper-card);
});
*测试部件中的纸卡在dom repeat中呈现

谢谢大家