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