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.
This commit is contained in:
Vojta Jina
2013-08-20 17:19:29 -07:00
parent b89a4e49b9
commit 040aa11ceb
4 changed files with 15 additions and 1 deletions

View File

@@ -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) {

View File

@@ -1,3 +1,6 @@
// Copy/pasted from src/Angular.js, so that we can disable specific tests on IE.
var msie = parseInt((/msie (\d+)/.exec(navigator.userAgent.toLowerCase()) || [])[1], 10);
var createMockWindow = function() {
var mockWindow = {};
var setTimeoutQueue = [];

View File

@@ -1,5 +1,8 @@
describe('DocsApp', function() {
// Do not run this suite on Internet Explorer.
if (msie < 10) return;
beforeEach(module('docsApp'));
describe('DocsVersionsCtrl', function() {

View File

@@ -26,6 +26,7 @@ module.exports = function(config) {
'build/docs/js/docs.js',
'build/docs/docs-data.js',
'docs/component-spec/mocks.js',
'docs/component-spec/*.js'
],