Skip to content

Commit c018166

Browse files
committed
exclude children
1 parent 89d749e commit c018166

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/qunit/unit/utils.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
$(function() {
3+
4+
5+
var el = $('#qunit-fixture');
6+
7+
8+
test('Children()', 1, function() {
9+
var arr = [],
10+
cont = el.contents();
11+
$.each(cont, function(i,e){
12+
arr.push(e);
13+
});
14+
// text nodes differ
15+
QUnit.equal( _html2canvas.Util.Children(el[0]), arr, "Util.Children === jQuery.children()" );
16+
});
17+
18+
});

0 commit comments

Comments
 (0)