< prev index next >
modules/javafx.controls/src/test/java/test/javafx/scene/control/TabPaneTest.java
Print this page
*** 440,449 ****
--- 440,465 ----
@Test public void setTabClosingPolicyAndSeeValue() {
tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE);
assertSame(tabPane.getTabClosingPolicy(), TabPane.TabClosingPolicy.UNAVAILABLE);
}
+ @Test public void setTabDragPolicyAndSeeValueIsReflectedInModel() {
+ tabPane.setTabDragPolicy(TabPane.TabDragPolicy.REORDER);
+ assertSame(tabPane.tabDragPolicyProperty().getValue(), TabPane.TabDragPolicy.REORDER);
+
+ tabPane.setTabDragPolicy(TabPane.TabDragPolicy.FIXED);
+ assertSame(tabPane.tabDragPolicyProperty().getValue(), TabPane.TabDragPolicy.FIXED);
+ }
+
+ @Test public void setTabDragPolicyAndSeeValue() {
+ tabPane.setTabDragPolicy(TabPane.TabDragPolicy.REORDER);
+ assertSame(tabPane.getTabDragPolicy(), TabPane.TabDragPolicy.REORDER);
+
+ tabPane.setTabDragPolicy(TabPane.TabDragPolicy.FIXED);
+ assertSame(tabPane.getTabDragPolicy(), TabPane.TabDragPolicy.FIXED);
+ }
+
@Test public void setRotateGraphicAndSeeValueIsReflectedInModel() {
tabPane.setRotateGraphic(true);
assertTrue(tabPane.rotateGraphicProperty().getValue());
}
< prev index next >