rem: var sviewport = self.scrollingWidget._scrollViewport; self.scrollingWidget.whileIgnoringDOMEvents( function() { var scrollHeight = sviewport.scrollHeight; sviewport.scrollTop = 0; for(var i = 0; i < scrollHeight; i++) { sviewport.scrollTop++; self.assertEqual( self.scrollingWidget.browserOriginatedScrollCount, 0); } }, sviewport); }); 
add: var scroller = self.scrollingWidget;  self._prepareScrolltable(scroller);  /* make one row to split the placeholder */ scroller._storeRows(1, 1, [{column: "1", __id__: "1"}]);  /* put another row right after the last one */ scroller._storeRows(2, 2, [{column: "2", __id__: "2"}]);  /* number of placeholders shouldn't have changed, since we * didn't need to split any, just needed to adjust the height of * one */ self._checkPlaceholders([{start: 0, stop: 1}, {start: 3, stop: 100}]);  /* put another row two rows after the last one */ scroller._storeRows(4, 4, [{column: "4", __id__: "4"}]);  /* which should split the 3-100 placeholder */ self._checkPlaceholders([{start: 0, stop: 1}, {start: 3, stop: 4}, {start: 5, stop: 100}]); }); 
context:             function() {                var sviewport = self.scrollingWidget._scrollViewport;                self.scrollingWidget.whileIgnoringDOMEvents(                    function() {                        var scrollHeight = sviewport.scrollHeight;                        sviewport.scrollTop = 0;                        for(var i = 0; i < scrollHeight; i++) {                            sviewport.scrollTop++;                            self.assertEqual(                                self.scrollingWidget.browserOriginatedScrollCount, 0);                        }                    }, sviewport);            });
meta: 3455	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3455/35b7047ef87be917eb89e78d2b82951315da1909/Test.js/clean/xmantissa/js/Mantissa/Test.js