Browse files

add a little more test

more test added
  • Loading branch information...
1 parent 24fdab0 commit b6d6523bd5c72c0401ffc157b537beebb40792a6 Cristian Carlesso committed Aug 19, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 Specs/1.4client/Element/Element.js
View
11 Specs/1.4client/Element/Element.js
@@ -23,6 +23,17 @@ describe('Element', function(){
expect($$('input[id=Q1]').length).toEqual(0);
expect($$('input#Q1').length).toEqual(0);
clone.dispose();
+
+ var ul = new Element('ul',{id:'test'});
+ ul.set('html', '<li id="li1"></li><li id="li2"></li>'));
+ ul.inject(document.documentElement);
+
+ var ulc = ul.clone();
+ ulc.replaces(ul);
+
+ expect($$('li#li1').length).toEqual(1);
+
+
});
it('should get the attrubte of a form when the form has an input with as ID the attribute name', function(){

0 comments on commit b6d6523

Please sign in to comment.