From f54db2ccda399f2677e4ca7588018cb31545a2b4 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 8 Mar 2012 15:00:38 -0800 Subject: chore(directives,widgets): reorg the code under directive/ dir --- test/directive/styleSpec.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/directive/styleSpec.js (limited to 'test/directive/styleSpec.js') diff --git a/test/directive/styleSpec.js b/test/directive/styleSpec.js new file mode 100644 index 00000000..bdc4ea85 --- /dev/null +++ b/test/directive/styleSpec.js @@ -0,0 +1,31 @@ +'use strict'; + +describe('style', function() { + var element; + + + afterEach(function() { + dealoc(element); + }); + + + it('should not compile style element', inject(function($compile, $rootScope) { + element = jqLite(''); + $compile(element)($rootScope); + $rootScope.$digest(); + + // read innerHTML and trim to pass on IE8 + expect(trim(element[0].innerHTML)).toBe('should {{notBound}}'); + })); + + + it('should compile content of element with style attr', inject(function($compile, $rootScope) { + element = jqLite('