mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
exclude children
This commit is contained in:
parent
89d749e30a
commit
c018166563
18
tests/qunit/unit/utils.js
Normal file
18
tests/qunit/unit/utils.js
Normal 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()" );
|
||||
});
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user