diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js index e50f6ae7..a212634a 100644 --- a/test/CompilerSpec.js +++ b/test/CompilerSpec.js @@ -98,11 +98,11 @@ describe('compiler', function(){ if (text == 'middle') { expect(textNode.text()).toEqual(text); parentNode.attr('hello', text); - textNode[0].textContent = 'replaced'; + textNode[0].nodeValue = 'replaced'; } }); var scope = compile('beforemiddleafter'); - expect(scope.$element[0].innerHTML).toEqual('beforereplacedafter'); + expect(lowercase(scope.$element[0].innerHTML)).toEqual('beforereplacedafter'); expect(log).toEqual("hello middle"); }); @@ -114,7 +114,7 @@ describe('compiler', function(){ }; }; var scope = compile('push me'); - expect(scope.$element[0].innerHTML).toEqual('
button
'); + expect(lowercase(scope.$element[0].innerHTML)).toEqual('
button
'); expect(log).toEqual('init'); });