Albireo Test Cases
Contents
Focus Management Test Cases
These are listed in detail here.
Size Propagation from AWT to SWT
How to Reproduce:
In class SwingControl, disable the part of updateCachedAWTSizes that starts with
if (mustNotify) ...
. Then run the RelayoutExampleView.
Problem:
- On Win32, some parts of the RelayoutExampleView don't display themselves at all.
- On Gtk and Carbon, the size of the controls in RelayoutExampleView vary in a discontinuous way depending on the width. See the two KDE-style screenshots in http://dev.eclipse.org/mhonarc/lists/albireo-dev/msg00143.html
Albireo fix:
Propagate the sizes from AWT to SWT.
Size Propagation from SWT to AWT
How to Reproduce:
In class SwingControl, disable the contents of the handleSetBounds method. Then run the RelayoutExampleView.
Problem:
- On Win32, layouts are not done correctly; see the Windows-XP style screenshot in http://dev.eclipse.org/mhonarc/lists/albireo-dev/msg00143.html
- On Gtk and Carbon, this change has no effect. The reason is that validate() is called nevertheless, due to an event being executed in the AWT event thread. This event is of type COMPONENT_RESIZED and comes from the Frame.
Albireo fix:
Propagate the sizes from SWT to AWT.
Size Management with Border
This is 91896 SWT_AWT: Incorrect layout of AWT frame when SWT.BORDER style is set on the Composite
How to Reproduce:
- Open the "Parameters" view (using the "Show View" menu). Check the border radiobutton.
- Open the Grid Layout view or the Screen Coordinates view.
Problem:
The border width is not taken into account at the right and bottom sides.
Albireo fix:
Use an intermediate Composite without borders.
Notes:
Scrolling of Text Fields
In some cases, JTextField instances are not scrolled horizontally. As a result, the caret is not visible.
How to Reproduce:
- Open the "Text Fields" view (using the "Show View" menu). The fourth text field should be scrolled to the end, whereas the third text field should be scrolled to the start.
- Click into the first text field. Click Tab 3 times. The caret should be visible.
Or:
- Open the "Focus Traversal View" (using the "Show View" menu).
- Click into the first text field. Click Tab once. The caret should be visible, at the end of the first text field.
Problem:
Sometimes the horizontal scrolling is not done. When the text field has focus, the caret is invisible.
Albireo fix:
The text fields are scrolled correctly upon the first resize.
Notes: