"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
var _styles = require("../../styles");
var _TableDOMUtils = require("../TableDOMUtils");
var NAME = 'TableDOMUtils';
describe("".concat(NAME), function () {
  var tableDOMHelper;
  var container;
  beforeAll(function () {
    var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _context16, _context17;
    container = document.createElement('div');
    container.innerHTML = (0, _concat.default)(_context = (0, _concat.default)(_context2 = (0, _concat.default)(_context3 = (0, _concat.default)(_context4 = (0, _concat.default)(_context5 = (0, _concat.default)(_context6 = (0, _concat.default)(_context7 = (0, _concat.default)(_context8 = (0, _concat.default)(_context9 = (0, _concat.default)(_context10 = (0, _concat.default)(_context11 = (0, _concat.default)(_context12 = (0, _concat.default)(_context13 = (0, _concat.default)(_context14 = (0, _concat.default)(_context15 = (0, _concat.default)(_context16 = (0, _concat.default)(_context17 = "<div class='".concat(_styles.Classes.artTableWrapper, "'>\n          <div class='")).call(_context17, _styles.Classes.loadingWrapper, "'>\n              <div class='")).call(_context16, _styles.Classes.loadingIndicatorWrapper, "'>\n                <div class='")).call(_context15, _styles.Classes.loadingIndicator, "'></div>\n              </div>     \n              <div class='")).call(_context14, _styles.Classes.loadingContentWrapper, "'>\n                <div class='")).call(_context13, _styles.Classes.artTable, "'>\n                  <div class='")).call(_context12, _styles.Classes.tableHeader, "'>\n                    \n                  </div>\n                  <div class='")).call(_context11, _styles.Classes.tableBody, "'>\n                    <div class='")).call(_context10, _styles.Classes.virtual, "'>\n                      <div class='")).call(_context9, _styles.Classes.virtualBlank, " top'></div>\n                      <table></table>\n                      <div class='")).call(_context8, _styles.Classes.virtualBlank, " bottom'></div>\n                    </div>                   \n                  </div>\n                  <div class='")).call(_context7, _styles.Classes.tableFooter, "'>\n                  </div>\n                  <div class='")).call(_context6, _styles.Classes.lockShadowMask, "'>\n                    <div class='")).call(_context5, _styles.Classes.leftLockShadow, "'></div>\n                  </div>\n                  <div class='")).call(_context4, _styles.Classes.lockShadowMask, "'>\n                    <div class='")).call(_context3, _styles.Classes.rightLockShadow, "'></div>\n                  </div>\n                </div>\n                <div class='")).call(_context2, _styles.Classes.stickyScroll, "'>\n                  <div class='")).call(_context, _styles.Classes.stickyScrollItem, "'></div>\n                </div>\n              </div>    \n          </div>        \n      </div>");
    tableDOMHelper = new _TableDOMUtils.TableDOMHelper(container.querySelector(".".concat(_styles.Classes.artTableWrapper)));
  });
  afterAll(function () {
    container = null;
    tableDOMHelper = null;
  });
  it('getVirtualTop', function () {
    expect(tableDOMHelper.getVirtualTop()).not.toBeNull();
  });
  it('getTableRows', function () {
    expect(tableDOMHelper.getTableRows().length).toBe(0);
  });
  it('getLeftLockShadow', function () {
    expect(tableDOMHelper.getLeftLockShadow()).not.toBeNull();
  });
  it('getRightLockShadow', function () {
    expect(tableDOMHelper.getRightLockShadow()).not.toBeNull();
  });
  it('getLoadingIndicator', function () {
    expect(tableDOMHelper.getLoadingIndicator()).not.toBeNull();
  });
});