17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene.control;
27
28 import static org.junit.Assert.assertEquals;
29 import static org.junit.Assert.assertFalse;
30 import static org.junit.Assert.assertNull;
31 import static org.junit.Assert.assertTrue;
32
33 import java.util.List;
34
35 import com.sun.javafx.scene.control.infrastructure.MouseEventFirer;
36 import com.sun.javafx.tk.Toolkit;
37 import javafx.beans.value.ChangeListener;
38 import javafx.beans.value.ObservableValue;
39 import javafx.collections.ListChangeListener;
40 import javafx.scene.Group;
41 import javafx.scene.Scene;
42 import javafx.scene.input.KeyCode;
43 import javafx.scene.layout.VBox;
44 import javafx.stage.Stage;
45
46 import org.junit.After;
47 import org.junit.Before;
48 import org.junit.Ignore;
49 import org.junit.Test;
50
51 import com.sun.javafx.scene.control.behavior.TreeViewAnchorRetriever;
52 import com.sun.javafx.scene.control.infrastructure.KeyEventFirer;
53 import com.sun.javafx.scene.control.infrastructure.KeyModifier;
54 import com.sun.javafx.scene.control.infrastructure.StageLoader;
55 import com.sun.javafx.scene.control.infrastructure.VirtualFlowTestUtils;
56 import com.sun.javafx.scene.control.skin.TreeViewSkin;
57
58 //@Ignore("Disabling tests as they fail with OOM in continuous builds")
59 public class TreeViewMouseInputTest {
60 private TreeView<String> treeView;
61 private MultipleSelectionModel<TreeItem<String>> sm;
62 private FocusModel<TreeItem<String>> fm;
63
64 private TreeItem<String> root; // 0
65 private TreeItem<String> child1; // 1
66 private TreeItem<String> child2; // 2
67 private TreeItem<String> child3; // 3
68 private TreeItem<String> subchild1; // 4
69 private TreeItem<String> subchild2; // 5
70 private TreeItem<String> subchild3; // 6
71 private TreeItem<String> child4; // 7
72 private TreeItem<String> child5; // 8
73 private TreeItem<String> child6; // 9
74 private TreeItem<String> child7; // 10
75 private TreeItem<String> child8; // 11
76 private TreeItem<String> child9; // 12
|
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene.control;
27
28 import static org.junit.Assert.assertEquals;
29 import static org.junit.Assert.assertFalse;
30 import static org.junit.Assert.assertNull;
31 import static org.junit.Assert.assertTrue;
32
33 import java.util.List;
34
35 import com.sun.javafx.scene.control.infrastructure.MouseEventFirer;
36 import com.sun.javafx.tk.Toolkit;
37 import javafx.collections.ListChangeListener;
38 import javafx.scene.Scene;
39 import javafx.scene.layout.VBox;
40
41 import org.junit.After;
42 import org.junit.Before;
43 import org.junit.Test;
44
45 import com.sun.javafx.scene.control.behavior.TreeViewAnchorRetriever;
46 import com.sun.javafx.scene.control.infrastructure.KeyModifier;
47 import com.sun.javafx.scene.control.infrastructure.StageLoader;
48 import com.sun.javafx.scene.control.infrastructure.VirtualFlowTestUtils;
49
50 //@Ignore("Disabling tests as they fail with OOM in continuous builds")
51 public class TreeViewMouseInputTest {
52 private TreeView<String> treeView;
53 private MultipleSelectionModel<TreeItem<String>> sm;
54 private FocusModel<TreeItem<String>> fm;
55
56 private TreeItem<String> root; // 0
57 private TreeItem<String> child1; // 1
58 private TreeItem<String> child2; // 2
59 private TreeItem<String> child3; // 3
60 private TreeItem<String> subchild1; // 4
61 private TreeItem<String> subchild2; // 5
62 private TreeItem<String> subchild3; // 6
63 private TreeItem<String> child4; // 7
64 private TreeItem<String> child5; // 8
65 private TreeItem<String> child6; // 9
66 private TreeItem<String> child7; // 10
67 private TreeItem<String> child8; // 11
68 private TreeItem<String> child9; // 12
|