Skip to content

Commit

Permalink
fix tc
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Oct 12, 2015
1 parent 8b75f37 commit 6c91e05
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/index.spec.js
Expand Up @@ -105,10 +105,11 @@ describe('rc-tooltip', function () {
var targetOffset = $(domNode).offset();
var popupOffset = $(popupDomNode).offset();
// offset is 3
expect(popupOffset.left).to.be(targetOffset.left + $(domNode).outerWidth() + 3);
Simulate.click(domNode);
if(!window.callPhantom) {
expect(popupOffset.left).to.be(targetOffset.left + $(domNode).outerWidth() + 3);
}
done();
}, 20);
}, 100);
});

it('right works', (done)=> {
Expand Down

0 comments on commit 6c91e05

Please sign in to comment.