Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2011-02-17 23:34:01 +0000
committerPawel Piech2011-02-17 23:34:01 +0000
commitff93e1ff431ec06321bce8f1e612dd925b2af009 (patch)
treef68c8cd839ec396bf2a784cd603fd326f800dd3f /org.eclipse.debug.tests
parentbdecb6c6781f64cbf9b9c28e5616da0247b04a7e (diff)
downloadeclipse.platform.debug-ff93e1ff431ec06321bce8f1e612dd925b2af009.tar.gz
eclipse.platform.debug-ff93e1ff431ec06321bce8f1e612dd925b2af009.tar.xz
eclipse.platform.debug-ff93e1ff431ec06321bce8f1e612dd925b2af009.zip
Bug 325465 - Virtual viewer tests timeout when viewer is hidden
Changed the shell setup from setMaximize() to setSize(800,600)
Diffstat (limited to 'org.eclipse.debug.tests')
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/CheckTests.java4
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/ContentTests.java4
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/DeltaTests.java6
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/JFaceViewerTopIndexTests.java2
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/LazyTests.java4
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/PerformanceTests.java4
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/PopupTests.java4
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/SelectionTests.java4
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/UpdateTests.java4
9 files changed, 27 insertions, 9 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/CheckTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/CheckTests.java
index 72f22f761..4f5d6e81f 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/CheckTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/CheckTests.java
@@ -48,7 +48,9 @@ abstract public class CheckTests extends TestCase {
protected void setUp() throws Exception {
fDisplay = PlatformUI.getWorkbench().getDisplay();
fShell = new Shell(fDisplay, SWT.ON_TOP | SWT.SHELL_TRIM);
- fShell.setMaximized(true);
+ // Maximizing a shell with SWT.ON_TOP doesn't work on Linux (bug 325465)
+ //fShell.setMaximized(true);
+ fShell.setSize(800, 600);
fShell.setLayout(new FillLayout());
fViewer = createViewer(fDisplay, fShell);
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/ContentTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/ContentTests.java
index d90050095..0b01d1b15 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/ContentTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/ContentTests.java
@@ -56,7 +56,9 @@ abstract public class ContentTests extends TestCase implements ITestModelUpdates
protected void setUp() throws Exception {
fDisplay = PlatformUI.getWorkbench().getDisplay();
fShell = new Shell(fDisplay, SWT.ON_TOP | SWT.SHELL_TRIM);
- fShell.setMaximized(true);
+ // Maximizing a shell with SWT.ON_TOP doesn't work on Linux (bug 325465)
+ //fShell.setMaximized(true);
+ fShell.setSize(800, 600);
fShell.setLayout(new FillLayout());
fViewer = createViewer(fDisplay, fShell);
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/DeltaTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/DeltaTests.java
index 69d07246f..eebea2913 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/DeltaTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/DeltaTests.java
@@ -51,7 +51,11 @@ abstract public class DeltaTests extends TestCase implements ITestModelUpdatesLi
protected void setUp() throws Exception {
fDisplay = PlatformUI.getWorkbench().getDisplay();
fShell = new Shell(fDisplay, SWT.ON_TOP | SWT.SHELL_TRIM);
- fShell.setMaximized(true);
+
+ // Maximizing a shell with SWT.ON_TOP doesn't work on Linux (bug 325465)
+ //fShell.setMaximized(true);
+ fShell.setSize(800, 600);
+
fShell.setLayout(new FillLayout());
fViewer = createViewer(fDisplay, fShell);
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/JFaceViewerTopIndexTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/JFaceViewerTopIndexTests.java
index 8f887c23e..6f407214c 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/JFaceViewerTopIndexTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/JFaceViewerTopIndexTests.java
@@ -49,7 +49,7 @@ public class JFaceViewerTopIndexTests extends TestCase implements ITestModelUpda
*/
protected void setUp() throws Exception {
fDisplay = PlatformUI.getWorkbench().getDisplay();
- fShell = new Shell(fDisplay/*, SWT.ON_TOP | SWT.SHELL_TRIM*/);
+ fShell = new Shell(fDisplay, SWT.ON_TOP | SWT.SHELL_TRIM);
fShell.setSize(300, 100);
fShell.setLayout(new FillLayout());
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/LazyTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/LazyTests.java
index 27bfc1231..198b4c1d1 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/LazyTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/LazyTests.java
@@ -50,7 +50,9 @@ abstract public class LazyTests extends TestCase implements ITestModelUpdatesLis
protected void setUp() throws Exception {
fDisplay = PlatformUI.getWorkbench().getDisplay();
fShell = new Shell(fDisplay, SWT.ON_TOP | SWT.SHELL_TRIM);
- fShell.setMaximized(true);
+ // Maximizing a shell with SWT.ON_TOP doesn't work on Linux (bug 325465)
+ //fShell.setMaximized(true);
+ fShell.setSize(800, 600);
fShell.setLayout(new FillLayout());
fViewer = createViewer(fDisplay, fShell);
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/PerformanceTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/PerformanceTests.java
index 82dc8d8ea..404f80243 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/PerformanceTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/PerformanceTests.java
@@ -46,7 +46,9 @@ abstract public class PerformanceTests extends TestCase implements ITestModelUpd
protected void setUp() throws Exception {
fDisplay = PlatformUI.getWorkbench().getDisplay();
fShell = new Shell(fDisplay, SWT.ON_TOP | SWT.SHELL_TRIM);
- fShell.setMaximized(true);
+ // Maximizing a shell with SWT.ON_TOP doesn't work on Linux (bug 325465)
+ //fShell.setMaximized(true);
+ fShell.setSize(800, 600);
fShell.setLayout(new FillLayout());
fViewer = createViewer(fDisplay, fShell);
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/PopupTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/PopupTests.java
index 531a8a6d1..09ac030e9 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/PopupTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/PopupTests.java
@@ -55,7 +55,9 @@ abstract public class PopupTests extends TestCase implements ITestModelUpdatesLi
protected void setUp() throws Exception {
fDisplay = PlatformUI.getWorkbench().getDisplay();
fShell = new Shell(fDisplay, SWT.ON_TOP | SWT.SHELL_TRIM);
- fShell.setMaximized(true);
+ // Maximizing a shell with SWT.ON_TOP doesn't work on Linux (bug 325465)
+ //fShell.setMaximized(true);
+ fShell.setSize(800, 600);
fShell.setLayout(new FillLayout());
fViewer = createViewer(fDisplay, fShell, SWT.POP_UP);
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/SelectionTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/SelectionTests.java
index 52e17e77e..09284206b 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/SelectionTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/SelectionTests.java
@@ -50,7 +50,9 @@ abstract public class SelectionTests extends TestCase implements ITestModelUpdat
protected void setUp() throws Exception {
fDisplay = PlatformUI.getWorkbench().getDisplay();
fShell = new Shell(fDisplay, SWT.ON_TOP | SWT.SHELL_TRIM);
- fShell.setMaximized(true);
+ // Maximizing a shell with SWT.ON_TOP doesn't work on Linux (bug 325465)
+ //fShell.setMaximized(true);
+ fShell.setSize(800, 600);
fShell.setLayout(new FillLayout());
fViewer = createViewer(fDisplay, fShell);
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/UpdateTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/UpdateTests.java
index 76984b496..ffdf3a7ce 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/UpdateTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/UpdateTests.java
@@ -46,7 +46,9 @@ abstract public class UpdateTests extends TestCase implements ITestModelUpdatesL
protected void setUp() throws Exception {
fDisplay = PlatformUI.getWorkbench().getDisplay();
fShell = new Shell(fDisplay, SWT.ON_TOP | SWT.SHELL_TRIM);
- fShell.setMaximized(true);
+ // Maximizing a shell with SWT.ON_TOP doesn't work on Linux (bug 325465)
+ //fShell.setMaximized(true);
+ fShell.setSize(800, 600);
fShell.setLayout(new FillLayout());
fViewer = createViewer(fDisplay, fShell);

Back to the top