DiPeng
7974e7eb5f
refactor($browser): hide startPoll and poll methods
...
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-18 00:04:14 -07:00
Di Peng
83ac1193f2
style(jqLiteSpec): add space
2011-07-17 22:19:08 -07:00
Di Peng
7a3fdda965
feat(jqlite): added show(),hide() and eq() methods to jqlite
...
- add those three methods to jqlite
2011-07-17 22:19:08 -07:00
Di Peng
2428907259
fix(ng:class): preserve classes added post compilation
...
- make sure ng:class preserve classes added after compilation
Closes #355
2011-07-13 16:42:38 -07:00
Igor Minar
8a8a2cf462
refactor($browser.xhr): use $browser.addJs for JSONP
...
There is no reason why we shouldn't reuse $browser.addJs for JSONP
requests.
2011-07-13 16:21:08 -07:00
Igor Minar
47efe44a1d
fix($browser.addJs): make addJs jQuery compatible
...
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-13 16:21:08 -07:00
Igor Minar
c52e749a6e
fix($browser.xhr): properly delete jsonp callbacks
2011-07-13 16:21:08 -07:00
Vojta Jina
ce80576e0b
fix:jqLite: Set event.target on IE<8
...
IE<8's Event has not target property - it has srcElement property.
Fix that to be consistent as jQuery.
2011-07-12 23:04:46 -07:00
Vojta Jina
10da625ed9
fix:jqLite: Normalize non-existing attributes to undefined as jQuery
...
jqLite was returning null, but jQuery returns undefined
2011-07-12 23:04:46 -07:00
Vojta Jina
9ee9ca13da
fix:jqLite: Fix binding to more events separated by space
...
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-12 23:04:46 -07:00
Igor Minar
bb39d34279
test(ng:repeat): add tests for $position for small arrays/objects
2011-07-12 22:49:12 -07:00
Igor Minar
30bd04feaa
fix:exceptionHandler mock: should not specify dependencies
...
also added a test for this mock service
2011-07-01 18:17:54 -07:00
Igor Minar
75721223b5
fix:$browser mock: defer.flush() should flush all fns
2011-07-01 17:03:50 -07:00
Igor Minar
c5f3a413bc
feat:$xhr: provide access to $xhr header defaults
...
$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-30 00:34:50 -07:00
Igor Minar
d3fb5b411e
fix:tests: replace angular.annotate with annotate
...
forgot to fix tests in 6aee2938a7
2011-06-27 22:41:49 -07:00
Di Peng
75bc59ee4b
test:ng#class: added a better unit test for ng:class
2011-06-27 22:31:29 -07:00
Igor Minar
6aee2938a7
fix:testabilityPatch: remove annotate since it's not public
2011-06-27 16:46:29 -07:00
Di Peng
b5a510a343
feat:filter.date: add day/month string format support
...
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-23 12:06:46 -07:00
Misko Hevery
9ec45ad5c4
fix 🆖 repeater - fix $position when collection size changes
2011-06-23 08:12:01 -07:00
Misko Hevery
8e880fcb77
style:ApiSpecs - clean up test names to match jasmine conventions
2011-06-23 08:12:01 -07:00
Misko Hevery
b74163dc1d
fix:$orderBy - return unsorted array if no predicate
...
Closes #399
2011-06-23 08:12:01 -07:00
Di Peng
bad62d87a1
fix:scope - reintroduce support for eager services
...
8cad231 broke $eager services
Problem is that the injector.eager function is not invoked when a new scope
is created. Added a test to make sure service is eagerly instantiated.
Closes #403
2011-06-23 08:06:24 -07:00
Di Peng
65b6e48742
test:angular.service - add tests for $inject
2011-06-23 07:56:58 -07:00
Vojta Jina
d0edc11704
Fix failing unit tests in IE7 (Binder, select widget)
...
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 f9f0905f4a
2011-06-17 22:48:22 +02:00
Vojta Jina
f9f0905f4a
Fix compiler test for IE9
...
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-17 19:48:49 +02:00
Vojta Jina
92ebf11b2a
Remove obsolete scenario folder
...
* moved scenario e2e tests in test/scenario/e2e folder
* remove $location test
2011-06-17 19:13:49 +02:00
Di Peng
e6ee994764
Added ng:disabled, ng:checked, ng:multiple, ng:readonly, ng:selected to markup.js.
...
Also added coresponding descriptions live examples and tests for each directive to be displayed on the website.
Closes #351
2011-06-16 21:17:46 -07:00
Vojta Jina
7460a7ef61
Fix test for scenario.Application - should remove old iframe
...
This behavior was changed by e83465c362
So this commit should have been part of e83465c362
Also removed hiding and navigating to about:blank as it makes no sense now...
2011-06-15 22:58:57 -07:00
Misko Hevery
91a34a7027
remove ng:format=index
2011-06-08 15:21:33 -07:00
Misko Hevery
af285dd370
Added ng:options directive
...
Closes #301
2011-06-08 15:21:33 -07:00
Misko Hevery
89e001b18a
Added prepend() to jqLite
2011-06-08 15:21:33 -07:00
Misko Hevery
4f2f3c9cbf
Added support for deferring callbacks in time
2011-06-08 15:21:33 -07:00
Misko Hevery
c1abc03cf3
Fixed indentation error
2011-06-08 15:21:33 -07:00
Misko Hevery
04a62e83bc
Throw error when compiling multiple roots
...
Closes #338
2011-06-08 15:21:33 -07:00
Misko Hevery
8cad231bd2
Refactor injector to have invoke method for speed reasons
2011-06-08 15:21:31 -07:00
Misko Hevery
0e17ade959
Cleanup parser code to expose smaller API
2011-06-08 15:01:32 -07:00
Misko Hevery
bb67ee8d28
Added HashMap
2011-06-08 15:01:32 -07:00
Misko Hevery
2a12f7dcaa
Added nextUid() function for unified way of generating IDs in angular
2011-06-08 15:01:32 -07:00
Misko Hevery
cc9f1fdf38
Proper handling of special attributes in jqlite
2011-06-08 13:49:11 -07:00
Misko Hevery
26e651996a
fix JSON to match native browser behavior
2011-06-08 13:49:11 -07:00
Misko Hevery
73e3f4c10c
better error reporting for exceptions
2011-06-08 13:49:11 -07:00
Misko Hevery
ec6d106d4a
code cleanup: missing ; and indentation
2011-06-08 13:49:11 -07:00
Misko Hevery
d6eba8f39f
Number filter would return incorrect value when fractional part had leading zeros.
2011-06-08 13:49:09 -07:00
Di Peng
9fdb09ebf8
added input#val method
...
Closes #237
2011-06-06 12:49:46 -07:00
Di Peng
1eebb771e3
renamed $pause to $sleep AND $wait to $pause
...
Closes #207
2011-06-05 12:00:45 -07:00
Vojta Jina
9a69677551
Fix CSS tests on Opera
...
Opera translates name colors to numbers (red -> #ff0000)
Other browsers like FF or Chrome translate number to rgb (#ff0000 -> rgb(255, 0, 0)
So avoiding colors in tests is probably the easiest solution...
2011-06-02 12:51:12 -07:00
Vojta Jina
dad2603752
Refactor $browser's lazy start polling
...
+ unit tests
2011-06-02 10:50:43 -07:00
Vojta Jina
50076b571d
Fix hashchange event on IE8 compatibility mode
...
Stupid IE8 in compatibility mode or in IE7 mode returns true for `('onhashchange' in window)`, but does not support hashchange event.
Closes #353
2011-06-02 10:50:39 -07:00
Vojta Jina
aa64d37a23
Fix unit test in IE7
2011-06-02 08:55:10 -07:00
Vojta Jina
2e5199997c
Rename deprecated wasCalled() -> toHaveBeenCalled() in all specs
...
As well as wasNotCalled(), wasCalledWith(), wasNotCalledWith()
2011-05-31 10:32:54 +02:00