@@ -167,7 +167,7 @@ public void run() {
167167 }
168168
169169
170- public void xtestSelectionValue () {
170+ public void testSelectionValue () {
171171 Display display = new Display ();
172172 Shell shell = new Shell (display );
173173 shell .setLayout (new GridLayout ());
@@ -177,17 +177,18 @@ public void xtestSelectionValue() {
177177 final Scale scaleS = new Scale (shell , SWT .SMOOTH );
178178 shell .pack ();
179179 shell .open ();
180+ AsyncSWT .setShellAutoClose (false );
180181 AsyncSWT .waitLayout (shell , new AsyncTestRunnable (this ) {
181182 public void run () {
182183 scaleD .setSelection (20 );
183184 scaleB .setSelection (120 );
184185 scaleV .setSelection (-20 );
185186 scaleS .setSelection (100 );
186187
187- assertEquals (scaleD .getSelection (), 20 );
188- assertEquals (scaleB .getSelection (), 100 );
189- assertEquals (scaleV .getSelection (), 0 );
190- assertEquals (scaleS .getSelection (), 100 );
188+ assertEquals ("Default" , scaleD .getSelection (), 20 );
189+ assertEquals ("Border" , scaleB .getSelection (), 100 );
190+ assertEquals ("Vertical" , scaleV .getSelection (), 0 );
191+ assertEquals ("Smooth" , scaleS .getSelection (), 100 );
191192 }
192193 });
193194 display .dispose ();
@@ -280,7 +281,7 @@ public void run() {
280281 * @param args
281282 */
282283 public static void main (String [] args ) {
283- AsyncSWT .setShellAutoClose (false );
284+ // AsyncSWT.setShellAutoClose(false);
284285 AsyncTestRunner .asyncRun (ScaleTest .class );
285286 }
286287}
0 commit comments