@@ -916,7 +916,7 @@ test("jQuery.parseJSON", function(){
916
916
917
917
test ( "jQuery._Deferred()" , function ( ) {
918
918
919
- expect ( 10 ) ;
919
+ expect ( 11 ) ;
920
920
921
921
var deferred ,
922
922
object ,
@@ -1005,6 +1005,12 @@ test("jQuery._Deferred()", function() {
1005
1005
deferred . resolveWith ( jQuery , [ document ] ) . done ( function ( doc ) {
1006
1006
ok ( this === jQuery && arguments . length === 1 && doc === document , "Test fire context & args" ) ;
1007
1007
} ) ;
1008
+
1009
+ // #8421
1010
+ deferred = jQuery . _Deferred ( ) ;
1011
+ deferred . resolveWith ( ) . done ( function ( ) {
1012
+ ok ( true , "Test resolveWith can be called with no argument" ) ;
1013
+ } ) ;
1008
1014
} ) ;
1009
1015
1010
1016
test ( "jQuery.Deferred()" , function ( ) {
@@ -1143,16 +1149,16 @@ test("jQuery.sub() - Static Methods", function(){
1143
1149
}
1144
1150
} ) ;
1145
1151
Subclass . fn . extend ( { subClassMethod : function ( ) { return this ; } } ) ;
1146
-
1152
+
1147
1153
//Test Simple Subclass
1148
1154
ok ( Subclass . topLevelMethod ( ) === false , 'Subclass.topLevelMethod thought debug was true' ) ;
1149
1155
ok ( Subclass . config . locale == 'en_US' , Subclass . config . locale + ' is wrong!' ) ;
1150
1156
same ( Subclass . config . test , undefined , 'Subclass.config.test is set incorrectly' ) ;
1151
1157
equal ( jQuery . ajax , Subclass . ajax , 'The subclass failed to get all top level methods' ) ;
1152
-
1158
+
1153
1159
//Create a SubSubclass
1154
1160
var SubSubclass = Subclass . sub ( ) ;
1155
-
1161
+
1156
1162
//Make Sure the SubSubclass inherited properly
1157
1163
ok ( SubSubclass . topLevelMethod ( ) === false , 'SubSubclass.topLevelMethod thought debug was true' ) ;
1158
1164
ok ( SubSubclass . config . locale == 'en_US' , SubSubclass . config . locale + ' is wrong!' ) ;
@@ -1169,7 +1175,7 @@ test("jQuery.sub() - Static Methods", function(){
1169
1175
ok ( SubSubclass . config . locale == 'es_MX' , SubSubclass . config . locale + ' is wrong!' ) ;
1170
1176
ok ( SubSubclass . config . test == 'worked' , 'SubSubclass.config.test is set incorrectly' ) ;
1171
1177
notEqual ( jQuery . ajax , SubSubclass . ajax , 'The subsubclass failed to get all top level methods' ) ;
1172
-
1178
+
1173
1179
//This shows that the modifications to the SubSubClass did not bubble back up to it's superclass
1174
1180
ok ( Subclass . topLevelMethod ( ) === false , 'Subclass.topLevelMethod thought debug was true' ) ;
1175
1181
ok ( Subclass . config . locale == 'en_US' , Subclass . config . locale + ' is wrong!' ) ;
0 commit comments