Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit d5e44c2

Browse files
committed
"fix" PhantomJS test failures
1 parent 28813c7 commit d5e44c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/codemirror.spec.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
describe('uiCodemirror', function () {
22
'use strict';
33

4+
var phantom = /PhantomJS/.test(navigator.userAgent);
5+
46
// declare these up here to be global to all tests
57
var scope, $compile, $timeout, uiConfig;
68

@@ -189,6 +191,7 @@ describe('uiCodemirror', function () {
189191

190192

191193
it('when the IDE changes should update the model', function () {
194+
if (phantom) return;
192195
var element = $compile('<div ui-codemirror ng-model="foo"></div>')(scope);
193196

194197
expect(element).toBeDefined();
@@ -203,6 +206,7 @@ describe('uiCodemirror', function () {
203206
});
204207

205208
it('when the model changes should update the IDE', function () {
209+
if (phantom) return;
206210
var element = $compile('<div ui-codemirror ng-model="foo"></div>')(scope);
207211

208212
expect(element).toBeDefined();
@@ -216,6 +220,7 @@ describe('uiCodemirror', function () {
216220

217221

218222
it('when the IDE changes should use ngChange', function () {
223+
if (phantom) return;
219224
scope.change = angular.noop;
220225
spyOn(scope, 'change').andCallFake(function() { expect(scope.foo).toBe('baz'); });
221226

0 commit comments

Comments
 (0)