[Test] public void IncrementalSearchUp() { JetListViewNode node = _nodeCollection.Add("Test"); JetListViewNode node2 = _nodeCollection.Add("Trest"); JetListViewNode node3 = _nodeCollection.Add("Rest"); _selectionModel.SelectAndFocusNode(node3); JetListViewColumn col = new JetListViewColumn(); _columnCollection.Add(col); _incSearcher.IncrementalSearch("T"); Assert.IsTrue(_selectionModel.IsNodeSelected(node)); }
[Test] public void ScrollOnFocusLost() // OM-7869 { JetListViewNode node = _nodeCollection.Add("Item"); JetListViewNode node2 = _nodeCollection.Add("Item2"); _rowListRenderer.VisibleHeight = 10; _selectionModel.SelectAndFocusNode(node2); _rowListRenderer.ScrollOffset = 0; _rowListRenderer.RequestVerticalScroll += new RequestScrollEventHandler(_rowListRenderer_OnRequestScroll); _selectionModel.Clear(); Assert.AreEqual(-1, _lastRequestScroll); }