angular.js/test
Igor Minar 2a8fe56997 fix(ng:class): make ng:class friendly towards other code adding/removing classes
ng:class as well as ng:class-odd and ng:class-even always reset the
class list to whatever it was before compilation, this makes it
impossible to create another directive which adds its own classes on the
element on which ng:class was applied.

the fix simply removes all classes that were added previously by
ng:class and add classes that the ng:class expression evaluates to.

we can now guarantee that we won't clobber stuff added before or after
compilation as long as all class names are unique.

in order to implement this I had to beef up jqLite#addClass and
jqLite#removeClass to be able to add/remove multiple classes without
creating duplicates.
2011-09-01 16:37:08 -07:00
..
jstd-scenario-adapter feat(strict mode): adding strict mode flag to all js files 2011-07-18 12:12:55 -07:00
scenario feat(scope): new and improved scope implementation 2011-08-02 01:00:03 +02:00
service feat($route): add events before/after route change 2011-08-31 14:31:23 -07:00
angular-mocksSpec.js break(date): remove support for 'long', 'longtime' date formats and 'z' flag 2011-08-14 23:44:21 -07:00
AngularSpec.js style(tests): correct indentation 2011-08-30 22:05:13 -07:00
ApiSpecs.js style($function): replace $function with 'function' 2011-08-06 01:54:06 -07:00
BinderSpec.js fix(ng:class): make ng:class friendly towards other code adding/removing classes 2011-09-01 16:37:08 -07:00
BrowserSpecs.js fix(test): improve $cookie service test to work with Safari 5.1 2011-08-29 14:38:28 -07:00
CompilerSpec.js refactor(scope): remove $flush/$observe ng:eval/ng:eval-order 2011-08-12 15:47:47 -07:00
directivesSpec.js fix(ng:class): make ng:class friendly towards other code adding/removing classes 2011-09-01 16:37:08 -07:00
FiltersSpec.js break(date): remove support for 'long', 'longtime' date formats and 'z' flag 2011-08-14 23:44:21 -07:00
FormattersSpec.js feat(strict mode): adding strict mode flag to all js files 2011-07-18 12:12:55 -07:00
InjectorSpec.js feat(strict mode): adding strict mode flag to all js files 2011-07-18 12:12:55 -07:00
jqLiteSpec.js fix(ng:class): make ng:class friendly towards other code adding/removing classes 2011-09-01 16:37:08 -07:00
jquery_alias.js feat(strict mode): adding strict mode flag to all js files 2011-07-18 12:12:55 -07:00
jquery_remove.js feat(strict mode): adding strict mode flag to all js files 2011-07-18 12:12:55 -07:00
JsonSpec.js feat(strict mode): adding strict mode flag to all js files 2011-07-18 12:12:55 -07:00
manual.html fixes IE related failures, and form submit event handling in ie 2010-10-26 16:33:59 -07:00
markupSpec.js fix(markup): Make special attrs such as ng:href work even without binding 2011-08-25 16:34:18 -07:00
mocks.js feat(scope): new and improved scope implementation 2011-08-02 01:00:03 +02:00
ParserSpec.js feat(scope): new and improved scope implementation 2011-08-02 01:00:03 +02:00
ResourceSpec.js fix($resource): properly call error callback when resource is called with two arguments 2011-08-18 15:07:04 -04:00
sanitizerSpec.js feat(strict mode): adding strict mode flag to all js files 2011-07-18 12:12:55 -07:00
ScenarioSpec.js refactor(scope): remove $flush/$observe ng:eval/ng:eval-order 2011-08-12 15:47:47 -07:00
ScopeSpec.js feat(scope): add listener deregistration fn for $watch and $on 2011-09-01 15:00:22 -07:00
testabilityPatch.js feat(test): toHaveBeenCalledOnce jasmine matcher 2011-08-18 17:41:23 +02:00
ValidatorsSpec.js feat(scope): new and improved scope implementation 2011-08-02 01:00:03 +02:00
widgetsSpec.js feat(widget): add ng:pluralize as an Angular widget 2011-08-30 02:11:09 -07:00