-
Notifications
You must be signed in to change notification settings - Fork 529
8297166: [TestBug] Fix some ignored unit test from TableViewTest #952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
andy-goryachev-oracle
wants to merge
1
commit into
openjdk:master
from
andy-goryachev-oracle:8297166.table.view
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,8 +303,8 @@ public void cleanup() { | |
assertEquals("Pineapple", sm.getSelectedItem()); | ||
} | ||
|
||
@Ignore("Not fixed yet") | ||
@Test public void ensureSelectionShiftsDownWhenOneNewItemIsAdded() { | ||
@Test | ||
public void ensureSelectionShiftsDownWhenOneNewItemIsAdded() { | ||
table.getItems().addAll("Apple", "Orange", "Banana"); | ||
sm.select(1); | ||
assertEquals(1, sm.getSelectedIndex()); | ||
|
@@ -315,8 +315,8 @@ public void cleanup() { | |
assertEquals("Orange", sm.getSelectedItem()); | ||
} | ||
|
||
@Ignore("Not fixed yet") | ||
@Test public void ensureSelectionShiftsDownWhenMultipleNewItemAreAdded() { | ||
@Test | ||
public void ensureSelectionShiftsDownWhenMultipleNewItemAreAdded() { | ||
table.getItems().addAll("Apple", "Orange", "Banana"); | ||
sm.select(1); | ||
assertEquals(1, sm.getSelectedIndex()); | ||
|
@@ -327,8 +327,8 @@ public void cleanup() { | |
assertEquals(4, sm.getSelectedIndex()); | ||
} | ||
|
||
@Ignore("Not fixed yet") | ||
@Test public void ensureSelectionShiftsDownWhenOneItemIsRemoved() { | ||
@Test | ||
public void ensureSelectionShiftsDownWhenOneItemIsRemoved() { | ||
table.getItems().addAll("Apple", "Orange", "Banana"); | ||
sm.select(1); | ||
assertEquals(1, sm.getSelectedIndex()); | ||
|
@@ -339,8 +339,8 @@ public void cleanup() { | |
assertEquals("Orange", sm.getSelectedItem()); | ||
} | ||
|
||
@Ignore("Not fixed yet") | ||
@Test public void ensureSelectionShiftsDownWheMultipleItemsAreRemoved() { | ||
@Test | ||
public void ensureSelectionShiftsDownWheMultipleItemsAreRemoved() { | ||
table.getItems().addAll("Apple", "Orange", "Banana"); | ||
sm.select(2); | ||
assertEquals(2, sm.getSelectedIndex()); | ||
|
@@ -437,8 +437,8 @@ class Person { | |
assertEquals(0, table.getVisibleLeafColumns().size()); | ||
} | ||
|
||
@Test public void testSortOrderCleanup() { | ||
// ObservableList<ObservablePerson> persons = ObservablePerson.createFXPersonList(); | ||
@Test | ||
public void testSortOrderCleanup() { | ||
TableView table = new TableView(); | ||
TableColumn<String,String> first = new TableColumn<String,String>("first"); | ||
first.setCellValueFactory(new PropertyValueFactory("firstName")); | ||
|
@@ -728,8 +728,8 @@ private TableColumn<String, String> initSortTestStructure() { | |
VirtualFlowTestUtils.assertListContainsItemsInOrder(c.getColumns(), col); | ||
} | ||
|
||
@Ignore | ||
@Test public void testComparatorChangesInSyncWithSortOrder_2() { | ||
@Test | ||
public void testComparatorChangesInSyncWithSortOrder_2() { | ||
// same as test above | ||
TableColumn<String, String> col = initSortTestStructure(); | ||
assertNull(table.getComparator()); | ||
|
@@ -865,8 +865,12 @@ private TableColumn<String, String> initSortTestStructure() { | |
assertEquals(-1, tv.getSelectionModel().getSelectedIndex()); | ||
} | ||
|
||
@Ignore("Started failing recently, but manual tests seem to indicate the functionality is intact") | ||
@Test public void test_rt17522_focusShouldMoveWhenItemAddedAtFocusIndex() { | ||
/** | ||
* JDK-8119787 | ||
* @ Ignore("Started failing recently, but manual tests seem to indicate the functionality is intact") | ||
*/ | ||
@Test | ||
public void test_rt17522_focusShouldMoveWhenItemAddedAtFocusIndex() { | ||
final TableView lv = new TableView(); | ||
StageLoader sl = new StageLoader(lv); | ||
FocusModel fm = lv.getFocusModel(); | ||
|
@@ -2047,8 +2051,12 @@ public TableCell<Person, String> call(TableColumn<Person, String> p) { | |
sl.dispose(); | ||
} | ||
|
||
// @Ignore("Test started intermittently failing, most probably due to RT-36855 changeset") | ||
@Test public void test_rt_34493() { | ||
/** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can remove this comment. If needed, we can get this information from looking at file revision history. |
||
* JDK-8093986 | ||
* @ Ignore("Test started intermittently failing, most probably due to RT-36855/JDK-8096512 changeset") | ||
*/ | ||
@Test | ||
public void noAutoresizeOnColumnRemoval() { | ||
TableView<Person> table = new TableView<>(); | ||
table.setItems(FXCollections.observableArrayList( | ||
new Person("John", "Smith", "jacob.smith@example.com") | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.