Commit f99c7121 authored by Robert Knight's avatar Robert Knight

Remove obsolete test

The `disableShadowSidebar` flag and the corresponding behavior no longer
exists.
parent 4f2c69df
...@@ -496,7 +496,7 @@ describe('Sidebar', () => { ...@@ -496,7 +496,7 @@ describe('Sidebar', () => {
}); });
describe('destruction', () => { describe('destruction', () => {
it('the (shadow DOMed) sidebar is destroyed and the frame is detached', () => { it('the sidebar is destroyed and the frame is detached', () => {
const sidebar = createSidebar(); const sidebar = createSidebar();
const sidebarContainer = containers[0]; const sidebarContainer = containers[0];
sidebar.destroy(); sidebar.destroy();
...@@ -504,15 +504,6 @@ describe('Sidebar', () => { ...@@ -504,15 +504,6 @@ describe('Sidebar', () => {
assert.notExists(sidebarContainer.querySelector('hypothesis-sidebar')); assert.notExists(sidebarContainer.querySelector('hypothesis-sidebar'));
assert.equal(sidebar.iframeContainer.parentElement, null); assert.equal(sidebar.iframeContainer.parentElement, null);
}); });
it('the (non-shadow DOMed) sidebar is destroyed and the frame is detached', () => {
const sidebar = createSidebar({ disableShadowSidebar: true });
const sidebarContainer = containers[0];
sidebar.destroy();
assert.called(fakeCrossFrame.destroy);
assert.notExists(sidebarContainer.querySelector('.annotator-frame'));
assert.equal(sidebar.iframeContainer.parentElement, null);
});
}); });
describe('#show', () => { describe('#show', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment