Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIvan Furnadjiev2011-01-20 16:42:16 +0000
committerIvan Furnadjiev2011-01-20 16:42:16 +0000
commit53e14cdf3700bb85653fdb678d7a475730e9a8f2 (patch)
treeed9e68a7f98b9d597028d83948ab5cd5b26488bd /tests
parent1d2d4563ffd636c761c6b4722268f3d797ba20c3 (diff)
downloadorg.eclipse.rap-53e14cdf3700bb85653fdb678d7a475730e9a8f2.tar.gz
org.eclipse.rap-53e14cdf3700bb85653fdb678d7a475730e9a8f2.tar.xz
org.eclipse.rap-53e14cdf3700bb85653fdb678d7a475730e9a8f2.zip
Fixed - 333963: [Combo] Selection in drop-down list changes on hover
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333963
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/ComboTest.js16
-rw-r--r--tests/org.eclipse.rap.rwt.q07.jstest/js/org/eclipse/rwt/test/tests/ComboTest.js16
2 files changed, 26 insertions, 6 deletions
diff --git a/tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/ComboTest.js b/tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/ComboTest.js
index 2d46f09102..519aa16331 100644
--- a/tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/ComboTest.js
+++ b/tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/ComboTest.js
@@ -49,7 +49,7 @@ qx.Class.define( "org.eclipse.rwt.test.tests.ComboTest", {
testUtil.flush();
combo.select( 1 );
assertEquals( "Java", combo._field.getValue() );
- assertEquals( "Java", combo._list.getSelectedItems()[ 0 ].getLabel() )
+ assertEquals( "Java", combo._list.getSelectedItems()[ 0 ].getLabel() );
combo.destroy();
},
@@ -117,8 +117,7 @@ qx.Class.define( "org.eclipse.rwt.test.tests.ComboTest", {
assertTrue( combo._list.isSeeable() );
combo.destroy();
},
-
-
+
testOpenList : function() {
var testUtil = org.eclipse.rwt.test.fixture.TestUtil;
var combo = this._createDefaultCombo();
@@ -129,6 +128,17 @@ qx.Class.define( "org.eclipse.rwt.test.tests.ComboTest", {
assertEquals( correctHeight, combo._list.getHeight() );
},
+ testListSelection : function() {
+ var testUtil = org.eclipse.rwt.test.fixture.TestUtil;
+ var combo = this._createDefaultCombo();
+ combo.select( 1 );
+ combo._setListSelection( combo._list.getItems()[ 5 ] );
+ assertEquals( "Smalltalk", combo._list.getSelectedItems()[ 0 ].getLabel() );
+ combo.setListVisible( true );
+ assertEquals( "Java", combo._list.getSelectedItems()[ 0 ].getLabel() );
+ combo.destroy();
+ },
+
//////////
// Helpers
diff --git a/tests/org.eclipse.rap.rwt.q07.jstest/js/org/eclipse/rwt/test/tests/ComboTest.js b/tests/org.eclipse.rap.rwt.q07.jstest/js/org/eclipse/rwt/test/tests/ComboTest.js
index 2d46f09102..519aa16331 100644
--- a/tests/org.eclipse.rap.rwt.q07.jstest/js/org/eclipse/rwt/test/tests/ComboTest.js
+++ b/tests/org.eclipse.rap.rwt.q07.jstest/js/org/eclipse/rwt/test/tests/ComboTest.js
@@ -49,7 +49,7 @@ qx.Class.define( "org.eclipse.rwt.test.tests.ComboTest", {
testUtil.flush();
combo.select( 1 );
assertEquals( "Java", combo._field.getValue() );
- assertEquals( "Java", combo._list.getSelectedItems()[ 0 ].getLabel() )
+ assertEquals( "Java", combo._list.getSelectedItems()[ 0 ].getLabel() );
combo.destroy();
},
@@ -117,8 +117,7 @@ qx.Class.define( "org.eclipse.rwt.test.tests.ComboTest", {
assertTrue( combo._list.isSeeable() );
combo.destroy();
},
-
-
+
testOpenList : function() {
var testUtil = org.eclipse.rwt.test.fixture.TestUtil;
var combo = this._createDefaultCombo();
@@ -129,6 +128,17 @@ qx.Class.define( "org.eclipse.rwt.test.tests.ComboTest", {
assertEquals( correctHeight, combo._list.getHeight() );
},
+ testListSelection : function() {
+ var testUtil = org.eclipse.rwt.test.fixture.TestUtil;
+ var combo = this._createDefaultCombo();
+ combo.select( 1 );
+ combo._setListSelection( combo._list.getItems()[ 5 ] );
+ assertEquals( "Smalltalk", combo._list.getSelectedItems()[ 0 ].getLabel() );
+ combo.setListVisible( true );
+ assertEquals( "Java", combo._list.getSelectedItems()[ 0 ].getLabel() );
+ combo.destroy();
+ },
+
//////////
// Helpers

Back to the top