d406a15e8c
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
10 lines
272 B
JavaScript
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!');
|
|
});
|
|
});
|