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(); |
Wladimir Palant
2017/03/08 10:31:50
I'm undecided between simplifying the unit test (r
hub
2017/03/08 13:34:21
My take was to avoid logic changes to fix the test
Felix Dahlke
2017/03/08 20:35:49
No strong opinion, but I think we should simplify
hub
2017/03/08 20:39:48
I can make that part of bug #3143 since there will
Felix Dahlke
2017/03/08 21:44:56
Fine by me.
|
} |
exports.testVerbatimPropertySelector = function(test) |
{ |
var toHide = createElementWithStyle("{background-color: #000}"); |
applyElemHideEmulation( |
["[-abp-properties='background-color: rgb(0, 0, 0)']"], |
function() |