import { expect, fixture, html } from '@open-wc/testing';
import './nile-split-panel';
describe('NileSplitPanel', () => {
    it('1. renders', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el).to.exist; });
    it('2. shadow root', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot).to.not.be.null; });
    it('3. tag name', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.tagName.toLowerCase()).to.equal('nile-split-panel'); });
    it('4. position defaults 50', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.position).to.equal(50); });
    it('5. vertical defaults false', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.vertical).to.equal(false); });
    it('6. disabled defaults false', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.disabled).to.equal(false); });
    it('7. set position', async () => { const el = await fixture(html `<nile-split-panel position="30"></nile-split-panel>`); expect(el.position).to.equal(30); });
    it('8. set vertical', async () => { const el = await fixture(html `<nile-split-panel vertical></nile-split-panel>`); expect(el.vertical).to.be.true; });
    it('9. set disabled', async () => { const el = await fixture(html `<nile-split-panel disabled></nile-split-panel>`); expect(el.disabled).to.be.true; });
    it('10. start slot', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('slot[name="start"]')).to.exist; });
    it('11. end slot', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('slot[name="end"]')).to.exist; });
    it('12. divider slot', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('slot[name="divider"]')).to.exist; });
    it('13. start part', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('[part~="start"]')).to.exist; });
    it('14. end part', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('[part~="end"]')).to.exist; });
    it('15. divider part', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('[part="divider"]')).to.exist; });
    it('16. position reflects', async () => { const el = await fixture(html `<nile-split-panel position="30"></nile-split-panel>`); expect(el.hasAttribute('position')).to.be.true; });
    it('17. vertical reflects', async () => { const el = await fixture(html `<nile-split-panel vertical></nile-split-panel>`); expect(el.hasAttribute('vertical')).to.be.true; });
    it('18. disabled reflects', async () => { const el = await fixture(html `<nile-split-panel disabled></nile-split-panel>`); expect(el.hasAttribute('disabled')).to.be.true; });
    it('19. has styles', async () => { expect((await import('./nile-split-panel')).NileSplitPanel.styles).to.exist; });
    it('20. is defined', async () => { expect(customElements.get('nile-split-panel')).to.exist; });
    it('21. shadow mode', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.mode).to.equal('open'); });
    it('22. isConnected', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.isConnected).to.be.true; });
    it('23. removal', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); el.remove(); expect(el.isConnected).to.be.false; });
    it('24. outerHTML', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.outerHTML).to.contain('nile-split-panel'); });
    it('25. matches', async () => { const el = await fixture(html `<nile-split-panel class="x"></nile-split-panel>`); expect(el.matches('.x')).to.be.true; });
    it('26. closest', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.closest('nile-split-panel')).to.equal(el); });
    it('27. cloneNode', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.cloneNode(true).tagName.toLowerCase()).to.equal('nile-split-panel'); });
    it('28. dispatchEvent', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });
    it('29. updateComplete', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });
    it('30. render method', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.render).to.be.a('function'); });
    it('31. shadowRoot host', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.host).to.equal(el); });
    it('32. class attr', async () => { const el = await fixture(html `<nile-split-panel class="sp"></nile-split-panel>`); expect(el.classList.contains('sp')).to.be.true; });
    it('33. id attr', async () => { const el = await fixture(html `<nile-split-panel id="sp1"></nile-split-panel>`); expect(el.id).to.equal('sp1'); });
    it('34. hidden', async () => { const el = await fixture(html `<nile-split-panel hidden></nile-split-panel>`); expect(el.hidden).to.be.true; });
    it('35. nodeType', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.nodeType).to.equal(1); });
    it('36. localName', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.localName).to.equal('nile-split-panel'); });
    it('37. namespaceURI', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });
    it('38. ownerDocument', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.ownerDocument).to.equal(document); });
    it('39. dynamic position', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); el.position = 70; await el.updateComplete; expect(el.position).to.equal(70); });
    it('40. dynamic disabled', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); el.disabled = true; await el.updateComplete; expect(el.disabled).to.be.true; });
    it('41. dynamic vertical', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); el.vertical = true; await el.updateComplete; expect(el.vertical).to.be.true; });
    it('42. multiple instances', async () => { const c = await fixture(html `<div><nile-split-panel></nile-split-panel><nile-split-panel></nile-split-panel></div>`); expect(c.querySelectorAll('nile-split-panel').length).to.equal(2); });
    it('43. parent-child', async () => { const c = await fixture(html `<div><nile-split-panel></nile-split-panel></div>`); expect(c.querySelector('nile-split-panel').parentElement).to.equal(c); });
    it('44. createElement', async () => { const el = document.createElement('nile-split-panel'); document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });
    it('45. dataset', async () => { const el = await fixture(html `<nile-split-panel data-idx="0"></nile-split-panel>`); expect(el.dataset.idx).to.equal('0'); });
    it('46. classList add', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });
    it('47. getBoundingClientRect', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.getBoundingClientRect()).to.exist; });
    it('48. no form', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('form')).to.be.null; });
    it('49. no input', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('input')).to.be.null; });
    it('50. no button', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('button')).to.be.null; });
    it('51. no anchor', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('a')).to.be.null; });
    it('52. no img', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('img')).to.be.null; });
    it('53. no svg', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('svg')).to.be.null; });
    it('54. style attr', async () => { const el = await fixture(html `<nile-split-panel style="color:red"></nile-split-panel>`); expect(el.style.color).to.equal('red'); });
    it('55. data attr', async () => { const el = await fixture(html `<nile-split-panel data-x="1"></nile-split-panel>`); expect(el.getAttribute('data-x')).to.equal('1'); });
    it('56. aria-label', async () => { const el = await fixture(html `<nile-split-panel aria-label="Split"></nile-split-panel>`); expect(el.getAttribute('aria-label')).to.equal('Split'); });
    it('57. dir', async () => { const el = await fixture(html `<nile-split-panel dir="rtl"></nile-split-panel>`); expect(el.dir).to.equal('rtl'); });
    it('58. lang attr', async () => { const el = await fixture(html `<nile-split-panel lang="en"></nile-split-panel>`); expect(el.lang).to.equal('en'); });
    it('59. tabindex', async () => { const el = await fixture(html `<nile-split-panel tabindex="0"></nile-split-panel>`); expect(el.getAttribute('tabindex')).to.equal('0'); });
    it('60. requestUpdate', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });
    it('61. shadow childNodes', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.childNodes.length).to.be.greaterThan(0); });
    it('62. scrollIntoView', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.scrollIntoView).to.be.a('function'); });
    it('63. focus method', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.focus).to.be.a('function'); });
    it('64. blur method', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.blur).to.be.a('function'); });
    it('65. class toggle', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });
    it('66. toggle hidden', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); el.hidden = true; expect(el.hidden).to.be.true; });
    it('67. dispatchCustomEvent', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); let d; el.addEventListener('t', ((e) => { d = e.detail; })); el.dispatchEvent(new CustomEvent('t', { detail: 'x' })); expect(d).to.equal('x'); });
    it('68. nested in div', async () => { const c = await fixture(html `<div><nile-split-panel></nile-split-panel></div>`); expect(c.querySelector('nile-split-panel')).to.exist; });
    it('69. no table', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('table')).to.be.null; });
    it('70. no ul', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('ul')).to.be.null; });
    it('71. no canvas', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('canvas')).to.be.null; });
    it('72. no video', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('video')).to.be.null; });
    it('73. no audio', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('audio')).to.be.null; });
    it('74. no nav', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('nav')).to.be.null; });
    it('75. no aside', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('aside')).to.be.null; });
    it('76. no textarea', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('textarea')).to.be.null; });
    it('77. no select', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('select')).to.be.null; });
    it('78. setAttribute data', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });
    it('79. removeAttribute hidden', async () => { const el = await fixture(html `<nile-split-panel hidden></nile-split-panel>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });
    it('80. setAttribute class', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });
    it('81. aria-describedby', async () => { const el = await fixture(html `<nile-split-panel aria-describedby="d"></nile-split-panel>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });
    it('82. multiple re-renders', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); for (let i = 0; i < 3; i++) {
        el.requestUpdate();
        await el.updateComplete;
    } expect(el.shadowRoot).to.not.be.null; });
    it('83. divider class', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('.divider')).to.exist; });
    it('84. start-panel class', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('.start')).to.exist; });
    it('85. end-panel class', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('.end')).to.exist; });
    it('86. primary defaults undefined', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.primary).to.be.undefined; });
    it('87. set primary start', async () => { const el = await fixture(html `<nile-split-panel primary="start"></nile-split-panel>`); expect(el.primary).to.equal('start'); });
    it('88. set primary end', async () => { const el = await fixture(html `<nile-split-panel primary="end"></nile-split-panel>`); expect(el.primary).to.equal('end'); });
    it('89. snap threshold defaults 12', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.snapThreshold).to.equal(12); });
    it('90. no h1', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('h1')).to.be.null; });
    it('91. no p', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('p')).to.be.null; });
    it('92. no hr', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('hr')).to.be.null; });
    it('93. no pre', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('pre')).to.be.null; });
    it('94. no code', async () => { const el = await fixture(html `<nile-split-panel></nile-split-panel>`); expect(el.shadowRoot.querySelector('code')).to.be.null; });
    it('95. title attr', async () => { const el = await fixture(html `<nile-split-panel title="SP"></nile-split-panel>`); expect(el.title).to.equal('SP'); });
    it('96. contains', async () => { const el = await fixture(html `<nile-split-panel><div slot="start" id="s1">Start</div></nile-split-panel>`); expect(el.contains(el.querySelector('#s1'))).to.be.true; });
    it('97. slotted start', async () => { const el = await fixture(html `<nile-split-panel><div slot="start">Start</div></nile-split-panel>`); expect(el.querySelector('[slot="start"]')).to.exist; });
    it('98. slotted end', async () => { const el = await fixture(html `<nile-split-panel><div slot="end">End</div></nile-split-panel>`); expect(el.querySelector('[slot="end"]')).to.exist; });
    it('99. set snap', async () => { const el = await fixture(html `<nile-split-panel snap="50%"></nile-split-panel>`); expect(el.snap).to.equal('50%'); });
    it('100. full integration', async () => { const el = await fixture(html `<nile-split-panel position="40" vertical class="sp" id="sp1"><div slot="start">S</div><div slot="end">E</div></nile-split-panel>`); expect(el.position).to.equal(40); expect(el.vertical).to.be.true; expect(el.id).to.equal('sp1'); expect(el.shadowRoot.querySelector('.divider')).to.exist; });
});
//# sourceMappingURL=nile-split-panel.test.js.map