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.
This commit is contained in:
Elliott Sprehn
2010-10-08 16:43:40 -07:00
parent 0f104317df
commit 03df6cbddb
32 changed files with 2004 additions and 925 deletions

View File

@@ -9,7 +9,7 @@ load:
- src/JSON.js
- src/*.js
- test/testabilityPatch.js
- src/scenario/Runner.js
- src/scenario/Scenario.js
- src/scenario/*.js
- test/angular-mocks.js
- test/scenario/*.js