rem: self.assertEqual(sviewport.childNodes.length, 1); self.assertEqual(parseInt(sviewport.firstChild.style.height), (scroller.model.totalRowCount() * scroller._rowHeight)); self.assertEqual(sviewport.firstChild.className, "placeholder-scroll-row");  /* split the placeholder */ scroller._storeRows(1, 1, [{column: "1", __id__: "1"}]);  self.assertEqual(sviewport.childNodes.length, 3); self.assertEqual(sviewport.firstChild.className, "placeholder-scroll-row"); self.assertEqual(parseInt(sviewport.firstChild.style.height), scroller._rowHeight);  /* the second row should be the one we inserted, not a * placeholder */ self.assertEqual(sviewport.childNodes[1].className, "scroll-row");  self.assertEqual(sviewport.childNodes[2].className, "placeholder-scroll-row"); self.assertEqual(parseInt(sviewport.childNodes[2].style.height), ((scroller.model.totalRowCount() - 2) * scroller._rowHeight)); 
add: var viewport = self.scrollingWidget._scrollViewport; self.assertEqual(viewport.childNodes[0], firstRow.__node__); self.assertEqual(viewport.childNodes[1], movedRow.__node__); 
context:             function() {                var scroller = self.scrollingWidget;                var sviewport = scroller._scrollViewport;                scroller.empty();                scroller.padViewportWithPlaceholderRow(                    scroller.model.totalRowCount());                self.assertEqual(sviewport.childNodes.length, 1);                self.assertEqual(parseInt(sviewport.firstChild.style.height),                                 (scroller.model.totalRowCount()                                    * scroller._rowHeight));                self.assertEqual(sviewport.firstChild.className,                                 "placeholder-scroll-row");                /* split the placeholder */                scroller._storeRows(1, 1, [{column: "1", __id__: "1"}]);                self.assertEqual(sviewport.childNodes.length, 3);                self.assertEqual(sviewport.firstChild.className,                                 "placeholder-scroll-row");                self.assertEqual(parseInt(sviewport.firstChild.style.height),                                 scroller._rowHeight);                /* the second row should be the one we inserted, not a                 * placeholder */                self.assertEqual(sviewport.childNodes[1].className,                                 "scroll-row");                self.assertEqual(sviewport.childNodes[2].className,                                 "placeholder-scroll-row");                self.assertEqual(parseInt(sviewport.childNodes[2].style.height),                                 ((scroller.model.totalRowCount() - 2)                                    * scroller._rowHeight));            });
meta: 3455	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3455/35b7047ef87be917eb89e78d2b82951315da1909/Test.js/clean/xmantissa/js/Mantissa/Test.js