aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2011-04-04correct $resource's success callback executionIgor Minar
succcess callbacks should be executed for status codes in the range of <200,300).
2011-03-31encode query params correctly but not too agressivelyIgor Minar
2011-03-31add much needed whitespace to jqLiteSpec.jsIgor Minar
can we agree to put more white space into our code? I follow there rules for specs: - 1 blank line between sections of nontrivial it block - 2 blank lines between it blocks - 2 blank lines between describe blocks - 2 blank lines between beforeEach and afterEach - no blank line between describe and the first child it - no blank lines between two or more closing }); lines
2011-03-31add specs for jqLite wrapping/node creationIgor Minar
tests cover: - creating comment tags from a string - creating script tag from a string - wrapping document fragment
2011-03-31ignore jqLite#append for doc fragmentIgor Minar
this is needed to be compatible with jqQuery 1.5.1
2011-03-31fix jqLite#parent to be compatible with jQueryIgor Minar
our original implementation doesn't work with document fragments on IE - tests were added to cover missing cases
2011-03-30correct size() impl for object's w/ 'length' propIgor Minar
the original implementation returned incorrect value value for objects with 'length' property.
2011-03-30extend size() to take ownPropsOnly paramIgor Minar
- extend size() to take size(obj, ownPropsOnly) - add specs for size() - update docs to mention string support - use size() in ng:repeat including the hasOwnProp check for all object doesn't create significant perf penalty: http://jsperf.com/dedicated-code-branch-for-hasownprop
2011-03-30make xhr.cache optionally synchronousIgor Minar
- add `sync` flag xhr.cache - change ng:include to use the sync flag - change ng:view to use the sync flag The end result is that there are fewer repaints in the browser, which means less "blinking" that user sees.
2011-03-30remove weird spaces from resource mutation testIgor Minar
2011-03-29Don't mutate resource if server responded with no bodyAnthony Lieuallen
If the server provides response with no body to a resource request, resource should not mutate the resource model in the callback.
2011-03-28encode $resource query params using encodeURIComponentIgor Minar
2011-03-28fixing lint warningsIgor Minar
2011-03-28Added missing semi-colonsVojta Jina
So that my eclipse stops complaining...
2011-03-26remove _null and _undefinedIgor Minar
they have no significant effect on minified and gziped size. in fact they make things worse. file | before | after removal ---------------------------------------- concat | 325415 | 325297 min | 62070 | 62161 min + gzip | 25187 | 25176 The bottom line is that we are getting 0.05% decrease in size after gzip without all of the hassle of using underscores everywhere.
2011-03-11Remove the script tag after successful JSONP requestMisko Hevery
2011-03-11Added XSRF prevention logic to $xhr serviceMisko Hevery
2011-03-11Changed the $browser.xhr parameter post from optional to requiredMisko Hevery
2011-03-11Consider all 2xx responses as OK, not just 200Misko Hevery
2011-03-11Fixed cookies which contained unescaped '=' would not show up in cookie service.Misko Hevery
2011-03-11fix failing autobind test on IEIgor Minar
2011-03-11ng:autobind now optionally takes element idIgor Minar
so it is possible to easily compile just a part of a document. e.g.: <html> <head> <title>partially compiled doc</title> <script src="angular.js" ng:autobind="compileThis"></script> </head> <body> this part won't be compiled: {{1+2}} <div id="compileThis" ng:init="i=0" ng:click="i = i+1"> Click count: {{i}} </div> </body> </html>
2011-03-11angularJsConfig now allows ng:autobind and #autobind value to be passed inIgor Minar
2011-03-02$xhr service now autodetects and strips )]}',\nIgor Minar
")]}\',\n" is a commonly used security prefix added to json http responses iat google and elsewhere in order to prevent certain cross-site attacks $xhr service now autodetects the prefix and strips it before deserializing the json. the implementation should be more flexible to allow for wider range of prefixes, but we need this one right now and can address other usecases later.
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-27adding an extra injector specIgor Minar
- added a spec for dependency graph resolution - also simplyfying cache presence check
2011-02-25Added delay parameter to the $defer serviceMisko Hevery
2011-02-25Corrected an issue where properties inherited from __proto__ show up in ↵Misko Hevery
ng:repeat. Closses #112
2011-02-22add class on any namespace elmentsMisko Hevery
2011-02-19correct hashchange event registration on windowMisko Hevery
2011-02-19fix test which fails on CI build, because the image has sizeMisko Hevery
2011-02-18Remove ng:watchMisko Hevery
Closes#143
2011-02-18replace smart-quotes with regular quotesMisko Hevery
2011-02-18Auto create $inject property form the argument names. Any arg starting with ↵Misko Hevery
$ or _ will be injected
2011-02-17resources should not over-encode chars in url pathIgor Minar
- added encodeUriSegment that properly encodes only those chars that URI RFC requires us to encode - modified Resource to use encodeUriSegment
2011-02-16Changed the angular.compile(element)(scope[, cloneAttachNode])Misko Hevery
2011-02-16rewrite of JQuery lite implementation, which now better supports selected setsMisko 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-02-16allow jquery to be declared after angular in the script loading orderMisko Hevery
2011-02-15split up services into individual filesIgor Minar
- split up services into files under src/service - split up specs into files under test/service - rewrite all specs so that they don't depend on one global forEach - get rid of obsolete code and tests in ng:switch - rename mock $log spec from "$log" to "$log mock"
2011-02-10$resource should encode url params with encodeURIComponentIgor Minar
2011-02-07add support for hashSearch redirection and custom redirection functionsIgor Minar
2011-02-07$route redirection should interpolate variablesIgor Minar
2011-02-07$location.updateHash should not preserve hashSearch when hashSearch is undefinedIgor Minar
2011-02-06fix how redirection is handled and testedIgor Minar
2011-02-04mock $log: fixed bug, added some testsVojta Jina
I extracted mock $log factory into stand alone function, so we can access it and test, because this service is rewritten by real service during testing, so we can't access it through angular.$service('$log')...
2011-02-04ng:view should be nestable in ng:includeIgor Minar
2011-02-04$route.onChange should return the registered fnIgor Minar