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

Unified Diff: test/browser/elemHideEmulation.js

Issue 29378674: Issue 4962 - Fix the tests.- Fix syntax in chrome/content/elemHideEmulation.js to use ES5Regress… (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 7, 2017, 6:33 p.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
@@ -124,21 +124,18 @@ function applyElemHideEmulation(selector
{
if (!selectors.length)
return;
var selector = selectors.join(", ");
insertStyleRule(selector + "{display: none !important;}");
}
);
- elemHideEmulation.load(function()
- {
- elemHideEmulation.apply();
- callback();
- });
+ elemHideEmulation.apply();
+ callback();
}
exports.testVerbatimPropertySelector = function(test)
{
var toHide = createElementWithStyle("{background-color: #000}");
applyElemHideEmulation(
["[-abp-properties='background-color: rgb(0, 0, 0)']"],
function()
« 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