| Index: test/browser/elemHideEmulation.js | 
| =================================================================== | 
| --- a/test/browser/elemHideEmulation.js | 
| +++ b/test/browser/elemHideEmulation.js | 
| @@ -14,17 +14,17 @@ | 
| * You should have received a copy of the GNU General Public License | 
| * along with Adblock Plus.  If not, see <http://www.gnu.org/licenses/>. | 
| */ | 
|  | 
| "use strict"; | 
|  | 
| const {ElemHideEmulation, setTestMode, | 
| getTestInfo} = require("../../lib/content/elemHideEmulation"); | 
| -const {timeout} = require("./_utils"); | 
| +const {timeout, expectHidden, expectVisible} = require("./_utils"); | 
|  | 
| const REFRESH_INTERVAL = 200; | 
|  | 
| let testDocument = null; | 
|  | 
| exports.setUp = function(callback) | 
| { | 
| setTestMode(); | 
| @@ -46,38 +46,16 @@ | 
| }; | 
|  | 
| function unexpectedError(test, error) | 
| { | 
| console.error(error); | 
| test.ok(false, "Unexpected error: " + error); | 
| } | 
|  | 
| -function expectHidden(test, element, id) | 
| -{ | 
| -  let withId = ""; | 
| -  if (typeof id != "undefined") | 
| -    withId = ` with ID '${id}'`; | 
| - | 
| -  test.equal( | 
| -    window.getComputedStyle(element).display, "none", | 
| -    `The element${withId}'s display property should be set to 'none'`); | 
| -} | 
| - | 
| -function expectVisible(test, element, id) | 
| -{ | 
| -  let withId = ""; | 
| -  if (typeof id != "undefined") | 
| -    withId = ` with ID '${id}'`; | 
| - | 
| -  test.notEqual( | 
| -    window.getComputedStyle(element).display, "none", | 
| -    `The element${withId}'s display property should not be set to 'none'`); | 
| -} | 
| - | 
| function expectProcessed(test, element, id = null) | 
| { | 
| let withId = ""; | 
| if (id) | 
| withId = ` with ID '${id}'`; | 
|  | 
| test.ok( | 
| getTestInfo().lastProcessedElements.has(element), | 
|  |