From c018166563f9e43ea494dab6cc3af618caebac48 Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Sun, 4 Mar 2012 20:17:01 +0200 Subject: [PATCH] exclude children --- tests/qunit/unit/utils.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/qunit/unit/utils.js diff --git a/tests/qunit/unit/utils.js b/tests/qunit/unit/utils.js new file mode 100644 index 000000000..53d73d706 --- /dev/null +++ b/tests/qunit/unit/utils.js @@ -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()" ); + }); + +});