Files
angular.js/test/e2e/tests/loaderSpec.js
T
Georgios Kalpakas d406a15e8c fix(modules): allow modules to be loaded in any order when using angular-loader
Some modules used to assume that the angular helpers would always be available when their script was
executed. This could be a problem when using `angular-loader` and the module file happened to get
loaded before the core `angular.js` file.
This commit fixes the issue by delaying the access to angular helpers, until they are guaranteed to
be available.

Affected modules:
- `ngAnimate`
- `ngMessageFormat`
- `ngMessages`
- `ngRoute`
- `ngSanitize`

Fixes #9140

Closes #14794
2016-06-17 23:56:14 +03:00

10 lines
272 B
JavaScript

describe('loader', function() {
beforeEach(function() {
loadFixture("loader").andWaitForAngular();
});
it('should not be broken by loading the modules before core', function() {
expect(element(by.binding('text')).getText()).toBe('Hello, world!');
});
});