mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 15:40:22 +00:00
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.
25 lines
532 B
Text
25 lines
532 B
Text
server: http://localhost:9876
|
|
|
|
load:
|
|
- lib/jasmine/jasmine-0.10.3.js
|
|
- lib/jasmine-jstd-adapter/JasmineAdapter.js
|
|
- lib/jquery/jquery-1.4.2.js
|
|
- test/jquery_alias.js
|
|
- src/Angular.js
|
|
- src/JSON.js
|
|
- src/*.js
|
|
- test/testabilityPatch.js
|
|
- src/scenario/Scenario.js
|
|
- src/scenario/*.js
|
|
- test/angular-mocks.js
|
|
- test/scenario/*.js
|
|
- test/*.js
|
|
|
|
exclude:
|
|
- src/angular.prefix
|
|
- src/angular.suffix
|
|
- src/angular-bootstrap.js
|
|
- src/AngularPublic.js
|
|
- src/scenario/bootstrap.js
|
|
- test/jquery_remove.js
|
|
|