Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2016-01-29 07:21:34 -0500
committerGerrit Code Review @ Eclipse.org2016-02-10 04:02:19 -0500
commit78a666232e4dbafbccdd9bc84baea9c2fb8e0f7a (patch)
treed95ba5b66d4d5c19ea535940fe72ea0307e9b0ef
parent6a3c6afcf95adae4a9a3899180d1ef9a0d2ccb90 (diff)
downloadorg.eclipse.rap-78a666232e4dbafbccdd9bc84baea9c2fb8e0f7a.tar.gz
org.eclipse.rap-78a666232e4dbafbccdd9bc84baea9c2fb8e0f7a.tar.xz
org.eclipse.rap-78a666232e4dbafbccdd9bc84baea9c2fb8e0f7a.zip
Add additional test for tabIndex rendering
tabIndex should not be rendered for not focusable controls. Change-Id: I13f820ef08efb5df48eccaab1c54e3b7feacfa57
-rw-r--r--tests/org.eclipse.rap.rwt.test/src/org/eclipse/rap/rwt/internal/lifecycle/ControlLCAUtil_Test.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rap/rwt/internal/lifecycle/ControlLCAUtil_Test.java b/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rap/rwt/internal/lifecycle/ControlLCAUtil_Test.java
index 57e7eb85b8..3f9abe6c90 100644
--- a/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rap/rwt/internal/lifecycle/ControlLCAUtil_Test.java
+++ b/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rap/rwt/internal/lifecycle/ControlLCAUtil_Test.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2002, 2015 Innoopract Informationssysteme GmbH and others.
+ * Copyright (c) 2002, 2016 Innoopract Informationssysteme GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -52,6 +52,7 @@ import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.internal.graphics.ImageFactory;
import org.eclipse.swt.internal.widgets.shellkit.ShellOperationHandler;
import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
@@ -230,6 +231,16 @@ public class ControlLCAUtil_Test {
}
@Test
+ public void testRenderTabIndex_nonFocusableControl() {
+ control = new Composite( shell, SWT.NO_FOCUS );
+
+ ControlLCAUtil.renderChanges( shell );
+ ControlLCAUtil.renderChanges( control );
+
+ assertNull( getProtocolMessage().findSetOperation( control, "tabIndex" ) );
+ }
+
+ @Test
public void testRenderTabIndex_changed() {
Fixture.markInitialized( control );
Fixture.clearPreserved();

Back to the top