Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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