Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 137300 Details for
Bug 276675
[Table] TopIndex is not correctly updated after disposal of items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Test case
Bug-276675-testcase.patch (text/plain), 1.32 KB, created by
Ivan Furnadjiev
on 2009-05-27 06:27:49 EDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Ivan Furnadjiev
Created:
2009-05-27 06:27:49 EDT
Size:
1.32 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt.test >Index: src/org/eclipse/swt/widgets/Table_Test.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.test/src/org/eclipse/swt/widgets/Table_Test.java,v >retrieving revision 1.47 >diff -u -r1.47 Table_Test.java >--- src/org/eclipse/swt/widgets/Table_Test.java 5 May 2009 09:29:16 -0000 1.47 >+++ src/org/eclipse/swt/widgets/Table_Test.java 27 May 2009 10:27:09 -0000 >@@ -252,6 +252,23 @@ > assertEquals( 0, table.getTopIndex() ); > } > >+ public void testTopIndex_2() { >+ Display display = new Display(); >+ Shell shell = new Shell( display , SWT.NONE ); >+ Table table = new Table( shell, SWT.MULTI ); >+ table.setSize( 485, 485 ); >+ for( int i = 0; i < 115; i++ ) { >+ new TableItem( table, SWT.NONE ); >+ } >+ table.setTopIndex( 0 ); >+ int[] indices = { >+ 114, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, >+ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, >+ 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 0 }; >+ table.setSelection( indices ); >+ assertEquals( 0, table.getTopIndex() ); >+ } >+ > public void testDispose() { > Display display = new Display(); > Shell shell = new Shell( display );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 276675
:
137300
|
137311
|
137348