aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2011-08-03 10:14:14 (EDT)
committerOleg Besedin2011-08-03 10:14:14 (EDT)
commit3cada61d6d530c03ead871da73ede2b6b443b316 (patch)
treef0837aa9df7a54cbd88b35c231c6562ae877c461
parent5124978a6a83a94d276b0c2389e2d4ac40db7d13 (diff)
downloadeclipse.platform.ui-3cada61d6d530c03ead871da73ede2b6b443b316.zip
eclipse.platform.ui-3cada61d6d530c03ead871da73ede2b6b443b316.tar.gz
eclipse.platform.ui-3cada61d6d530c03ead871da73ede2b6b443b316.tar.bz2
Bug 353366 - Tests failures for empty label width (testSaveAs,v20110803-1414v20110803-1100
testExportResources, etc.)
-rw-r--r--tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/DialogCheck.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/DialogCheck.java b/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/DialogCheck.java
index 3ce5d7c..7ba1341 100644
--- a/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/DialogCheck.java
+++ b/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/DialogCheck.java
@@ -173,7 +173,7 @@ public class DialogCheck {
String widget = label.toString();
Point size = label.getSize();
String labelText = label.getText();
- if (labelText.isEmpty())
+ if (labelText == null || labelText.length() == 0)
return;
//compute the size with no line wrapping
Point preferred = label.computeSize(SWT.DEFAULT, SWT.DEFAULT);