diff options
| author | Vojta Jina | 2013-08-20 17:19:29 -0700 |
|---|---|---|
| committer | Vojta Jina | 2013-08-23 12:43:42 -0700 |
| commit | 040aa11ceb510d8f8ec8349a3ca99d9db874daf0 (patch) | |
| tree | 1413f64b652fa5aa5a183c9947f1eba706f09f1d /docs/component-spec/annotationsSpec.js | |
| parent | b89a4e49b922894f93d5cc69e00016f157dee625 (diff) | |
| download | angular.js-040aa11ceb510d8f8ec8349a3ca99d9db874daf0.tar.bz2 | |
test(docs): ignore some of the specs on IE
This target was never un on our Jenkins CI. Some of the specs are using animation stuff, that IE does not support, so I'm disabling them.
Diffstat (limited to 'docs/component-spec/annotationsSpec.js')
| -rw-r--r-- | docs/component-spec/annotationsSpec.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/component-spec/annotationsSpec.js b/docs/component-spec/annotationsSpec.js index 6dcde906..d84bd5bd 100644 --- a/docs/component-spec/annotationsSpec.js +++ b/docs/component-spec/annotationsSpec.js @@ -8,6 +8,10 @@ describe('Docs Annotations', function() { body.html(''); }); + var normalizeHtml = function(html) { + return html.toLowerCase().replace(/\s*$/, ''); + }; + describe('popover directive', function() { var $scope, element; @@ -57,7 +61,7 @@ describe('Docs Annotations', function() { $scope.$apply(); element.triggerHandler('click'); expect(popoverElement.title()).toBe('#title_text'); - expect(popoverElement.content()).toBe('<h1>heading</h1>\n'); + expect(normalizeHtml(popoverElement.content())).toMatch('<h1>heading</h1>'); })); }); @@ -65,6 +69,9 @@ describe('Docs Annotations', function() { describe('foldout directive', function() { + // Do not run this suite on Internet Explorer. + if (msie < 10) return; + var $scope, parent, element, url; beforeEach(function() { module(function($provide, $animateProvider) { |
