modules/controls/src/test/java/javafx/scene/control/TableViewKeyInputTest.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization

@@ -23,11 +23,10 @@
  * questions.
  */
 
 package javafx.scene.control;
 
-import com.sun.javafx.scene.control.behavior.ListCellBehavior;
 import com.sun.javafx.scene.control.behavior.TableCellBehavior;
 import javafx.beans.property.ReadOnlyStringWrapper;
 import javafx.collections.FXCollections;
 import javafx.collections.ListChangeListener;
 import javafx.collections.ObservableList;

@@ -2571,11 +2570,11 @@
         assertEquals(2, fm.getFocusedIndex());
         assertEquals(1, sm.getSelectedIndex());
 
         keyboard.doKeyPress(KeyCode.SPACE);
         Toolkit.getToolkit().firePulse();
-        assertEquals(2, getAnchor().getRow());
+        assertEquals(debug(), 2, getAnchor().getRow());
         assertEquals(2, fm.getFocusedIndex());
         assertEquals(2, sm.getSelectedIndex());
         assertTrue(isSelected(1, 2));
     }