aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2013-08-28chore(travis): run bower install twice to make sure it doesVojta Jina
This is a work-around for Bower/Node.js issue (https://github.com/bower/bower/issues/830). We run `bower install` twice, as the probability of failing twice in a row is very low. I had to extract `bower` task out of the package, because we need to run `bower install` before building and `grunt bower` can fail, which takes down the whole process and therefore it wouldn't build.
2013-08-28chore(karma): longer reconnect timeoutVojta Jina
2013-08-28chore(travis): clean up the build outputVojta Jina
2013-08-28chore: switch back to npm grunt-parallelVojta Jina
The patch has been released so we don't need to rely on github branch anymore.
2013-08-28chore(travis): use ports proxied by SauceLabsVojta Jina
Some browser does not allow to proxy localhost and so SL uses another proxy on the VM. This proxy only proxies some ports (SauceConnect proxies all ports). This is the issue why Safari didn't connect for e2e tests, because 9877 was not proxied. This change makes sure we use SL enabled ports.
2013-08-28chore: use Karma v0.11Vojta Jina
Karma v0.11 starts test execution immediately after a browser gets captured (instead of waiting for all browsers). It also kills each browser immediately after it's done. This will use our resources (SauceLabs browsers) more efficiently.
2013-08-28docs(guide): update description of $inject mechanism to be a little clearerphanboy4
2013-08-27test(Scope): fix tests after reverting commitsIgor Minar
Making assertions on state (rather than interactions) is better anyway.
2013-08-27revert: feat(mocks): make $timeout#flush throw an exception when emptyIgor Minar
This reverts commit cbf06a5d64aba537f0e2679a194d3998d8365493. This turned out to be a bad idea because it allow us to fast-forward the wall clock time (see previous commit).
2013-08-27revert: fix(mocks): $timeout#flush should not update time when emptyIgor Minar
This reverts commit 42af8eada2803a54a98b4f792e60feb480d68a0c. This turned out to be a bad idea as it prevents us from moving the time forward and asserting that the component state didn't change due to the scheduled task executing too early.
2013-08-27style($http): remove unused argumentIgor Minar
2013-08-27chore(i18n): update path in the generate.sh scriptIgor Minar
2013-08-27fix(i18n): remove obsolete locale filesIgor Minar
Remove obsolete locale files that are not found in Google Closure library. I don't know why they were removed, but without a link to Closure we can't maintain these files going forward so I'm deleting them. BREAKING CHANGE: some non-common region-specific local files were removed.
2013-08-26feat(Scope): async auto-flush $evalAsync queue when outside of $digestIgor Minar
This change causes a new $digest to be scheduled in the next tick if a task was was sent to the $evalAsync queue from outside of a $digest or an $apply. While this mode of operation is not common for most of the user code, this change means that $q promises that utilze $evalAsync queue to guarantee asynchronicity of promise apis will now also resolve outside of a $digest, which turned out to be a big pain point for some developers. The implementation ensures that we don't do more work than needed and that we coalese as much work as possible into a single $digest. The use of $browser instead of setTimeout ensures that we can mock out and control the scheduling of "auto-flush", which should in theory allow all of the existing code and tests to work without negative side-effects. Closes #3539 Closes #2438
2013-08-25fix(mocks): $timeout#flush should not update time when emptyIgor Minar
When $timeout#flush is called with a delay and no task can be flushed within that delay, the current time should not be updated as that gets the mock into an inconsistent state. BREAKING CHANGE: if a tests was written around the buggy behavior the delays might be off now This would typically not be a problem, but because of the previous breaking change in $timeout.flush, the combination of two might be confusing and that's why we are documenting it. Old behavior: ``` doSomething(); //schedules task to execute in 500ms from now doOtherStuff(); //schedules task to execute in 600ms from now try { $timeout.flush(300); // throws "no task to be flushed" exception } catch(e) {}; $time.flush(200); //flushes only doSomething() task ``` New behavior: ``` doSomething(); //schedules task to execute in 500ms from now doOtherStuff(); //schedules task to execute in 600ms from now try { $timeout.flush(300); // throws "no task to be flushed" exception } catch(e) {}; $time.flush(200); // throws "no task to be flushed" exception again // because previous exception didn't move the time forward ``` Fixed test: ``` doSomething(); //schedules task to execute in 500ms from now doOtherStuff(); //schedules task to execute in 600ms from now try { $timeout.flush(300); // throws "no task to be flushed" exception } catch(e) {}; $time.flush(500); // flushes only doSomething() task ```
2013-08-25feat(mocks): make $timeout#flush throw an exception when emptyIgor Minar
When calling $timeout.flush with or without a delay an exception should be thrown if there is nothing to be flushed. This prevents tests from flushing stuff unnecessarily. BREAKING CHANGE: calling $timeout.flush(delay) when there is no task to be flushed within the delay throws an exception now. Please adjust the delay or remove the flush call from your tests as the exception is a signed of a programming error.
2013-08-25test(docs): disable brittle tests that need to be rewrittenIgor Minar
2013-08-25style(animateSpec): remove wsIgor Minar
2013-08-24chore(tests): add Promises/A+ Test Suite to the buildJames Talmage
Closes #3693
2013-08-24fix($q): reject should catch & forward exceptions thrown in errbackIgor Minar
2013-08-23chore(travis): clean up logsVojta Jina
Forward SauceConnect logs and Karma debug logs into a file and print these files at the very end of a build.
2013-08-23chore: use only polling on Travis/SLVojta Jina
2013-08-23chore: run more browsers on Travis (IE8,IE9,IE10,Safari,FF)Vojta Jina
Also instead of running everything in parallel, there are only two parallel tasks: - e2e tests running in the background (only on Chrome) - all the unit tests running sequentially
2013-08-23chore: reorganize test helper files under test/helpersIgor Minar
2013-08-23fix($animate): skip ngAnimate animations if the provided element already has ↵Matias Niemelä
transitions/durations attached to it Closes #3587
2013-08-23fix($animate): only execute a timeout when transitions or keyframe ↵Matias Niemelä
animations are used ngAnimate causes a 1ms flicker on the screen when no CSS animations are present on the element. The solution is to change $animate to only use $timeouts when a duration is found on the element before the transition/keyframe animation takes over. Closes #3613
2013-08-23feat(ngMock): add support for creating dynamic style sheets within test codeMatias Niemelä
2013-08-23test(docs): ignore some of the specs on IEVojta Jina
This target was never un on our Jenkins CI. Some of the specs are using animation stuff, that IE does not support, so I'm disabling them.
2013-08-23test: rename / remove duplicate unit testsVojta Jina
2013-08-23fix($sniffer): history problems on Boxee boxDusan Bartos
History API not working properly on Boxee box browser (old Webkit) problem similar to the one on Android < 4
2013-08-23chore(ngdocs): fix the version jumperMatias Niemelä
correct the ordering and make gen-docs prepare the list of versions during the build process
2013-08-22revert: fix($sce): allow IE7 standards mode to pass non-quirks mode testChirayu Krishnappa
This reverts commit 637c9b1611c5a75a42048ee1c591521c7031751a. (ref #3633 and #3646) The minimum bar for $sce is IE8 in standards mode. IE7 standards mode is not supported. If you must support IE7, you should disable $sce completely. angular.module('ie7support', []).config(function($sceProvider) { // Completely disable SCE to support IE7. $sceProvider.enabled(false); });
2013-08-22docs(overview): improve grammarBrian Ford
2013-08-22docs(module): improve the installation instructions for optional modulesBrian Ford
Currently, the documentation does a bad job of explaining the distinction between the services that it provides, and the module itself. Furthermore, the instructions for using optional modules are inconsistent or missing. This commit addresses the problem by ading a new `{@installModule foo}` annotation to the docs generator that inlines the appropriate instructions based on the name of the module.
2013-08-22docs(changelog): release notes for 1.0.8 bubble-burstIgor Minar
2013-08-22docs(guide): warn about module creation versus retrievalghodss
Updated Module documentation to include the suggestion of the top-rated comment: "This documentation should warn that "angular.module('myModule', [])" always creates a new module, but "angular.module('myModule')" always retrieves an existing reference."
2013-08-22docs(guide): grammatical corrections to Form and Control definitionsMarcel Morgan
2013-08-21fix($q): fix forwarding resolution when callbacks aren't functionsBrian Ford
Uses the changes from @jamestalmage's fix in #3535. (thanks!) Closes #3535
2013-08-21fix(docs): Replace missing end tilde in resource docs for minerr.Adam Shannon
2013-08-21fix(package.json): use full version numbers when interpolatingMichał Gołębiowski
When using less than 3 numbers in npm package version together with tilde interpolation, it lets major version upgrades, e.g. "~0.10" means at least 0.10 and less than 1.0; this pattern would match e.g. 0.11, 0.12 etc. Besides, some package.json dependencies were upgraded.
2013-08-21docs(tutorial): update step_00.ngdocgdennie
Clarify the little snippet on dash vs camelCase html to directive naming pattern Closes #3550
2013-08-21docs(angular.module): improve docsSequoia McDowell
it wasn't clear before that if given the same name a second time this method RETRIEVES an EXISTING module. Not even sure if my description is accurate, hoping someone will either confirm and merge or clear it up. Closes #3666
2013-08-21docs(tutorial): fix links in step 00Igor Minar
2013-08-21Update step_00.ngdocYang Pengcheng
the <a> is incorrect. there is no space between "a" and "href"
2013-08-21docs(tutorial): update step_07.ngdocrodbv
"Orthogonal" is a strange word for those without a mathematical/CS background. "Independent" is clearer. Closes #3641
2013-08-21fix($sce): allow IE7 standards mode to pass non-quirks mode testjustinrknowles
Changes documentMode test version to 7 in order to support IE 8 in IE 7 standards mode while still protecting against quirks mode. documentMode returns the following values: 5 - quirks mode, 7 - IE 7 standards mode, 8 - IE 8 standards mode. Closes #3633 Closes #3646
2013-08-20fix(docs): fix diagram in tutorial/step_02Nepoxx
Removes whitespace before image tag as it caused it to be interpreted as a code block. Closes #3668
2013-08-20fix(package.json): add a repository fieldMichał Gołębiowski
The `npm install` command complains about the missing repository field. Closes #3674
2013-08-20fix(ngTransclude): clear the translusion point before transcludingIgor Minar
when the transluded content is being teleported to the translusion point, we should ensure that the translusion point is empty before appending otherwise we end up with junk before the transcluded content
2013-08-20fix(ngTransclude): make the transclusion available to parent post-linkIgor Minar
previously the translusion was appended the the ngTranslude element via $evalAsync which makes the transluded dom unavailable to parent post-linking functions. By appending translusion in linking phase, post-linking functions will be able to access it.