Skip to content

Commit b57c14f

Browse files
vursenclaude
andcommitted
move disconnected element test to detail-auto-size.test.js
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 94f99e8 commit b57c14f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

packages/master-detail-layout/test/detail-auto-size.js renamed to packages/master-detail-layout/test/detail-auto-size.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,10 @@ describe('detail auto size', () => {
4747
layout.detailSize = '300px';
4848
expect(spy).to.be.calledOnce;
4949
});
50+
51+
it('should not throw when called on a disconnected element', () => {
52+
layout.parentElement.removeChild(layout);
53+
expect(() => layout.recalculateLayout()).to.not.throw();
54+
});
5055
});
5156
});

packages/master-detail-layout/test/master-detail-layout.test.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,6 @@ describe('vaadin-master-detail-layout', () => {
128128
});
129129
});
130130

131-
describe('recalculateLayout', () => {
132-
it('should not throw when called on a disconnected element', () => {
133-
layout.parentElement.removeChild(layout);
134-
expect(() => layout.recalculateLayout()).to.not.throw();
135-
});
136-
});
137-
138131
describe('height', () => {
139132
it('should expand to full height of the parent', async () => {
140133
layout.masterSize = '200px';

0 commit comments

Comments
 (0)