| Index: test/browser/elemHideEmulation.js | 
| =================================================================== | 
| --- a/test/browser/elemHideEmulation.js | 
| +++ b/test/browser/elemHideEmulation.js | 
| @@ -50,26 +50,30 @@ | 
| } | 
| function unexpectedError(error) | 
| { | 
| console.error(error); | 
| this.ok(false, "Unexpected error: " + error); | 
| } | 
| -function expectHidden(test, element) | 
| +function expectHidden(test, element, id) | 
| { | 
| - test.equal(window.getComputedStyle(element).display, "none", | 
| - "The element's display property should be set to 'none'"); | 
| + let elementId = id ? `: ${id}` : ""; | 
| + test.equal( | 
| + window.getComputedStyle(element).display, "none", | 
| + `The element's display property should be set to 'none' ${elementId}`); | 
| 
 
kzar
2018/03/19 16:55:20
Please can you improve the message, like "The elem
 
hub
2018/03/20 14:40:26
Done.
 
 | 
| } | 
| -function expectVisible(test, element) | 
| +function expectVisible(test, element, id) | 
| { | 
| - test.notEqual(window.getComputedStyle(element).display, "none", | 
| - "The element's display property should not be set to 'none'"); | 
| + let elementId = id ? `: ${id}` : ""; | 
| + test.notEqual( | 
| + window.getComputedStyle(element).display, "none", | 
| + `The element's display property should not be set to 'none' ${elementId}`); | 
| } | 
| function findUniqueId() | 
| { | 
| let id = "elemHideEmulationTest-" + Math.floor(Math.random() * 10000); | 
| if (!testDocument.getElementById(id)) | 
| return id; | 
| return findUniqueId(); | 
| @@ -355,19 +359,19 @@ | 
| function compareExpectations(test, elems, expectations) | 
| { | 
| for (let elem in expectations) | 
| { | 
| if (elems[elem]) | 
| { | 
| if (expectations[elem]) | 
| - expectVisible(test, elems[elem]); | 
| + expectVisible(test, elems[elem], elem); | 
| else | 
| - expectHidden(test, elems[elem]); | 
| + expectHidden(test, elems[elem], elem); | 
| } | 
| } | 
| } | 
| function runTestPseudoClassHasSelectorWithHasAndWithSuffixSibling(test, selector, expectations) | 
| { | 
| testDocument.body.innerHTML = `<div id="parent"> | 
| <div id="middle"> |