aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-05-13 14:58:39 -0400
committerScott González <scott.gonzalez@gmail.com>2015-05-13 14:58:39 -0400
commitf9ad17d575c2e26555bb00b6f7c6e72d0f8c427e (patch)
tree71ef4985e2515d2a3c318a31f191fa940e0722b7
parent1ee8e230bdc6036bec1e28573c67e2e9ca67252c (diff)
downloadjquery-ui-f9ad17d575c2e26555bb00b6f7c6e72d0f8c427e.tar.gz
jquery-ui-f9ad17d575c2e26555bb00b6f7c6e72d0f8c427e.zip
Widget tests: Clean up $.fn methods
-rw-r--r--tests/unit/widget/core.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/widget/core.js b/tests/unit/widget/core.js
index 22832765b..74967e683 100644
--- a/tests/unit/widget/core.js
+++ b/tests/unit/widget/core.js
@@ -394,7 +394,9 @@ test( "inheritance", function() {
"extension class option array overwrites base");
delete $.ui.testWidgetBase;
+ delete $.fn.testWidgetBase;
delete $.ui.testWidgetExtension;
+ delete $.fn.testWidgetExtension;
});
test( "._super()", function() {
@@ -430,7 +432,9 @@ test( "._super()", function() {
instance = $( "<div>" ).testWidget3().testWidget3( "instance" );
instance.method( 5 );
delete $.ui.testWidget3;
+ delete $.fn.testWidget3;
delete $.ui.testWidget2;
+ delete $.fn.testWidget2;
});
test( "._superApply()", function() {
@@ -467,7 +471,9 @@ test( "._superApply()", function() {
instance = $( "<div>" ).testWidget3().testWidget3( "instance" );
instance.method( 5, 10 );
delete $.ui.testWidget3;
+ delete $.fn.testWidget3;
delete $.ui.testWidget2;
+ delete $.fn.testWidget2;
});
test( ".option() - getter", function() {
@@ -1375,7 +1381,9 @@ test( "redefine deep prototype chain", function() {
instance.method( "level 1" );
delete $.ui.testWidget3;
+ delete $.fn.testWidget3;
delete $.ui.testWidget2;
+ delete $.fn.testWidget2;
});
test( "redefine - widgetEventPrefix", function() {