Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 300980 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/swt/widgets/Table_Test.java (+11 lines)
Lines 2369-2374 Link Here
2369
    assertEquals( 1, table.getItemCount() );
2369
    assertEquals( 1, table.getItemCount() );
2370
  }
2370
  }
2371
2371
2372
  public void testDisposedFont() {
2373
    Display display = new Display();
2374
    Shell shell = new Shell( display );
2375
    Table table = new Table( shell, SWT.NONE );
2376
    new TableColumn( table, SWT.LEAD );
2377
    Font font = new Font( display, "foo", 10, SWT.BOLD );
2378
    table.setFont( font );
2379
    font.dispose();
2380
    table.dispose();
2381
  }
2382
2372
  private static boolean find( final int element, final int[] array ) {
2383
  private static boolean find( final int element, final int[] array ) {
2373
    boolean result = false;
2384
    boolean result = false;
2374
    for( int i = 0; i < array.length; i++ ) {
2385
    for( int i = 0; i < array.length; i++ ) {

Return to bug 300980