diff options
Diffstat (limited to 'test/helpers/testabilityPatch.js')
| -rw-r--r-- | test/helpers/testabilityPatch.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/helpers/testabilityPatch.js b/test/helpers/testabilityPatch.js index 514a5fdb..41b5042a 100644 --- a/test/helpers/testabilityPatch.js +++ b/test/helpers/testabilityPatch.js @@ -226,6 +226,17 @@ function sortedHtml(element, showNgClass) { } +function childrenTagsOf(element) { + var tags = []; + + forEach(jqLite(element).children(), function(child) { + tags.push(child.nodeName.toLowerCase()); + }); + + return tags; +} + + // TODO(vojta): migrate these helpers into jasmine matchers /**a * This method is a cheap way of testing if css for a given node is not set to 'none'. It doesn't |
