Example #1
0
        public override void Perform()
        {
            TreeViewTest.Focus();
            int count = TreeViewTest.Items.Count;

            if (count > 1)
            {
                ((TreeViewItem)TreeViewTest.Items[(ItemIndex % count)]).IsSelected = true;
            }
        }
Example #2
0
        public override void Perform()
        {
            int count = 0;

            TreeViewTest.Focus();
            count = TreeViewTest.Items.Count;
            if (count > 1)
            {
                ((TreeViewItem)TreeViewTest.Items[(ItemIndex % count)]).IsSelected = true;
                ((TreeViewItem)TreeViewTest.Items[(ItemIndex % count)]).ExpandSubtree();
            }
        }
 private void TestLargeTreesWithFixedItemHeightAndPingingAndFraming()
 {
     Rect rect = new Rect(0f, 0f, base.position.width / 2f, base.position.height);
     Rect rect4 = new Rect(base.position.width / 2f, 0f, base.position.width / 2f, base.position.height);
     if (this.m_TreeViewTest == null)
     {
         this.m_BackendData = new BackendData();
         this.m_BackendData.GenerateData(0xf4240);
         bool lazy = false;
         this.m_TreeViewTest = new TreeViewTest(this, lazy);
         this.m_TreeViewTest.Init(rect, this.m_BackendData);
         lazy = true;
         this.m_TreeViewTest2 = new TreeViewTest(this, lazy);
         this.m_TreeViewTest2.Init(rect4, this.m_BackendData);
     }
     this.m_TreeViewTest.OnGUI(rect);
     this.m_TreeViewTest2.OnGUI(rect4);
     EditorGUI.DrawRect(new Rect(rect.xMax - 1f, 0f, 2f, base.position.height), new Color(0.4f, 0.4f, 0.4f, 0.8f));
 }
Example #4
0
        public void Deny_Unrestricted()
        {
            TreeViewTest unit = new TreeViewTest();

            unit.Defaults();
        }
Example #5
0
 private void OnEnable()
 {
     state = new TreeViewState();
     view  = new TreeViewTest(state);
     view.Reload();
 }
Example #6
0
 public override void Perform()
 {
     TreeViewTest.Focus();
     HomelessTestHelpers.KeyPress(System.Windows.Input.Key.Multiply);
 }