exclude children

This commit is contained in:
Niklas von Hertzen 2012-03-04 20:17:01 +02:00
parent 89d749e30a
commit c018166563

18
tests/qunit/unit/utils.js Normal file
View File

@ -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()" );
});
});