aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2011-10-22fix(defer.cancel): should return false instead of undefinedIgor Minar
2011-10-22feat($defer): add $defer.cancelIgor Minar
This functionality was previously available only as obscure $browser.defer.cancel. I also added docs and tests and fixed an issue in .defer.cancel mock.
2011-10-22fix($location): rewrite links with nested elementsVojta Jina
For example: <a href="some/link">inner <span>text</span></a> If you click on "text", then the span element is event.target, so we need to traverse the DOM.
2011-10-20feat(filter.date): use mediumDate as defaultIgor Minar
Breaking change! Previously the default was fullDate.
2011-10-20fix(date filter): default to fullDate formatIgor Minar
The browser's behave inconsistently, so we should just stick to one format when the format is not specified by the developer Closes #605
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-20fix(radio): allows data-binding on value property. Closes#316Misko Hevery
2011-10-19fix(ng:options): compile null/blank option tagTEHEK Firefox
Fixes #562
2011-10-19fix(ng:pattern): correctly parse out inlined regexpIgor Minar
2011-10-19feat(input): add ng:minlength and ng:maxlength validationKonstantin Stepanov
notes(igor): I also e2e tests and refactorred the e2e test example to be more clear about what is a variable and what is an html/framework api.
2011-10-19fix(input): recognize 'password' as an html input typeKonstantin Stepanov
2011-10-18fix(ng:repeat): repeater should ignore $ and $$ propertiesIgor Minar
2011-10-18fix(ng:options): select correct element when '?'-option was previously selectedTEHEK Firefox
Closes #599
2011-10-13fix(checkbox): prefix true-value & false-value with ng:Igor Minar
2011-10-13fix($location): do not rewrite link when meta key pressedVojta Jina
2011-10-12fix(forms): broken tests on jQuery and ie8&9Misko Hevery
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-12fix(jqLite): attr for boolean attribute should lowercase valueIgor Minar
2011-10-12test(checkbox): add test for ng:changeIgor Minar
2011-10-11chore(formating): clean code to be function() {Misko Hevery
2011-10-11feat(forms): new and improved formsMisko Hevery
2011-10-11refactor(bindings): remove the decoration of the DOM with errors.Misko Hevery
Only $exceptionHandler gets notified now.
2011-10-11refactor(hover): delete hover serviceMisko Hevery
2011-10-11fix(jqlite): removeClass would clobber class namesMisko Hevery
2011-10-11feat(jqlite): added .inheritedData method and $destroy event.Misko Hevery
- refactored .scope() to use .inheritedData() instead. - .bind('$destroy', callback) will call when the DOM element is removed
2011-10-11refactor(injection) infer injection args in ng:controller onlyMisko Hevery
Because only controllers don't have currying, we can infer its arguments, all other APIs needing currying, automatic inference complicates the matters unecessary.
2011-10-11feat(ng:repeat) collection items and DOM elements affinity / stabilityMisko Hevery
2011-10-11fix(filter): make json filter ignore private propertiesMisko Hevery
2011-10-07fix(parser): Fix short circuit of logical AND and OR operatorsDhruv Manek
Closes #433
2011-10-05fix($limitTo): properly handle excessive limitsTEHEK Firefox
`angular.Array.limitTo`'s result should not exceed original input array size Closes #571
2011-09-28fix(jqLite): css should convert dash-separated properties to camelCaseIgor Minar
this fix is needed for Firefox or other browsers that strictly follow dom/css spec which states that element.style should make properties available in camelCased form. Closes #569
2011-09-27test(matchers): add toBeOneOf 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-21fix($route): fix regex escaping in route matcherIgor Minar
2011-09-16feat(scenarioRunner): adding support for element().prop()Igor Minar
since jQuery 1.6.4 attr() focuses only on work with element attributes and doesn't deal well with element properties, so adding prop() support is required for getting many e2e tests to pass after upgrading the runner to jQuery 1.6.4.
2011-09-16fix(specs): various fixes to get IE8+jquery unit tests greenIgor Minar
2011-09-16fix(specs): fix jQuery to jqLite binding on IE8Igor Minar
It appears that this whole time all IE8 unit tests ran only with jqLite. Due to a weird bug in IE[1], we never overwrote jqLite implementation with jQuery, so the tests ran with our jqLite instead. This affected only IE8 (and likely older) and only in unit testing mode. angular.js - the built artifact binds to jQuery just find. [1] https://plus.google.com/104744871076396904202/posts/Kqjuj6RSbbT
2011-09-16fix(specs): jQuery now returns attr name instead of true/false for special attrsIgor Minar
for special attrs like 'checked' or 'multiple', jquery now returns the name or undedefined. e.g. foo.attr('checked') => 'checked' || undefined The solution is a combination of updating our tests as well as switching over to prop() instead which properly returns true/false
2011-09-16fix($location) $location specs must unbind document listenerIgor Minar
link rewriting used in html5 mode on legacy browsers binds to document.onClick - we need to destroy this listener after each test to prevent test collisions (global state is evil).
2011-09-16feat(jqLite): add prop() supportIgor Minar
since jQuery 1.6.4 prop() became very important because attr() does't have access to certain properties any more (e.g. className), so I'm adding it to jqLite as well so that jqLite preserves the feature-set it had before the jQuery upgrade.
2011-09-16feat(jqLite): add support for unbind()Igor Minar
supports these invocation types: - foo.unbind(); - foo.unbind('eventType'); - foo.unbind('eventType', fn); more info: http://api.jquery.com/unbind/
2011-09-16fix(jqLiteSpec): jQuery's css() getter works only for valid rulesIgor Minar
foo.css('bogus', 'value') foo.css('bogus') => null so I had to change all tests to use valid css rules
2011-09-16fix(jqLite): attr() should not special-case 'class' attributeIgor Minar
since jQuery 1.6 'class' is not treated specially, so we have to revert this fix and use className in tests instead
2011-09-16feat (jquery): upgrade everything to jQuery 1.6.4Igor Minar
Closes #556
2011-09-08style: fix some missing semi-colons and spaces, typosVojta Jina
2011-09-08fix(scenario): do not navigate if click event was cancelledVojta Jina
This is jQuery incompatible hack. But we were doing monkey patching there anyway... `$(...).trigger('click')` returns an array of return values, so that scenario runner knows, whether the event default action was cancelled. Without this fix, scenario runner was doing navigation even if JS code called `event.preventDefault()`. Note, this does not work in FF6
2011-09-08fix($route): update $route to reflect $location changesVojta Jina
* update $route to reflect new $location * add some more unit tests to $route * fix some other failing unit tests * redirect overrides the url now Breaks $route custom redirect fn has only 3 params now
2011-09-08feat($location): $location service with html5 history api supportVojta Jina
See documentation of $location for more info Breaks $location has no properties, only get/set methods Closes #168 Closes #146 Closes #281 Closes #234
2011-09-08feat(jqLite): add event.isDefaultPrevented() as jQueryVojta Jina
Chrome's Event has defaultPrevented property, but other browsers haven't. This is workaround for other browsers - same as jQuery.
2011-09-08feat($browser): add $browser.baseHref()Vojta Jina
This method abstracts <base href="" /> in document.head - returns the value. If absolute href set, it converts the href to relative.