google / windowtester

Automatically exported from code.google.com/p/windowtester
Other
18 stars 23 forks source link

Patch - Fix TreeItemLocator.isSelected(IUIContext ui) #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This patch fixes the isSelected(IUIContext ui) method in TreeItemLocator. It 
now actually checks for the selected state instead of the checked state. It 
works in the same way as the isSelected(IUIContext ui) method in 
TableItemLocator. Therefore isSelected(Tree tree, TreeItem item) was added to 
abbot.tester.swt.TreeTester.

This also fixes the 
com.windowtester.test.locator.swt.TreeItemLocatorTest.testTreeItemSelection() 
test added in https://code.google.com/p/windowtester/issues/detail?id=3#c1

Original issue reported on code.google.com by fred.g...@googlemail.com on 4 May 2012 at 4:23

Attachments:

GoogleCodeExporter commented 9 years ago
Committed patch

Original comment by keertip@google.com on 29 May 2012 at 4:32