Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
test: asyncPlatformFlush -> flush
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Nov 11, 2014
1 parent e617452 commit 3cdffde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/decorator.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
test('label is invisible if floating label and focused', function(done) {
assert.ok(d3._labelVisible);
d3.focusAction();
asyncPlatformFlush(function() {
flush(function() {
assert.ok(!d3._labelVisible);
done();
});
Expand Down Expand Up @@ -113,10 +113,10 @@

test('tapping on floating label focuses input', function(done) {
i3.value = 'foobar';
asyncPlatformFlush(function() {
flush(function() {
assert.ok(!d3._labelVisible);
fake.downOnNode(d1.shadowRoot.querySelector('.floated-label'));
asyncPlatformFlush(function() {
flush(function() {
assert.strictEqual(document.activeElement, i1);
done();
})
Expand Down

0 comments on commit 3cdffde

Please sign in to comment.