Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2011-02-17 19:17:30 +0000
committerPawel Piech2011-02-17 19:17:30 +0000
commitbdecb6c6781f64cbf9b9c28e5616da0247b04a7e (patch)
tree830f98d185b7e90542084ff7d1c9497ca66844d0 /org.eclipse.debug.tests
parent8ec91b0fef61f057d3fb5bbac5534c4a712cae48 (diff)
downloadeclipse.platform.debug-bdecb6c6781f64cbf9b9c28e5616da0247b04a7e.tar.gz
eclipse.platform.debug-bdecb6c6781f64cbf9b9c28e5616da0247b04a7e.tar.xz
eclipse.platform.debug-bdecb6c6781f64cbf9b9c28e5616da0247b04a7e.zip
Bug 328297- need a way to initialize the width of columns, similar to initialzie the columns in IColumnPresentation
Made the test more reliable cross-platform.
Diffstat (limited to 'org.eclipse.debug.tests')
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/ColumnPresentationTests.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/ColumnPresentationTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/ColumnPresentationTests.java
index ab4967da0..bed7df1cf 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/ColumnPresentationTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/ColumnPresentationTests.java
@@ -251,7 +251,6 @@ public class ColumnPresentationTests extends TestCase implements ITestModelUpdat
TreeColumn[] columns = tree.getColumns();
int treeWidth = tree.getSize().x;
int avgWidth = treeWidth / columns.length;
- int remainder = treeWidth % columns.length;
// Resizing the tree invalidates the test.
if (fResized) {
@@ -261,7 +260,10 @@ public class ColumnPresentationTests extends TestCase implements ITestModelUpdat
for (int i = 0; i < columns.length - 1; i++) {
assertEquals(avgWidth, columns[i].getWidth());
}
- assertEquals(avgWidth + remainder, columns[columns.length - 1].getWidth());
+ // Checking of the width of the last column is not reliable.
+ // I.e. it's handled differenty on different platforms.
+ //int remainder = treeWidth % columns.length;
+ //assertEquals(avgWidth + remainder, columns[columns.length - 1].getWidth());
}
/**

Back to the top