Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/browser/elemHideEmulation.js

Issue 29485567: Issue 5395 - Make sure element hiding emulation doesn't degrade website performance too much (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Added JSDoc comment Created July 11, 2017, 8:17 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/content/elemHideEmulation.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chrome/content/elemHideEmulation.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld