fix toBeDisabled jQuery matcher
This commit is contained in:
parent
0d84493b05
commit
280122cee3
|
@ -137,9 +137,9 @@ jasmine.JQuery.matchersClass = {};
|
||||||
return this.actual.find(selector).size() > 0;
|
return this.actual.find(selector).size() > 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
toBeDisabled: function(selector){
|
toBeDisabled: function(selector) {
|
||||||
return this.actual.attr("disabled") == true;
|
return this.actual.is(':disabled');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var hasProperty = function(actualValue, expectedValue) {
|
var hasProperty = function(actualValue, expectedValue) {
|
||||||
|
|
Reference in New Issue