diff options
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index 0b22b2ae..34e1710b 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -274,9 +274,13 @@ function sortedHtml(element, showNgClass) { return html; } + +/** + * This method is a cheap way of testing if css for a given node is not set to 'none'. It doesn't + * actually test if an element is displayed by the browser. Be aware!!! + */ function isCssVisible(node) { var display = node.css('display'); - if (display == 'block') display = ""; return display != 'none'; } |
