a477a06e511f84ff0990ae59c72d2fc5da1f21e6c5c99016173e1e0afcc04e9473dafe53add581b66151e0f0d46908479fd0ff92997db9a7e1702742c65b76 973 B

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