aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2011-09-27fix($route): fix regex escaping in route matcherIgor Minar
2011-09-27fix($resource): action defaults should override resource defaultsMarcello Nuccio
defaults definned per action should take precedence over defaults defined for the whole resource. This is potentialy a BREAKING CHANGE in case someone relied on the buggy behavior.
2011-09-02fix(test): improve $cookie service test to work with Safari 5.1Igor Minar
the max size for safari cookies has changed sligtly so I had to adjust the test to make cookie creation fail on this browser
2011-08-19feat($route): add reloadOnSearch route param to avoid reloadsIgor Minar
In order to avoid unnecesary route reloads when just hashSearch part of the url changes, it is now possible to disable this behavior by setting reloadOnSearch param of the route declaration to false. Closes #354
2011-08-19feat($xhr,$resource): expose response headers in callbacksKarl Seamon
all $xhr*, $resource and related mocks now have access to headers from their callbacks
2011-08-19fix($resource): properly call error callback when resource is called with ↵Karl Seamon
two arguments
2011-08-19feat(test): toHaveBeenCalledOnce jasmine matcherVojta Jina
2011-08-19refactor(jqLite): remove jqLite show/hide supportIgor Minar
it turns out that even with our tricks, jqLite#show is not usable in practice and definitely not on par with jQuery. so rather than introducing half-baked apis which introduce issues, I'm removing them. I also removed show/hide uses from docs, since they are not needed. Breaks jqLite.hide/jqLite.show which are no longer available.
2011-08-19fix(directives): make ng:class-even/odd work with ng:classDi Peng
Closes #508
2011-08-18refactor(widgets): remove input[button, submit, reset, image] and button ↵Di Peng
windgets These widgets are useless and only trigger extra $updateViews. The only reason we had them was to support ng:change on these widgets, but since there are no bindings present in these cases it doesn't make sense to support ng:change here. It's likely just a leftover from getangular.com Breaking change: ng:change for input[button], input[submit], input[reset], input[image] and button widgets is not supported any more
2011-08-18feat($browser): JSONP error handlingDi Peng
since we don't know if the error was due to a client error (4xx) or server error (5xx), we leave the status code as undefined.
2011-08-18doc(typos): fix couple of typos in the docsdandoyon
Minor documentation fixes. Should not be any code changes. One test changed due to dependency on text in documentation.
2011-07-27feat($xhr): add custom error callback to $xhr, $xhr.cache, $xhr.bulk, $resourceKarl Seamon
Closes #408
2011-07-27style(): fix couple of missing semi-colonsVojta Jina
2011-07-26fix(ng:show/ng:hide): use jqLite.show/jqLite.hideDi Peng
The previous implementation didn't handle situation when in css something was hidden with a cascaded display:none rule and then we wanted to show it. Unfortunatelly our test doesn't test this scenario because it's too complicated. :-/
2011-07-26feat(number/currency filter): format numbers and currency using patternDi Peng
both numbers and currency need to be formatted using a generic pattern which can be replaced for a different pattern when angular is working in a non en-US locale for now only en-US locale is supported, but that will change in the future
2011-07-26style(ng:options): fix style and some docsIgor Minar
2011-07-26fix(ng:options): add support for option groupsMisko Hevery
Closes# 450
2011-07-26fix(directive): ng:options to support ng:changeMisko Hevery
Closes #463
2011-07-26fix(directive): ng:options to support iterating over objectsMisko Hevery
Closes #448
2011-07-26fix(directive): ng:options incorrectly re-grew options on datasource changeMisko Hevery
Closes #464
2011-07-26fix(directive): ng:options now support binding to expressionMisko Hevery
Closes #449
2011-07-26style(warnings): prevent the browser from making bogus GET requests during testsMisko Hevery
2011-07-26style(warnings): added missing semi colonsMisko Hevery
2011-07-22feat(angular.version): add angular.versionDi Peng
- placeholders are replaced with actual angular versions when doing rake compile
2011-07-20feat(filter.date): add support for default datetime formats in enDi Peng
- add support for full,long, medium, short datetime formats in en Breaks MMMMM. now we don't support MMMMM anymore as old implementation differs from Unicode Locale Data format we are following. - removed support for fullDateTime and fullTime as it means too much trouble with full timeZone names - added docs for the new features
2011-07-20feat(TzDate): add mock "toString" method to TzDate.Di Peng
- If the third param of TzDate constructor is defined, toStirng will just return this third parameter. Otherwise, toString will still be treated as unimplemented method
2011-07-19Revert "fix(ng:class): preserve classes added post compilation"Igor Minar
This reverts commit 2428907259fa80ec3b1b4bfd85ea20028a9f4fa5. We decided to revert this because it is not bullet proof. The issue is that we can't reliably have both angular and non-angular code in charge of the DOM. We could work around some issues here and there, but we can't do it reliably, so it's better not to support DOM manipulation that happens outside of angular. There is a good chance that once we integrate with MDVs our possition will change, but until then our position is that only angular or angular widgets/directives can change change DOM that was compiled.
2011-07-18feat($browser.$defer.cancel): support canceling defered tasksIgor Minar
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-07-18fix(strict mode): fix all issues discovered by strict mode and unit/e2e testsIgor Minar
2011-07-18refactor($browser): hide startPoll and poll methodsDiPeng
Breaks $browser.poll() method is moved inline to $browser.startpoll() Breaks $browser.startpoll() method is made private Refactor tests to reflect updated browser API Closes #387
2011-07-17style(jqLiteSpec): add spaceDi Peng
2011-07-17feat(jqlite): added show(),hide() and eq() methods to jqliteDi Peng
- add those three methods to jqlite
2011-07-13fix(ng:class): preserve classes added post compilationDi Peng
- make sure ng:class preserve classes added after compilation Closes #355
2011-07-13refactor($browser.xhr): use $browser.addJs for JSONPIgor Minar
There is no reason why we shouldn't reuse $browser.addJs for JSONP requests.
2011-07-13fix($browser.addJs): make addJs jQuery compatibleIgor Minar
Change addJs implementation to avoid use of jQuery because of issues that affect angular-ie-compat.js. See inlined comment for more info.
2011-07-13fix($browser.xhr): properly delete jsonp callbacksIgor Minar
2011-07-12fix:jqLite: Set event.target on IE<8Vojta Jina
IE<8's Event has not target property - it has srcElement property. Fix that to be consistent as jQuery.
2011-07-12fix:jqLite: Normalize non-existing attributes to undefined as jQueryVojta Jina
jqLite was returning null, but jQuery returns undefined
2011-07-12fix:jqLite: Fix binding to more events separated by spaceVojta Jina
The var eventHandler was defined outside forEach loop, so registering more events caused calling listeners registered by the last one. Regression: elm.bind('click keyup', callback1); elm.bind('click', callback2); elm.bind('keyup', callback3); Firing click event would have executed callback1, callback3 !
2011-07-12test(ng:repeat): add tests for $position for small arrays/objectsIgor Minar
2011-07-01fix:exceptionHandler mock: should not specify dependenciesIgor Minar
also added a test for this mock service
2011-07-01fix:$browser mock: defer.flush() should flush all fnsIgor Minar
2011-06-30feat:$xhr: provide access to $xhr header defaultsIgor Minar
$xhr header defaults are now exposed as $xhr.defaults.headers.common and $xhr.default.headers.<httpmethod>. This allows applications to configure their defaults as needed. This commit doesn't allow headers to be set per request, only per application. Per request change would require api change, which I tried to avoid *for now*.
2011-06-27fix:tests: replace angular.annotate with annotateIgor Minar
forgot to fix tests in 6aee2938a71c99fdd35639725c6900347999f658
2011-06-27test:ng#class: added a better unit test for ng:classDi Peng
2011-06-27fix:testabilityPatch: remove annotate since it's not publicIgor Minar
2011-06-23feat:filter.date: add day/month string format supportDi Peng
Support new date format, specifically day of week/Month of year in string e.g. {{ someDate | data:"EEE, MMM d, yyyy" }} -> "Wed, Jul 10, 2011" Closes #396
2011-06-23fix:ng:repeater - fix $position when collection size changesMisko Hevery