Permalink
Browse files

adding another failing test

add a failing test.
TODO: split tests
  • Loading branch information...
1 parent b6d6523 commit b5b63dbbbb5ee1363ec53775d0734b2c30643ba6 Cristian Carlesso committed Aug 20, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 Specs/1.4client/Element/Element.js
@@ -22,17 +22,19 @@ describe('Element', function(){
expect($$('input[id=Q1]').length).toEqual(0);
expect($$('input#Q1').length).toEqual(0);
+ expect($$('input[id=Q1]').length).toEqual(0); //<- element.erase will fail on this :(
clone.dispose();
var ul = new Element('ul',{id:'test'});
- ul.set('html', '<li id="li1"></li><li id="li2"></li>'));
+ 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);
+ expect($$('li#li1').length).toEqual(0);
+ ulc.destroy();
});

0 comments on commit b5b63db

Please sign in to comment.