"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/e2e/tests/anchor-scroll.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.

anchor-scroll.spec.js  (angular.js-1.7.9):anchor-scroll.spec.js  (angular.js-1.8.0)
skipping to change at line 126 skipping to change at line 126
expect(lastAnchorId).toHaveTop(yOffset); expect(lastAnchorId).toHaveTop(yOffset);
}); });
}); });
}); });
it('should not scroll "overzealously"', function() { it('should not scroll "overzealously"', function() {
var lastButton = buttons.last(); var lastButton = buttons.last();
var lastAnchor = anchors.last(); var lastAnchor = anchors.last();
var lastAnchorId = 'anchor-5'; var lastAnchorId = 'anchor-5';
if (browser.params.browser === 'firefox') return;
// Make sure there is not enough room to scroll the last anchor to the top // Make sure there is not enough room to scroll the last anchor to the top
lastAnchor.getSize().then(function(size) { lastAnchor.getSize().then(function(size) {
var tempHeight = size.height + (yOffset / 2); var tempHeight = size.height + (yOffset / 2);
execWithTempViewportHeight(tempHeight, function() { execWithTempViewportHeight(tempHeight, function() {
scrollIntoView(lastAnchorId); scrollIntoView(lastAnchorId);
expect(lastAnchorId).toHaveTop(yOffset / 2); expect(lastAnchorId).toHaveTop(yOffset / 2);
lastButton.click(); lastButton.click();
expect(lastAnchorId).toBeInViewport(); expect(lastAnchorId).toBeInViewport();
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

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