-
Notifications
You must be signed in to change notification settings - Fork 27.4k
chore(angularFiles): add missing files #14314
Conversation
ngMessageFormat test files were missing from angularTest ngMessages and ngAnimate were missing from karmaModules. The test files were using two APIs that are not exposed in the module tests. jqLiteHasClass has been changed to use angular.element(..).hasClass() instead, and for ngMessagesSpec a trim() fn has been added
@@ -218,7 +218,7 @@ beforeEach(function() { | |||
}; | |||
var classes = clazz.trim().split(/\s+/); | |||
for (var i = 0; i < classes.length; ++i) { | |||
if (!jqLiteHasClass(actual[0], classes[i])) { | |||
if (!angular.element(actual[0]).hasClass(classes[i])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is a bit heavier than calling jqLiteHasClass directly, so it might make the tests run slower.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that actual
is already a jqLite/jQuery element. We could probably do actual.hasClass()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't the identity of atual depend on what is passed to expect
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. actual
is what we pass to expect
.
ngMessageFormat test files were missing from angularTest ngMessages and ngAnimate were missing from karmaModules. This change highlighted a number of problems in the tests and code, which are also fixed. Closes angular#14314
ngMessageFormat test files were missing from angularTest ngMessages and ngAnimate were missing from karmaModules. This change highlighted a number of problems in the tests and code, which are also fixed. Closes angular#14314
ngMessageFormat test files were missing from angularTest ngMessages and ngAnimate were missing from karmaModules. This change highlighted a number of problems in the tests and code, which are now fixed. Closes angular#14314
ngMessageFormat test files were missing from angularTest
ngMessages and ngAnimate were missing from karmaModules. The test
files were using two APIs that are not exposed in the module tests.
jqLiteHasClass has been changed to use angular.element(..).hasClass()
instead, and for ngMessagesSpec a trim() fn has been added