mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
add repeater DSL and fix typo
This commit is contained in:
@@ -40,4 +40,16 @@ describe("DSL", function() {
|
||||
expect(lastDocument.find(':radio:checked').val()).toEqual('female');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('expect', function() {
|
||||
var dslExpect = angular.scenario.dsl.expect;
|
||||
describe('repeater', function() {
|
||||
it('should check the count of repeated elements', function() {
|
||||
dslExpect.repeater('.repeater-row').count.toEqual(2);
|
||||
expect(lastStep.name).toEqual("Expect to see 2 items repeated with selector '.repeater-row'");
|
||||
var html = "<div class='repeater-row'>a</div><div class='repeater-row'>b</div>";
|
||||
executeStep(lastStep, html);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('Runner', function(){
|
||||
expect(spec.name).toEqual('describe name: it should text');
|
||||
});
|
||||
|
||||
it('should camplain on duplicate it', angular.noop);
|
||||
it('should complain on duplicate it', angular.noop);
|
||||
it('should create a failing step if there is a javascript error', function(){
|
||||
var spec;
|
||||
Describe('D1', function(){
|
||||
|
||||
Reference in New Issue
Block a user