8ee941cef346791f720e4c1db1c8b23bc371e0a62f6680a82376128af29d63e21994c6d8a9b234dc48499971b737e738f01c98565e7c6b058493e2bc9018f4 988 B

12345678910111213141516171819202122232425262728293031
  1. 'use strict';
  2. describe('Walkontable.ColumnFilter', function () {
  3. describe('offsettedTH', function () {
  4. it('should do nothing if row header is not visible', function () {
  5. var filter = new Walkontable.ColumnFilter();
  6. filter.countTH = 0;
  7. expect(filter.offsettedTH(1)).toEqual(1);
  8. });
  9. it('should decrease n by 1 if row header is visible', function () {
  10. var filter = new Walkontable.ColumnFilter();
  11. filter.countTH = 1;
  12. expect(filter.offsettedTH(1)).toEqual(0);
  13. });
  14. });
  15. describe('unOffsettedTH', function () {
  16. it('should do nothing if row header is not visible', function () {
  17. var filter = new Walkontable.ColumnFilter();
  18. filter.countTH = 0;
  19. expect(filter.unOffsettedTH(1)).toEqual(1);
  20. });
  21. it('should increase n by 1 if row header is visible', function () {
  22. var filter = new Walkontable.ColumnFilter();
  23. filter.countTH = 1;
  24. expect(filter.unOffsettedTH(0)).toEqual(1);
  25. });
  26. });
  27. });