mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
19 lines
377 B
JavaScript
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()" );
|
||
|
});
|
||
|
|
||
|
});
|