Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTim Buschtöns2011-01-21 10:48:33 +0000
committerTim Buschtöns2011-01-21 10:48:33 +0000
commitd06c9a622e5ec5e81341d221de8b2d159d445913 (patch)
treef18f12b5caa473663a97a1fd0249a06a647cb526 /tests
parent7e240ad9760fd4eb84027142df2320f22d281016 (diff)
downloadorg.eclipse.rap-d06c9a622e5ec5e81341d221de8b2d159d445913.tar.gz
org.eclipse.rap-d06c9a622e5ec5e81341d221de8b2d159d445913.tar.xz
org.eclipse.rap-d06c9a622e5ec5e81341d221de8b2d159d445913.zip
Fix for Bug 334103 - [Tree] Sibling items are not visible after collapsing tree
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/ScrollBarTest.js10
-rw-r--r--tests/org.eclipse.rap.rwt.q07.jstest/js/org/eclipse/rwt/test/tests/ScrollBarTest.js10
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/ScrollBarTest.js b/tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/ScrollBarTest.js
index a2b72e7469..c39ff13f0c 100644
--- a/tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/ScrollBarTest.js
+++ b/tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/ScrollBarTest.js
@@ -68,6 +68,16 @@ qx.Class.define( "org.eclipse.rwt.test.tests.ScrollBarTest", {
assertEquals( 3, events.length );
bar.destroy();
},
+
+ testFireEventOnSetMaximum : function() {
+ var testUtil = org.eclipse.rwt.test.fixture.TestUtil;
+ var bar = this._createScrollBar();
+ var events = this._getChangeLogger( bar );
+ bar.setValue( 250 );
+ bar.setMaximum( 200 );
+ assertEquals( 2, events.length );
+ bar.destroy();
+ },
testSetInvalidValue : function() {
var testUtil = org.eclipse.rwt.test.fixture.TestUtil;
diff --git a/tests/org.eclipse.rap.rwt.q07.jstest/js/org/eclipse/rwt/test/tests/ScrollBarTest.js b/tests/org.eclipse.rap.rwt.q07.jstest/js/org/eclipse/rwt/test/tests/ScrollBarTest.js
index a2b72e7469..c39ff13f0c 100644
--- a/tests/org.eclipse.rap.rwt.q07.jstest/js/org/eclipse/rwt/test/tests/ScrollBarTest.js
+++ b/tests/org.eclipse.rap.rwt.q07.jstest/js/org/eclipse/rwt/test/tests/ScrollBarTest.js
@@ -68,6 +68,16 @@ qx.Class.define( "org.eclipse.rwt.test.tests.ScrollBarTest", {
assertEquals( 3, events.length );
bar.destroy();
},
+
+ testFireEventOnSetMaximum : function() {
+ var testUtil = org.eclipse.rwt.test.fixture.TestUtil;
+ var bar = this._createScrollBar();
+ var events = this._getChangeLogger( bar );
+ bar.setValue( 250 );
+ bar.setMaximum( 200 );
+ assertEquals( 2, events.length );
+ bar.destroy();
+ },
testSetInvalidValue : function() {
var testUtil = org.eclipse.rwt.test.fixture.TestUtil;

Back to the top