Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 300478 - Failures in [Tree]TableRidgetTest: rounding errors
Summary: Failures in [Tree]TableRidgetTest: rounding errors
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: tests (show other bugs)
Version: 1.2.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 2.0.0.M5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-22 06:57 EST by Yang Meyer CLA
Modified: 2010-01-22 16:17 EST (History)
0 users

See Also:


Attachments
Fixes the test bugs. (5.69 KB, patch)
2010-01-22 06:58 EST, Yang Meyer CLA
elias: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yang Meyer CLA 2010-01-22 06:57:40 EST
Build Identifier: 

Auto-sizing columns using TableLayout can result in rounding errors, e.g. 3-column table with total width of 85 is split into columns of widths 29, 28, 28, respectively. The tests assert equal widths of (int) totalWidth / 3, i.e. 28. So it fails for the first column.

Reproducible: Always
Comment 1 Yang Meyer CLA 2010-01-22 06:58:20 EST
Created attachment 156918 [details]
Fixes the test bugs.
Comment 2 Christian Campo CLA 2010-01-22 09:13:37 EST
fixed in CVS Head