Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add a little more test

more test added
  • Loading branch information...
commit b6d6523bd5c72c0401ffc157b537beebb40792a6 1 parent 24fdab0
authored August 19, 2012

Showing 1 changed file with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. 11  Specs/1.4client/Element/Element.js
11  Specs/1.4client/Element/Element.js
@@ -23,6 +23,17 @@ describe('Element', function(){
23 23
 			expect($$('input[id=Q1]').length).toEqual(0);
24 24
 			expect($$('input#Q1').length).toEqual(0);
25 25
 			clone.dispose();
  26
+
  27
+			var ul = new Element('ul',{id:'test'});
  28
+			ul.set('html', '<li id="li1"></li><li id="li2"></li>'));
  29
+			ul.inject(document.documentElement);
  30
+
  31
+			var ulc = ul.clone();
  32
+			ulc.replaces(ul);
  33
+
  34
+			expect($$('li#li1').length).toEqual(1);
  35
+
  36
+
26 37
 		});
27 38
 
28 39
 		it('should get the attrubte of a form when the form has an input with as ID the attribute name', function(){

0 notes on commit b6d6523

Please sign in to comment.
Something went wrong with that request. Please try again.