Index: test/browser/elemHideEmulation.js |
=================================================================== |
--- a/test/browser/elemHideEmulation.js |
+++ b/test/browser/elemHideEmulation.js |
@@ -148,23 +148,16 @@ |
} |
// Create a new ElemHideEmulation instance with @selectors. |
function applyElemHideEmulation(selectors) |
{ |
return Promise.resolve().then(() => |
{ |
let elemHideEmulation = new ElemHideEmulation( |
- newSelectors => |
- { |
- if (!newSelectors.length) |
- return; |
- let selector = newSelectors.join(", "); |
- insertStyleRule(selector + "{display: none !important;}"); |
- }, |
elems => |
{ |
for (let elem of elems) |
elem.style.display = "none"; |
} |
); |
elemHideEmulation.document = testDocument; |