diff --git a/devtools/client/shared/components/test/mochitest/chrome.ini b/devtools/client/shared/components/test/mochitest/chrome.ini index bf4908c36171..ae6f5cecbbd1 100644 --- a/devtools/client/shared/components/test/mochitest/chrome.ini +++ b/devtools/client/shared/components/test/mochitest/chrome.ini @@ -7,8 +7,6 @@ support-files = [test_notification_box_01.html] [test_notification_box_02.html] [test_notification_box_03.html] -[test_searchbox.html] -[test_searchbox-with-autocomplete.html] [test_sidebar_toggle.html] [test_stack-trace.html] [test_tabs_accessibility.html] diff --git a/devtools/client/shared/components/test/mochitest/head.js b/devtools/client/shared/components/test/mochitest/head.js index 27c331fabd6c..de157aa7fd53 100644 --- a/devtools/client/shared/components/test/mochitest/head.js +++ b/devtools/client/shared/components/test/mochitest/head.js @@ -211,25 +211,3 @@ function shallowRenderComponent(component, props) { renderer.render(el, {}); return renderer.getRenderOutput(); } - -/** - * Creates a React Component for testing - * - * @param {string} factory - factory object of the component to be created - * @param {object} props - React props for the component - * @returns {object} - container Node, Object with React component - * and querySelector function with $ as name. - */ -async function createComponentTest(factory, props) { - const container = document.createElement("div"); - document.body.appendChild(container); - - const component = ReactDOM.render(factory(props), container); - await forceRender(component); - - return { - container, - component, - $: (s) => container.querySelector(s), - }; -} diff --git a/devtools/client/shared/components/test/mochitest/test_searchbox-with-autocomplete.html b/devtools/client/shared/components/test/mochitest/test_searchbox-with-autocomplete.html deleted file mode 100644 index 5a4e3a14d8ee..000000000000 --- a/devtools/client/shared/components/test/mochitest/test_searchbox-with-autocomplete.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - SearchBox component test - - - - - - - - - - diff --git a/devtools/client/shared/components/test/mochitest/test_searchbox.html b/devtools/client/shared/components/test/mochitest/test_searchbox.html deleted file mode 100644 index e9d56a44f05b..000000000000 --- a/devtools/client/shared/components/test/mochitest/test_searchbox.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - SearchBox component test - - - - - - - - - -