aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2011-11-18 12:19:32 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2011-11-18 17:08:40 +0100
commit66f9e12797c16d8fa9078f45401f08f0f200e1bc (patch)
tree5a52c50785e9cef79005d05e995e4257d02ad034 /tests
parente6f55967abdbd7ff6a0717237ab684391a150efc (diff)
downloadjquery-ui-66f9e12797c16d8fa9078f45401f08f0f200e1bc.tar.gz
jquery-ui-66f9e12797c16d8fa9078f45401f08f0f200e1bc.zip
Widget: Remove method argument from _super and _superApply. Was a left-over from first implementation, not necessary anymore.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/widget/widget_core.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js
index 0510da4b4..edf1ae0fc 100644
--- a/tests/unit/widget/widget_core.js
+++ b/tests/unit/widget/widget_core.js
@@ -346,7 +346,7 @@ test( "._super()", function() {
same( this, instance, "this is correct in testWidget2" );
same( a, 5, "parameter passed to testWidget2" );
same( b, 10, "parameter passed to testWidget2" );
- return this._super( "method", a, b*2 );
+ return this._super( a, b*2 );
}
});
@@ -354,7 +354,7 @@ test( "._super()", function() {
method: function( a ) {
same( this, instance, "this is correct in testWidget3" );
same( a, 5, "parameter passed to testWidget3" );
- var ret = this._super( "method", a, a*2 );
+ var ret = this._super( a, a*2 );
same( ret, 25, "super returned value" );
}
});
@@ -382,7 +382,7 @@ test( "._superApply()", function() {
same( this, instance, "this is correct in testWidget2" );
same( a, 5, "parameter passed to testWidget2" );
same( b, 10, "second parameter passed to testWidget2" );
- return this._superApply( "method", arguments );
+ return this._superApply( arguments );
}
});
@@ -391,7 +391,7 @@ test( "._superApply()", function() {
same( this, instance, "this is correct in testWidget3" );
same( a, 5, "parameter passed to testWidget3" );
same( b, 10, "second parameter passed to testWidget3" );
- var ret = this._superApply( "method", arguments );
+ var ret = this._superApply( arguments );
same( ret, 15, "super returned value" );
}
});
@@ -1031,7 +1031,7 @@ test( "redefine", function() {
$.widget( "ui.testWidget", $.ui.testWidget, {
method: function( str ) {
equal( str, "foo", "new invoked with correct parameter" );
- this._super( "method", "bar" );
+ this._super();
}
});