diff options
author | Oleg Besedin | 2011-08-03 14:14:14 +0000 |
---|---|---|
committer | Oleg Besedin | 2011-08-03 14:14:14 +0000 |
commit | 3cada61d6d530c03ead871da73ede2b6b443b316 (patch) | |
tree | f0837aa9df7a54cbd88b35c231c6562ae877c461 | |
parent | 5124978a6a83a94d276b0c2389e2d4ac40db7d13 (diff) | |
download | eclipse.platform.ui-3cada61d6d530c03ead871da73ede2b6b443b316.tar.gz eclipse.platform.ui-3cada61d6d530c03ead871da73ede2b6b443b316.tar.xz eclipse.platform.ui-3cada61d6d530c03ead871da73ede2b6b443b316.zip |
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.java | 2 |
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 3ce5d7c164e..7ba1341ffc0 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); |