aboutsummaryrefslogtreecommitdiffstats
path: root/test/jqLiteSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-02-13 16:13:21 -0800
committerMisko Hevery2011-02-16 08:59:57 -0500
commitc90abf057b0370cf5beb62aa960f1df008c802ef (patch)
tree039525ec1ee518175010693efd278fa105815285 /test/jqLiteSpec.js
parentcdc093a463e8f8a925cbb9f2b55bedf0a1d8e7e8 (diff)
downloadangular.js-c90abf057b0370cf5beb62aa960f1df008c802ef.tar.bz2
Changed the angular.compile(element)(scope[, cloneAttachNode])
Diffstat (limited to 'test/jqLiteSpec.js')
-rw-r--r--test/jqLiteSpec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js
index c5e92c0f..e42e9f14 100644
--- a/test/jqLiteSpec.js
+++ b/test/jqLiteSpec.js
@@ -300,6 +300,14 @@ describe('jqLite', function(){
expect(element.parent().length).toEqual(0);
});
});
+ describe('next', function(){
+ it('should return next sibling', function(){
+ var element = jqLite('<div><b>b</b><i>i</i></div>');
+ var b = element.find('b');
+ var i = element.find('i');
+ expect(b.next()).toJqEqual([i]);
+ });
+ });
describe('find', function(){
it('should find child by name', function(){
var root = jqLite('<div><div>text</div></div>');