Skip to content

Commit

Permalink
exclude children
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh committed Mar 4, 2012
1 parent 89d749e commit c018166
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/qunit/unit/utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

$(function() {


var el = $('#qunit-fixture');


test('Children()', 1, function() {
var arr = [],
cont = el.contents();
$.each(cont, function(i,e){
arr.push(e);
});
// text nodes differ
QUnit.equal( _html2canvas.Util.Children(el[0]), arr, "Util.Children === jQuery.children()" );
});

});

0 comments on commit c018166

Please sign in to comment.