html2canvas/tests/qunit/unit/utils.js
Niklas von Hertzen c018166563 exclude children
2012-03-04 20:17:01 +02:00

19 lines
377 B
JavaScript

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