Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes appendHTML specs in firefox, using .get('text') instead of inne…

…rText
  • Loading branch information...
commit 205df1b2fc3c19d6240aadcf63358fe6e9377a29 1 parent d2a662d
@arian arian authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 Specs/1.4client/Element/Element.appendHTML.js
View
16 Specs/1.4client/Element/Element.appendHTML.js
@@ -42,7 +42,7 @@ describe('Element.appendHTML', function(){
expect(children.length).toBe(2);
children.each(function(child, i){
- expect(child.innerText).toBe('HI!');
+ expect(child.get('text')).toBe('HI!');
expect(child.nextSibling.getAttribute('rel')).toBe('' + i);
});
});
@@ -55,7 +55,7 @@ describe('Element.appendHTML', function(){
expect(children.length).toBe(2);
children.each(function(child, i){
- expect(child.innerText).toBe('HI!');
+ expect(child.get('text')).toBe('HI!');
expect(child.previousSibling.getAttribute('rel')).toBe('' + i);
});
});
@@ -68,9 +68,9 @@ describe('Element.appendHTML', function(){
expect(children.length).toBe(2);
expect(children.each(function(child, i){
- expect(child.innerText).toBe('HI!');
+ expect(child.get('text')).toBe('HI!');
expect(child.parentNode.getAttribute('rel')).toBe('' + i);
- expect(child.parentNode.innerText).toBe('contentHI!');
+ expect(child.parentNode.get('text')).toBe('contentHI!');
}));
});
@@ -82,9 +82,9 @@ describe('Element.appendHTML', function(){
expect(children.length).toBe(2);
children.each(function(child, i){
- expect(child.innerText).toBe('HI!');
+ expect(child.get('text')).toBe('HI!');
expect(child.parentNode.getAttribute('rel')).toBe('' + i);
- expect(child.parentNode.innerText).toBe('HI!content');
+ expect(child.parentNode.get('text')).toBe('HI!content');
});
});
@@ -96,9 +96,9 @@ describe('Element.appendHTML', function(){
expect(children.length).toBe(2);
children.each(function(child, i){
- expect(child.innerText).toBe('HI!');
+ expect(child.get('text')).toBe('HI!');
expect(child.parentNode.getAttribute('rel')).toBe('' + i);
- expect(child.parentNode.innerText).toBe('contentHI!');
+ expect(child.parentNode.get('text')).toBe('contentHI!');
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.