aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngScenario
AgeCommit message (Collapse)Author
2014-02-18style: remove ws and enfore no-trailing-ws jscs ruleIgor Minar
2013-12-30fix(input): prevent double $digest when using jQuery trigger.Michał Gołębiowski
If an event was performed natively, jQuery sets the isTrigger property. When triggering event manually, the field is not present. Manually triggered events are performed synchronously which causes the "$digest already in progress" error. Closes #5293
2013-11-22chore: update copyright year in file headersIgor Minar
2013-11-08fix(ngScenario): correctly disable animations for end 2 end testsPete Bacon Darwin
2013-10-22style: make jshint happyVojta Jina
2013-10-22chore(grunt): add jshint tasksPete Bacon Darwin
2013-10-07fix(ngScenario): remove redundant assignmentPete Bacon Darwin
Closes #4315
2013-09-26feat(browserTrigger): allow support for custom timeStamps in eventsMatias Niemelä
2013-09-25fix(ngScenario): fix error message descriptionPete Bacon Darwin
2013-09-18fix(scenario): include "not " in error messages if test is invertedHubert SABLONNIÈRE
Closes #3840
2013-09-07fix(browserTrigger): do not use document.createEvent methodPete Bacon Darwin
Firefox 23 has deprecated the use of createEvent for transition and animation events. We must now use `new TransitionEvent()` and `new AnimationEvent()` if they are available. But of course IE doesn't support this format correctly so we must wrap the attempt in a try block and revert to document.createEvent if necessary..
2013-09-06fix(ngScenario): provide event parameters as objectMatias Niemelä
BREAKING CHANGE: browserTrigger now uses an eventData object instead of direct parameters for mouse events. To migrate, place the `keys`,`x` and `y` parameters inside of an object and place that as the third parameter for the browserTrigger function.
2013-07-31feat(scenario): expose jQuery for usage outside of angular scenarioAndreas Marek
The global jQuery reference is removed by angular scenario and only a local scoped reference is kept. To make jQuery available for other code, a new reference angular.scenario.jQuery is added.
2013-07-27docs(*): fixed typos and ngdoc parameter namesCarl Danley
2013-07-12fix(ngScenario): select().option(val) should prefer exact value matchStephen Merity
With select(...).option(val) it previously would select the first node which contains the value, even if an exact match was available. This fix prefers exact matches if available, otherwise it reverts to the previous 'contains' behaviour for backwards compatibility. Closes #2856
2013-06-19feat(jqLite): switch bind/unbind to more recent jQuery on/offMichał Gołębiowski
jQuery switched to a completely new event binding implementation as of 1.7.0, centering around on/off methods instead of previous bind/unbind. This patch makes jqLite match this implementation while still supporting previous bind/unbind methods.
2013-05-14feat(scenario): adds mousedown and mouseup event triggers to scenarioAndreas Marek
Added mousedown and mouseup event triggers to scenadio dsl 'element' expression. Added mousedown and mouseup to the custom jquery trigger method to generate real events.
2013-05-08fix(scenario): update to use our angular-scenario.js rather then karmaMisko Hevery
2013-05-08feat($sniffer): Add support for supportsAnimations flag for detecting CSS ↵Matias Niemelä
Animations browser support
2013-04-18test(modules): fix module tests which got disabled by ngMobileIgor Minar
When ngMobile was merged in, we accidentaly included angular-scenario.js in the test file set for modules. Loading this file overrode jasmine's `it` and `describe` global functions which essentially disabled all of ~200 unit tests for wrapped modules. This change refactors the code to run the wrapped module tests. I had to extract browserTrigger from scenario runner in order to achieve this without code duplication.
2013-04-13fix(Scenario): correct bootstrap issue on IEIgor Minar
we need to set the deferred bootstrap flag via window.name after the iframe's src has been set, otherwise IE will reset it to empty string
2013-04-03feat(Scenario): autodisable animations when running e2e testsIgor Minar
animations cause the dom to contain elements that have been removed from the model but are being animated out. we could teach the e2e runner to wait for animations but that would make all tests slower. it should be quite safe to just disable animations automatically when the app is running via the e2e test runner. this change disables only css animations. we should make additional change that disables js animations as well, but since we don't need this right now I'm punting on it.
2013-03-29docs(*): fixed typosPascal Borreli
2013-03-13feat(ngMobile): add ngMobile module with mobile-specific ngClickBraden Shepherdson
Add a new module ngMobile, with mobile/touch-specific directives. Add ngClick, which overrides the default ngClick. This ngClick uses touch events, which are much faster on mobile. On desktop browsers, ngClick responds to click events, so it can be used for portable sites.
2013-02-07fix(scenario): include error messages in XML outputJulie
Fix the XML output of scenario tests so that it properly includes error messages from failing specs.
2013-01-18feat(scenario): add mouseover method to the ngScenario dslPedro Del Gallego
2013-01-16fix(scenario): don't trigger input events on IE9Igor Minar
input.enter() should trigger 'change' rather than 'input' event on IE9 because input events on IE9 are broken and angular doesn't rely on them
2012-12-01feat(e2eRunner): fail when an option to select does not existStephane Bisson
2012-10-31fix(scenario-runner): support data-ng and x-ng based attributesAdam Macejak
Prefixed attributes like data-ng-model and x-ng-model were not being found by the Selector. It was only looking at ng: and ng- prefixed attributes. Added a few tests as well to ensure the aforementioned prefixed attributes are being matched properly. Closes #1020
2012-10-18chore(jstd-scenario-adapter): remove from our repoIgor Minar
since we don't need the adapter for JsTD (testacular contains its own), I'm removing this dead code.
2012-09-11fix(scenario): emit RunnerBegin eventShyam Seshadri
2012-09-11fix(scenario): NPE when no angular loaded in test pageJimmy Zhuo
2012-09-06feat(scenario): add dblclick method to the ngScenario dslPedro Del Gallego
2012-06-12docs(*): simplify doc urlsIgor Minar
we now have two types of namespaces: - true namespace: angular.* - used for all global apis - virtual namespace: ng.*, ngMock.*, ... - used for all DI modules the virual namespaces have services under the second namespace level (e.g. ng.) and filters and directives prefixed with filter: and directive: respectively (e.g. ng.filter:orderBy, ng.directive:ngRepeat) this simplifies urls and makes them a lot shorter while still avoiding name collisions
2012-05-05fix(scenario): make browser().location() working if ng-app on other than <html>Vojta Jina
2012-04-20chore(license): update to googleMisko Hevery
2012-04-12fix(e2eRunner): $browser.location should delegate to apps $locationIgor Minar
previously it would create a new instance which wasn't configured as the one in the app, which resulted in incorrect values being returned in html5 mode with base url set
2012-04-10chore(*): remove dead code and fix code style issuesIgor Minar
2012-04-03feat(ngModel): update model on each key stroke (revert ngModelInstant)Vojta Jina
It turns out that listening only on "blur" event is not sufficient in many scenarios, especially when you use form validation you always had to use ngModelnstant e.g. if you want to disable a button based on valid/invalid form. The feedback we got from our apps as well as external apps is that the ngModelInstant should be the default. In the future we might provide alternative ways of suppressing updates on each key stroke, but it's not going to be the default behavior. Apps already using the ngModelInstant can safely remove it from their templates. Input fields without ngModelInstant directive will start propagating the input changes into the model on each key stroke.
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery