michael@0: /* vim: set ft=javascript ts=2 et sw=2 tw=80: */ michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: "use strict"; michael@0: michael@0: // Test that inherited properties are treated correctly. michael@0: michael@0: let test = asyncTest(function*() { michael@0: yield addTab("data:text/html,selector text test, bug 692400"); michael@0: michael@0: content.document.body.innerHTML = '
Inner div
'; michael@0: content.document.title = "Style Inspector Inheritance Test"; michael@0: michael@0: let cssLogic = new CssLogic(); michael@0: cssLogic.highlight(content.document.getElementById("innerdiv")); michael@0: michael@0: let marginProp = cssLogic.getPropertyInfo("margin-left"); michael@0: is(marginProp.matchedRuleCount, 0, "margin-left should not be included in matched selectors."); michael@0: michael@0: let fontSizeProp = cssLogic.getPropertyInfo("font-size"); michael@0: is(fontSizeProp.matchedRuleCount, 1, "font-size should be included in matched selectors."); michael@0: });