aboutsummaryrefslogtreecommitdiffstats
path: root/test/CompilerSpec.js
AgeCommit message (Collapse)Author
2011-11-14move(compiler): appease the History GodMisko Hevery
- renamed: src/Compiler.js -> src/service/compiler.js - renamed: test/CompilerSpec.js -> test/service/compilerSpec.js
2011-11-14refactor(injector): turn scope into a serviceMisko Hevery
- turn scope into a $rootScope service. - injector is now a starting point for creating angular application. - added inject() method which wraps jasmine its/beforeEach/afterEach, and which allows configuration and injection of services. - refactor tests to use inject() where possible BREAK: - removed angular.scope() method
2011-10-20fix(compiler): revert 8611ebe6 - calling \$digest after linkingIgor Minar
Change introduced by me in 8611ebe6 results in considerable inefficiencies when the compiler and linker is used from within a widget, in which case, we call $digest unnecessary since it will be called by the $apply which called the directive/widget in the first place. There are only two places when the extra $digest call can be useful - when manually bootstrapping the app or in tests. However even in tests this behavior can result in unwanted results (especially when ng:controller is involved). So it is better to leave it for the developer to call $digest when it is really needed.
2011-10-12fix(compiler): linking function should call $digestIgor Minar
The linked scope should be $digest-ed but only if a $digest isn't already running on it.
2011-10-11chore(formating): clean code to be function() {Misko Hevery
2011-09-16fix(specs): various fixes to get IE8+jquery unit tests greenIgor Minar
2011-08-12refactor(scope): remove $flush/$observe ng:eval/ng:eval-orderMisko Hevery
2011-08-02feat(scope): new and improved scope implementationMisko Hevery
- Speed improvements (about 4x on flush phase) - Memory improvements (uses no function closures) - Break $eval into $apply, $dispatch, $flush - Introduced $watch and $observe Breaks angular.equals() use === instead of == Breaks angular.scope() does not take parent as first argument Breaks scope.$watch() takes scope as first argument Breaks scope.$set(), scope.$get are removed Breaks scope.$config is removed Breaks $route.onChange callback has not "this" bounded
2011-07-18feat(strict mode): adding strict mode flag to all js filesIgor Minar
the flag must be in all src and test files so that we get the benefit of running in the strict mode even in jstd the following script was used to modify all files: for file in `find src test -name "*.js"`; do echo -e "'use strict';\n" > temp.txt cat $file >> temp.txt mv temp.txt $file done
2011-06-17Fix failing unit tests in IE7 (Binder, select widget)Vojta Jina
The fix does not change any production code, we only need to ignore couple of attributes that IE7 should not display: * value attribute for LI * selected attribut for SELECT Simplified condition in compiler test, this should have been part of f9f0905f4ad7b1d0bb9b606a6d25fb1f88354a78
2011-06-17Fix compiler test for IE9Vojta Jina
Older IEs serialize html uppercased, but IE9 does not... Would be better to expect case insensitive, unfortuntaly jasmine does not allow to user regexps for throw expectations. Closes #392
2011-06-08Throw error when compiling multiple rootsMisko Hevery
Closes #338
2011-03-01linking function should return bound scopeIgor Minar
angular.compile()() returns {scope:scope, view:view}, this isn't useful at all and only makes tests more verbose. Instead, this change makes the linking function return scope directly and if anyone needs the linked dom there are two ways to do it documented in angular.compile. other changes: - moved angular.compile docs to the compiler so that they are closer to the compiler - fixed some typos and updated angular.compile docs with the new return value
2011-02-22add class on any namespace elmentsMisko Hevery
2011-02-16Changed the angular.compile(element)(scope[, cloneAttachNode])Misko Hevery
2011-02-16Change API angular.compile(element)([scope], [element/true])Misko Hevery
2011-02-16remove $init on scope from applying compilation templateMisko Hevery
Closes #40
2011-02-16Add public API to retrieve scope from element.Misko Hevery
2011-01-24fixed example rendering, add tests for it.Misko Hevery
2011-01-24fix for infinite loop in retrieveScope with jQuery + specsIgor Minar
- retrieveScope run into infinite loop if called on DOM tree that doesn't contain scope reference (happens only with jQuery) - added missing specs for retrieveScope function
2010-12-02Closes #170. Corrected the behavior of select when options are ng:repeatedMisko Hevery
- Delete $postEval method, as it was a hack
2010-11-10added ng:switch-when-default; changed $watch to always fire on init. (may be ↵Misko Hevery
backward incompatible)
2010-10-27Fix failing tests for ie, and mark elements as ng-widget, ng-directive, and ↵Misko Hevery
ng-binding
2010-10-12Fixed issue where compiler would pass in detached text node if previous ↵Misko Hevery
markup would have removed it.
2010-07-30rename textMarkup to markupMisko Hevery
2010-07-20fixed xhtml compatibility, fix console in chromeMisko Hevery
2010-04-26fix ie for jqueryMisko Hevery
2010-04-26allow the widget to change structure of the DOM and have the compiler follow ↵Misko Hevery
the replaced element.
2010-04-21all tests pass on IEMisko Hevery
2010-04-20fixes to enable ieMisko Hevery
2010-04-12added ng-eval-order attributeMisko Hevery
2010-04-06few fixes to make tests pass with jqueryMisko Hevery
2010-04-03injection is now workingMisko Hevery
2010-03-24mergeMisko Hevery
2010-03-24Fix parsing bug with strings for -Shyam Seshadri
2010-03-23markup now wroks, some refactoringsMisko Hevery
2010-03-22all angular.js directives now workMisko Hevery
2010-03-22got few directives workingMisko Hevery
2010-03-19tests fixed, still missing widgetsMisko Hevery
2010-03-19showing off problem to corryMisko Hevery
2010-03-18cleanup workMisko Hevery
2010-03-18cleanup workMisko Hevery
2010-03-18markup now worksMisko Hevery
2010-03-18support for templatesMisko Hevery
2010-03-18initial revision of new plugable compilerMisko Hevery