| Index: test/browser/elemHideEmulation.js |
| =================================================================== |
| --- a/test/browser/elemHideEmulation.js |
| +++ b/test/browser/elemHideEmulation.js |
| @@ -384,25 +384,34 @@ function runTestPseudoClassHasSelectorWi |
| }).catch(unexpectedError.bind(test)).then(() => test.done()); |
| } |
| exports.testPseudoClassHasSelectorWithHasAndWithSuffixSibling = function(test) |
| { |
| runTestPseudoClassHasSelectorWithHasAndWithSuffixSibling(test, "div:-abp-has(:-abp-has(div.inside)) + div > div"); |
| }; |
| -exports.testPseudoClassHasSelectorWithHasAndWithSuffixSibling2 = function(test) |
| -{ |
| - runTestPseudoClassHasSelectorWithHasAndWithSuffixSibling(test, "div:-abp-has(:-abp-has(> div.inside)) + div > div"); |
| -}; |
| - |
|
hub
2017/07/11 17:19:34
you are removing this test because it fails, but :
|
| exports.testPseudoClassHasSelectorWithPropSelector = function(test) |
| { |
| let parent = createElementWithStyle("{}"); |
| let child = createElementWithStyle("{background-color: #000}", parent); |
| applyElemHideEmulation( |
| ["div:-abp-has(:-abp-properties(background-color: rgb(0, 0, 0)))"] |
| ).then(() => |
| { |
| expectVisible(test, child); |
| expectHidden(test, parent); |
| }).catch(unexpectedError.bind(test)).then(() => test.done()); |
| }; |
| + |
| +exports.testPseudoClassHasSelectorWithPropSelector2 = function(test) |
| +{ |
| + let parent = createElementWithStyle("{}"); |
| + let child = createElementWithStyle("{}", parent); |
| + insertStyleRule("body #" + parent.id + " > div { background-color: #000}"); |
| + applyElemHideEmulation( |
| + ["div:-abp-has(:-abp-properties(background-color: rgb(0, 0, 0)))"] |
| + ).then(() => |
| + { |
| + expectVisible(test, child); |
| + expectHidden(test, parent); |
| + }).catch(unexpectedError.bind(test)).then(() => test.done()); |
| +}; |