aboutsummaryrefslogtreecommitdiffstats
path: root/test/jqLiteSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/jqLiteSpec.js')
-rw-r--r--test/jqLiteSpec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js
index 02a17df8..09be1c1c 100644
--- a/test/jqLiteSpec.js
+++ b/test/jqLiteSpec.js
@@ -1335,6 +1335,12 @@ describe('jqLite', function() {
expect(innerDiv.length).toEqual(1);
expect(innerDiv.html()).toEqual('text');
});
+
+ it('should find child by name and not care about text nodes', function() {
+ var divs = jqLite('<div><span>aa</span></div>text<div><span>bb</span></div>');
+ var innerSpan = divs.find('span');
+ expect(innerSpan.length).toEqual(2);
+ });
});