Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Albireo Test Cases"

m (Size Propagation from SWT to AWT)
m (comments)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<!-- TODO: Topics not yet covered:
 +
    Synchronized look&feel
 +
    Modal dialogs
 +
    Focus handling
 +
    Keystroke contention
 +
    SWT pop-up menus
 +
    Cursor
 +
    Tooltips
 +
    Drag&Drop
 +
-->
 +
 
=== Focus Management Test Cases ===
 
=== Focus Management Test Cases ===
  
Line 13: Line 24:
  
 
* On Win32, some parts of the RelayoutExampleView don't display themselves at all.
 
* 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.
+
* 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
See http://dev.eclipse.org/mhonarc/lists/albireo-dev/msg00143.html
+
  
 
'''Albireo fix''':
 
'''Albireo fix''':
Line 51: Line 61:
  
 
Use an intermediate Composite without borders.
 
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''':
 
'''Notes''':

Latest revision as of 13:20, 24 April 2008


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:

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:

  1. Open the "Parameters" view (using the "Show View" menu). Check the border radiobutton.
  2. 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:

  1. 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.
  2. Click into the first text field. Click Tab 3 times. The caret should be visible.

Or:

  1. Open the "Focus Traversal View" (using the "Show View" menu).
  2. 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:

Back to the top