aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario
AgeCommit message (Collapse)Author
2011-07-22chore(license): update license headers + add version numIgor Minar
- fixed copyright overnship - updated copyright years - added @license tag so that closure compiler preserves the header - added version number into headers (finally!)
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-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-06-15Fix test for scenario.Application - should remove old iframeVojta Jina
This behavior was changed by e83465c362c53ac7451183a775456f3112262f6e So this commit should have been part of e83465c362c53ac7451183a775456f3112262f6e Also removed hiding and navigating to about:blank as it makes no sense now...
2011-06-15Fix scenario runner on IE7, IE8Misko Hevery
* add ng:disabled, ng:checked, ng:multiple, ng:readonly, ng:selected * fetch fixed cookbook/advancedform (use ng:disabled) * fire keydown instead of change on input * remove frame when test finishes
2011-06-06added input#val methodDi Peng
Closes #237
2011-06-05renamed $pause to $sleep AND $wait to $pauseDi Peng
Closes #207
2011-05-19JSTD adapter for running e2e testsVojta Jina
Couple of changes into angular.scenario runner: - add autotest config (runs tests when document ready) - update ObjectModel (forwards events) - use only one ObjectModel instance for all outputters - expose error msg and line number in ObjectModel.Spec and ObjectModel.Step - fix generating spec.ids - fix 'html' output so that it does not mutate ObjectModel Couple of changes into docs / generator: - rename copy -> copyTpl - move docs/static into docs/examples (to avoid conflict with jstd proxy) Running all docs e2e tests: ======================================================== 1/ compile angular-scenario, jstd-scenario-adapter >> rake compile 2/ build docs >> rake docs 3/ start jstd server >> ./server-scenario.sh 4/ capture some browser 5/ run node server to serve static content >> node ../lib/nodeserver/server.js 6/ run tests >> ./test-scenario.sh
2011-05-19Don't check url (by HEAD request) before navigateToVojta Jina
Removed angular.scenario.Application.checkUrlStatus_ method and these tests: * should call error handler if status check fails * should perform a HEAD request to verify file existence * should call error handler if status code is less than 200 * should call error handler if status code is greater than 299 * should call error handler if status code is greater than 299
2011-04-25Fix some typos, missing semi-colons, etc...Vojta Jina
This is a combination of 4 commits: * Fix some small typos, missing semi-colons, etc. * Fix comment for angular.scenario.SpecRunner.run method * Fixed some missing semi-colons in cookbook * Fixed missing semi-colon in nodeserver/server.js
2011-04-22fix typo in scenario jsdocsIgor Minar
2011-04-11fix e2e runner's navigateTo when url contains # fragmentIgor Minar
2011-04-09fix build for IE9Igor Minar
all unit tests now pass under IE9
2011-04-08fix e2e runner's browser.location methodsIgor Minar
when we stopped exposing $location service on the root scope the scenario runner was not modified to access the $location service via $service The following apis were affected: - browser().location().hashSearch() - browser().location().hashPath() - browser().location().search()
2011-02-16reformated multiline trinary expressions to have a leading ?/:.Misko Hevery
2011-02-16rewrite of JQuery lite implementation, which now better supports selected setsMisko Hevery
2011-02-16allow jquery to be declared after angular in the script loading orderMisko Hevery
2011-01-24fixed example rendering, add tests for it.Misko Hevery
2011-01-10Rename angular.foreach to angular.forEach to make the api consistent.Igor Minar
camelcase is used for other angular functions and forEach is also used by EcmaScript standard. - rename the internal as well as the external function name - tweak the implementation of the function so that it doesn't clober it self when we extend the angular object with an object that has a forEach property equal to this forEach function Closes #85
2011-01-10bootstrap angular on "document ready" instead of window.onloadIgor Minar
- use jqLite api to bootstrap angular - when jQuery is present DOMContentLoaded or hacks for IE are used - when jqLite is present DOMContentLoaded is used for modern browsers and IE9 and window.onload is used for other browsers. - test html for comparing DOMContentLoaded with window.onload Closes #224
2011-01-07change to keydown from keyup; add delayed $updateViewMisko Hevery
- There was a perceived lag when typing do to the fact that we were listening on the keyup event instead of keydown. The issue with keydown is that we can not read the value of the input field. To solve this we schedule a defer call and perform the model update then. - To prevent calling $eval on root scope too many times as well as to prevent drowning the browser with too many updates we now call the $eval only after 25ms and any additional requests get ignored. The new update service is called $updateView
2011-01-07rename nodeName due to conflicts with jqueryIgor Minar
2010-11-10scenario repeater should match only visible stuffIgor Minar
2010-11-09Support substring matching of bindings with repeater(). Closes #123Elliott Sprehn
2010-11-09Add key/value jQuery methods in a loop. Support 'css' method.Elliott Sprehn
Closes #134
2010-11-07Added documentation for validators.Misko Hevery
BACKWARD INCOMPATIBLE: removed ssn validators, since it is unlikely that most people will need it and if they do, they can added it thorough RegExp
2010-11-03fix the linky filterMisko Hevery
2010-11-03binding() should return value for input/text area, innerHTML for the restIgor Minar
2010-11-03adding textarea() DSL for scenario runnerIgor Minar
2010-11-03adding regular expressions support for binding() DSLIgor Minar
2010-11-02Provide better sandbox error messages, and disallow running from file:// URLsElliott Sprehn
2010-11-02Make future names consistent and handle falsy values in jQuery generated ↵Elliott Sprehn
methods properly
2010-11-01Add browser().reload() to simulate a refresh from a userElliott Sprehn
2010-11-01Provide browser DSL with location() to expect the iframe URL parts. Also ↵Elliott Sprehn
move navigateTo() under the browser DSL.
2010-10-29Auto generate all the jQuery get/set methodsElliott Sprehn
2010-10-29Check if file exists (not a 404) and that document is accessible and not ↵Elliott Sprehn
using file:// URLs in Application
2010-10-28add optional label to dsl with selectors to improve test and output readabilityAndres Ornelas
e.g. Before: code: element('.actions ul li a').click(); output: element .actions ul li a click After code: element('.actions ul li a', "'Configuration' link").click(); output: element 'Configuration' link ( .actions ul li a ) click
2010-10-27Correctly fail tests if no binding matches and add better test cases for ↵Elliott Sprehn
failure behavior.
2010-10-27Fix failing tests for ie, and mark elements as ng-widget, ng-directive, and ↵Misko Hevery
ng-binding
2010-10-27Revert performance optimization of using setTimeout in SpecRunner every 10 ↵Elliott Sprehn
steps. Breaks loading partials
2010-10-26fixes IE related failures, and form submit event handling in ieMisko Hevery
2010-10-26Lots of bug fixes in the scenario runner and a bunch of new features.Elliott Sprehn
- By default the runner now creates multiple output formats as it runs. Nodes are created in the DOM with ids: json, xml, and html. ex. $('#json').html() => json output of the runner ex. $('#xml').html() => json output of the runner $result is also an object tree result. The permitted formats are html,json,xml,object. If you don't want certain formats you can select specific ones with the new ng:scenario-output attribute on the script tag. <script src="angular-scenario.js" ng:scenario-output="xml,json"> - Added element(...).count() that returns the number of matching elements for the selector. - repeater(...).count() now returns 0 if no elements matched which can be used to check if a repeater is empty. - Added toBe() matcher that does strict equality with === - Implement iit and ddescribe. If iit() is used instead of it() then only that test will run. If ddescribe() is used instead of describe() them only it() statements inside of it will run. Several iit/ddescribe() blocks can be used to run isolated tests. - Implement new event based model for SpecRunner. You can now listen for events in the runner. This is useful for writing your own UI or connecting a remote process (ex. WebDriver). Event callbacks execute on the Runner instance. Events, if fired, will always be in the below order. All events always happen except for Failure and Error events which only happen in error conditions. Events: RunnerBegin SpecBegin(spec) StepBegin(spec, step) StepError(spec, step, error) StepFailure(spec, step, error) StepEnd(spec, step) SpecError(spec, step, error) SpecEnd(spec) RunnerEnd - Only allow the browser to repaint every 10 steps. Cuts 700ms off Firefox in benchmark, 200ms off Chrome. - Bug Fix: Manually navigate anchors on click since trigger wont work in Firefox.
2010-10-22Workaround for http://bugs.jquery.com/ticket/7292Misko Hevery
2010-10-22Horrible IE + jQuery hack to make the tests passMisko Hevery
2010-10-22fixed issue with ie .data() method failing testsMisko Hevery
2010-10-20fix some of the failing ie testsMisko Hevery
2010-10-20Lots of stability and performance updates and UI polish too.Elliott Sprehn
Polish the Scenario Runner UI to include: - a scroll pane that steps appear in since the list can be very long - Collapse successful tests - Show the line where the DSL statements were when there's an error (Chrome, Firefox) Also: - Remove lots angular.bind calls to reduce the amount of stack space used. - Use setTimeout(...,0) to schedule the next future to let the browser breathe and have it repaint the steps. Also prevents overflowing the stack when an it() creates many futures. - Run afterEach() handlers even if the it() block fails. - Make navigateTo() take a function as the second argument so you can compute a URL in the future. - Add wait() DSL statement to allow interactive debugging of tests. - Allow custom jQuery selectors with element(...).query(fn) DSL statement. Known Issues: - All afterEach() handlers run even if a beforeEach() handler fails. Only after handlers for the same level as the failure and above should run.
2010-10-19fixed Scenario.js so that it does not clobber global varsMisko Hevery
2010-10-19fixed testsMisko Hevery
2010-10-19Fix browser triggering in scenario to always do native events.Misko Hevery
- Also fixed angular.suffix for scenarios - refactored click() to browserTrigger() - Fixed Rakefile with CSS and jQuery