Skip to content

Commit 03d825d

Browse files
committed
effective height test
1 parent b0294a0 commit 03d825d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/BasicTestsSpec.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,4 +848,21 @@ describe('uiScroll', function () {
848848
});
849849
});
850850

851+
describe('effective height', function() {
852+
var scrollSettings = {
853+
datasource: 'myInfiniteDatasource',
854+
topVisible: 'topVisible',
855+
bufferSize: 3,
856+
viewportHeight: 315
857+
};
858+
859+
it('should break through negative value', function() {
860+
runTest(scrollSettings,
861+
function (viewport, scope) {
862+
expect(scope.topVisible).toBe('item1');
863+
}
864+
);
865+
});
866+
});
867+
851868
});

0 commit comments

Comments
 (0)