Index: test/browser/elemHideEmulation.js |
=================================================================== |
--- a/test/browser/elemHideEmulation.js |
+++ b/test/browser/elemHideEmulation.js |
@@ -256,21 +256,23 @@ exports.testDynamicallyChangedProperty = |
applyElemHideEmulation( |
[":-abp-properties(background-color: rgb(0, 0, 0))"] |
).then(() => |
{ |
expectVisible(test, toHide); |
insertStyleRule("#" + toHide.id + " {background-color: #000}"); |
return new Promise((resolve, reject) => |
{ |
+ // Re-evaluation will only happen after a few seconds |
+ expectVisible(test, toHide); |
window.setTimeout(() => |
{ |
expectHidden(test, toHide); |
resolve(); |
- }, 0); |
+ }, 4000); |
}); |
}).catch(unexpectedError.bind(test)).then(() => test.done()); |
}; |
exports.testPseudoClassHasSelector = function(test) |
{ |
let toHide = createElementWithStyle("{}"); |
applyElemHideEmulation( |