Skip to content

Commit

Permalink
U: #15, tc
Browse files Browse the repository at this point in the history
  • Loading branch information
lizzie committed Oct 29, 2013
1 parent 707eb9c commit aad8537
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/overlay-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ define(function(require) {
expect(['green', 'rgb(0, 128, 0)']).to.contain(overlay.element.css('background-color'));
expect(overlay.element.css('padding-left')).to.equal('11px');
expect(overlay.element.css('font-size')).to.equal('13px');
expect(overlay.element.css('position')).to.equal('absolute');
});

it('默认属性', function() {
Expand All @@ -66,12 +67,7 @@ define(function(require) {
expect(overlay.element.width()).to.equal(0);
expect(parseInt(overlay.element[0].style.zIndex)).to.equal(99);
expect(overlay.get('visible')).to.equal(false);
//expect(overlay.get('style')).to.eql(null);
expect(overlay.get('style')).to.eql({
position: 'absolute',
left: '-9999px',
top: '-9999px'
});
expect(overlay.get('style')).to.eql(null);
});

it('align 设置', function() {
Expand Down Expand Up @@ -251,8 +247,8 @@ define(function(require) {
setTimeout(function () {
expect(setPosition.callCount).to.be(3);
done();
}, 100);
}, 100);
}, 200);
}, 200);
});

it('iframe-shim should work', function() {
Expand Down

0 comments on commit aad8537

Please sign in to comment.