"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/e2e/tests/ng-route-promise.spec.js" between
angular.js-1.7.9.tar.gz and angular.js-1.8.0.tar.gz

About: AngularJS is a web application framework that assists with creating single-page applications that only require HTML, CSS, and JavaScript on the client side.

ng-route-promise.spec.js  (angular.js-1.7.9):ng-route-promise.spec.js  (angular.js-1.8.0)
skipping to change at line 12 skipping to change at line 12
describe('ngRoute promises', function() { describe('ngRoute promises', function() {
beforeEach(function() { beforeEach(function() {
loadFixture('ng-route-promise'); loadFixture('ng-route-promise');
}); });
it('should wait for route promises', function() { it('should wait for route promises', function() {
expect(element.all(by.tagName('li')).count()).toBe(5); expect(element.all(by.tagName('li')).count()).toBe(5);
}); });
it('should time out if the promise takes long enough', function() { it('should time out if the promise takes long enough', function(done) {
// Don't try this at home kids, I'm a protractor dev // Don't try this at home kids, I'm a protractor dev
browser.manage().timeouts().setScriptTimeout(1000); browser.manage().timeouts().setScriptTimeout(1000);
browser.waitForAngular().then(function() { browser.waitForAngular().then(function() {
fail('waitForAngular() should have timed out, but didn\'t'); fail('waitForAngular() should have timed out, but didn\'t');
}, function(error) { }, done);
expect(error.message).toContain('Timed out waiting for asynchronous Angula
r tasks to finish');
});
}); });
it('should wait for route promises when navigating to another route', function () { it('should wait for route promises when navigating to another route', function () {
browser.setLocation('/foo2'); browser.setLocation('/foo2');
expect(element(by.tagName('body')).getText()).toBe('5'); expect(element(by.tagName('body')).getText()).toBe('5');
}); });
afterEach(function(done) { afterEach(function(done) {
// Restore old timeout limit // Restore old timeout limit
browser.getProcessedConfig().then(function(config) { browser.getProcessedConfig().then(function(config) {
 End of changes. 2 change blocks. 
5 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)