Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 91539d1

Browse files
committed
Fix test of Firefox.
1 parent 6bdfbba commit 91539d1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/select.spec.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,16 +1848,19 @@ describe('ui-select tests', function() {
18481848

18491849
it('should have specific position and dimensions', function() {
18501850
var el = createUiSelect({appendToBody: true});
1851+
var originalPosition = el.css('position');
1852+
var originalTop = el.css('top');
1853+
var originalLeft = el.css('left');
18511854
var originalWidth = el.css('width');
18521855
openDropdown(el);
18531856
expect(el.css('position')).toBe('absolute');
18541857
expect(el.css('top')).toBe('100px');
18551858
expect(el.css('left')).toBe('200px');
18561859
expect(el.css('width')).toBe('300px');
18571860
closeDropdown(el);
1858-
expect(el.css('position')).toBe('');
1859-
expect(el.css('top')).toBe('');
1860-
expect(el.css('left')).toBe('');
1861+
expect(el.css('position')).toBe(originalPosition);
1862+
expect(el.css('top')).toBe(originalTop);
1863+
expect(el.css('left')).toBe(originalLeft);
18611864
expect(el.css('width')).toBe(originalWidth);
18621865
});
18631866
});

0 commit comments

Comments
 (0)