f6c1346972486b3c0d9f97be6643159f9bf10b9bb7c3faa36e0e4579e6a4c104c991dad6493140f1550568d008415a668ce86592cce84a5b88ea42f6b08fde 665 B

1234567891011121314151617181920212223242526272829
  1. describe('Core_reCreate', () => {
  2. var id = 'testContainer';
  3. beforeEach(function() {
  4. this.$container = $(`<div id="${id}"></div>`).appendTo('body');
  5. });
  6. afterEach(function() {
  7. if (this.$container) {
  8. destroy();
  9. this.$container.remove();
  10. }
  11. });
  12. it('should correctly re-render corner header when there is multiline content', () => {
  13. var settings = {
  14. rowHeaders: true,
  15. colHeaders(col) {
  16. return `Column<br>${col}`;
  17. }
  18. };
  19. handsontable(settings);
  20. destroy();
  21. handsontable(settings);
  22. expect(getTopLeftClone().width()).toBe(54);
  23. expect(getTopLeftClone().height()).toBe(51);
  24. });
  25. });