diff --git a/src/pagination/docs/demo.html b/src/pagination/docs/demo.html index 5cfacd3169..b3f16ef5ff 100644 --- a/src/pagination/docs/demo.html +++ b/src/pagination/docs/demo.html @@ -2,12 +2,14 @@

Default

- + - - The selected page no: {{currentPage}} +
+ + The selected page no: {{currentPage}} +

Pager

@@ -15,8 +17,8 @@

Pager


Limit the maximum visible buttons

- - + +
Page: {{bigCurrentPage}} / {{numPages}}
diff --git a/src/pagination/test/pagination.spec.js b/src/pagination/test/pagination.spec.js index 19ad8f5b1d..b80197bc51 100644 --- a/src/pagination/test/pagination.spec.js +++ b/src/pagination/test/pagination.spec.js @@ -32,8 +32,7 @@ describe('pagination directive', function () { expect(element.hasClass('pagination')).toBe(true); }); - it('contains one ul and num-pages + 2 li elements', function() { - expect(element.find('ul').length).toBe(1); + it('contains num-pages + 2 li elements', function() { expect(getPaginationBarSize()).toBe(7); expect(getPaginationEl(0).text()).toBe('Previous'); expect(getPaginationEl(-1).text()).toBe('Next'); @@ -267,8 +266,7 @@ describe('pagination directive', function () { $rootScope.$digest(); })); - it('contains one ul and maxsize + 4 elements', function() { - expect(element.find('ul').length).toBe(1); + it('contains maxsize + 4 elements', function() { expect(getPaginationBarSize()).toBe($rootScope.maxSize + 4); expect(getPaginationEl(0).text()).toBe('Previous'); expect(getPaginationEl(1).text()).toBe('...'); @@ -327,8 +325,7 @@ describe('pagination directive', function () { $rootScope.$digest(); })); - it('contains one ul and num-pages + 4 li elements', function() { - expect(element.find('ul').length).toBe(1); + it('contains num-pages + 4 li elements', function() { expect(getPaginationBarSize()).toBe(9); expect(getPaginationEl(0).text()).toBe('First'); expect(getPaginationEl(1).text()).toBe('Previous'); @@ -421,7 +418,7 @@ describe('pagination directive', function () { $rootScope.$digest(); })); - it('contains one ul and num-pages li elements', function() { + it('contains num-pages li elements', function() { expect(getPaginationBarSize()).toBe(5); expect(getPaginationEl(0).text()).toBe('1'); expect(getPaginationEl(-1).text()).toBe('5'); diff --git a/template/pagination/pager.html b/template/pagination/pager.html index 74b77f2d8b..d13d6d500b 100644 --- a/template/pagination/pager.html +++ b/template/pagination/pager.html @@ -1,5 +1,3 @@ -
- -
+ \ No newline at end of file diff --git a/template/pagination/pagination.html b/template/pagination/pagination.html index dec9c8f7cf..1fc360079f 100644 --- a/template/pagination/pagination.html +++ b/template/pagination/pagination.html @@ -1,4 +1,3 @@ - + \ No newline at end of file