describe('private mocks', function() { describe('createMockStyleSheet', function() { it('should allow custom styles to be created and removed when the stylesheet is destroyed', inject(function($compile, $document, $window, $rootElement, $rootScope) { var doc = $document[0]; var count = doc.styleSheets.length; var stylesheet = createMockStyleSheet($document, $window); expect(doc.styleSheets.length).toBe(count + 1); jqLite(doc.body).append($rootElement); var elm = $compile('