Index: test/browser/elemHideEmulation.js |
=================================================================== |
--- a/test/browser/elemHideEmulation.js |
+++ b/test/browser/elemHideEmulation.js |
@@ -104,31 +104,32 @@ |
} |
// Create a new ElemHideEmulation instance with @selectors. |
function applyElemHideEmulation(selectors) |
{ |
return Promise.resolve().then(() => |
{ |
let elemHideEmulation = new ElemHideEmulation( |
+ testDocument, |
+ null, |
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; |
elemHideEmulation.MIN_INVOCATION_INTERVAL = REFRESH_INTERVAL / 2; |
elemHideEmulation.apply(selectors.map(selector => ({selector}))); |
return elemHideEmulation; |
}); |
} |
exports.testVerbatimPropertySelector = function(test) |
{ |