IE fixes
[deck.js.git] / test / spec.status.js
blobfdfd7adec1c0f37e6ba5d6cda54ffd8bd2226fa5
1 describe('Deck JS Status Indicator', function() {
2 beforeEach(function() {
3 loadFixtures('standard.html');
4 if (Modernizr.history) {
5 history.replaceState({}, "", "#")
7 else {
8 window.location.hash = '#';
10 $.deck('.slide');
11 });
13 it('should show the correct total number of slides', function() {
14 expect($(defaults.selectors.statusTotal)).toHaveText($.deck('getSlides').length);
15 });
17 it('should start at 1 of X', function() {
18 expect($(defaults.selectors.statusCurrent)).toHaveText(1);
19 });
21 it('should update to the correct number on slide change', function() {
22 $.deck('go', 2);
23 expect($(defaults.selectors.statusCurrent)).toHaveText('3');
24 });
25 });