Misko Hevery
a0ac6725ed
fixed Scenario.js so that it does not clobber global vars
2010-10-19 16:25:23 -07:00
Misko Hevery
406373b5db
fixed tests
2010-10-19 16:14:16 -07:00
Misko Hevery
01c7abab35
Fix browser triggering in scenario to always do native events.
...
- Also fixed angular.suffix for scenarios
- refactored click() to browserTrigger()
- Fixed Rakefile with CSS and jQuery
2010-10-19 15:56:53 -07:00
Elliott Sprehn
e7e894a2e3
Significantly clean up the way the scenario DSL works and implement many more DSL statements.
...
- "this" always means the current chain scope inside a DSL
- addFutureAction callbacks now take ($window, $document, done)
- $document has a special method elements() that uses the currently selected nodes in the document as defined by using() statements.
- $document.elements() allows placeholder insertion into selectors to make them more readable.
ex. $document.elements('input[name="$1"]', myVar) will substitute the value of myVar for $1 in the selector. Subsequent arguments are $2 and so on.
- $document.elements() results have a special method trigger(event) which should be used to events. This method implements some hacks to make sure browser UI controls update and the correct angular events fire.
- futures now allow custom formatting. By default any chain that results in a future can use toJson() or fromJson() to convert the future value to and from json. A custom parser can be provided with parsedWith(fn) where fn is a callback(value) that must return the parsed result.
Note: The entire widgets.html UI is now able to be controlled and asserted through DSL statements!!! Victory! :)
2010-10-19 00:45:38 -07:00
Misko Hevery
a36964799b
fixed lint warnings and one flaky test
2010-10-15 13:44:53 -07:00
Elliott Sprehn
03df6cbddb
New Angular Scenario runner and DSL system with redesigned HTML UI.
...
Uses the Jasmine syntax for tests, ex:
describe('widgets', function() {
it('should verify that basic widgets work', function(){
navigateTo('widgets.html');
input('text.basic').enter('Carlos');
expect(binding('text.basic')).toEqual('Carlos');
input('text.basic').enter('Carlos Santana');
expect(binding('text.basic')).not().toEqual('Carlos Boozer');
input('text.password').enter('secret');
expect(binding('text.password')).toEqual('secret');
expect(binding('text.hidden')).toEqual('hiddenValue');
expect(binding('gender')).toEqual('male');
input('gender').select('female');
expect(binding('gender')).toEqual('female');
});
});
Note: To create new UI's implement the interface shown in angular.scenario.ui.Html.
2010-10-14 09:47:39 -07:00
Misko Hevery
27868f17de
cleanup underscore.js form rakefile
2010-09-23 13:53:38 +02:00
Misko Hevery
894ffadc8c
Fixed all trivial jslint violations
2010-09-14 23:22:15 +02:00
Misko Hevery
5ddd8d9586
stringify names for better compression, remove dead functions, removed underscore.js compatibility
2010-08-18 17:26:33 -07:00
Shyam Seshadri
aa656253b9
Fix issue with jquery not being visible in production
2010-08-13 18:23:39 -07:00
Shyam Seshadri
675978f41f
Provide all jquery functions as futures
2010-08-13 12:05:50 -07:00
Shyam Seshadri
2767d7773f
Revert click dsl, since what is returned by element is a jquery object
2010-08-13 09:45:56 -07:00
Shyam Seshadri
577ddaa539
Pull in Rajat's changes to add click and url checking dsl
2010-08-13 09:31:06 -07:00
Shyam Seshadri
b27fb8a644
Fix toEqual matcher to use angular.equals instead of simple == comparison, which breaks down for arrays and objects
2010-08-11 11:42:04 -07:00
Shyam Seshadri
567341c10f
modify element dsl to understand angular bindings and return jquery object for further checking
2010-08-11 10:54:11 -07:00
Shyam Seshadri
e7b9095655
Change repeater dsl to collect and return an array of string contents based on match
2010-08-10 19:10:43 -07:00
Shyam Seshadri
c4c96c5c69
Fix test breakage in Chrome. Chrome JQuery doesn't like malformed table html apparently
2010-08-10 13:42:50 -07:00
Shyam Seshadri
86c2ef87d5
Inject jquery into future scope, and rename outer scenario to _window, which is what it is
2010-08-10 10:48:31 -07:00
Shyam Seshadri
21d2b43e6c
Add element DSL, to find an element. Has knowledge of finding ng:bind elements and grabbing their contents.
2010-08-09 17:55:01 -07:00
Andres Ornelas
de8d0984c8
added repeater.collect to E2E DSL
2010-08-06 17:28:47 -07:00
Andres Ornelas
989cffb435
fix build breakage by returning the added futures in the DSL
2010-08-05 16:03:47 -07:00
Andres Ornelas
643b43ffe5
Added new files to Rakefile and consistently used .addFuture
2010-08-05 15:44:54 -07:00
Andres Ornelas
6d0eeda1e2
added MatcherSpec
2010-08-04 12:36:53 -07:00
Andres Ornelas
26ed747588
test passing with repeater.count
2010-08-04 11:47:10 -07:00
Andres Ornelas
ef88eb9a71
refactoring done but Expect not working
2010-07-27 17:04:37 -07:00
Andres Ornelas
32c4aee1cd
before pulling testcontext out
2010-07-27 15:53:55 -07:00
Andres Ornelas
da95010350
stable before refactoring
2010-07-27 15:43:14 -07:00
Andres Ornelas
b42072733c
Merge branch 'master' of github.com:angular/angular.js into future
2010-07-27 10:44:46 -07:00
Misko Hevery
00bb790392
fixed IE tests
2010-07-08 15:55:00 -07:00
Andres Ornelas
9d8646b0d1
all tests passing with new futures concept
2010-06-30 09:51:54 -07:00
Andres Ornelas
e664186f93
initial concept
2010-06-29 15:43:02 -07:00
Andres Ornelas
70c3dc8166
expose e2e test results
2010-06-22 17:15:14 -07:00
Andres Ornelas
d0a468153d
fixed undefined testWindow bug
2010-06-09 15:38:56 -07:00
Andres Ornelas
85fac4d78c
add beforeEach and afterEach to scenario DSL
2010-06-09 14:12:54 -07:00
Andres Ornelas
f6a405c283
change repeater count expectation wording
2010-06-09 13:30:54 -07:00
Andres Ornelas
fe03ea0d1f
add repeater DSL and fix typo
2010-06-09 12:35:40 -07:00
Andres Ornelas
cb5d211927
extracted switchRouteMatcher and added necessary libraries to angular-scenario
2010-05-27 11:26:23 -07:00
Andres Ornelas
177873df86
navigate to scenario waits for outstanding requests to clear before proceeding.
2010-05-26 16:09:48 -07:00
Andres Ornelas
0d41c86522
fixed broken jstd conf file
2010-05-26 15:17:28 -07:00
Misko Hevery
5992e81b2e
added rake task to create a single file for scenario runner
2010-05-25 14:23:52 -07:00
Andres Ornelas
2cce1ffc15
fixed collapsed issue
2010-05-25 13:05:23 -07:00
Andres Ornelas
55c0767f16
added dsl tests and select method
2010-05-24 17:48:17 -07:00
Andres Ornelas
3fab5d9879
added error handling on scenario definition
2010-05-24 15:25:30 -07:00
Andres Ornelas Mesta
f6c67e28c9
happy
2010-05-24 13:54:32 -07:00
Misko Hevery
e3368e12a6
semi working state
2010-05-20 16:55:47 -07:00
Misko Hevery
5215e2095c
basic end to end runner
2010-05-20 15:55:41 -07:00
Misko Hevery
22d93e0a3b
fixes to enable ie
2010-04-20 18:14:13 -07:00
Misko Hevery
9f9bdcf3d1
lint
2010-04-19 14:41:36 -07:00
Misko Hevery
1b976dc27d
tweeter demo script
2010-03-23 15:18:32 -07:00
Adam Abrons
39c6c5975b
get scenarios running again - open Runner.html in a browser to run them
2010-03-15 17:02:54 -07:00