mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-13 17:23:11 +00:00
Fix broken tests for element dsl
This commit is contained in:
parent
867826c3de
commit
9260f4867a
1 changed files with 2 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ describe("DSL", function() {
|
||||||
expect(future.fulfilled).toBeTruthy();
|
expect(future.fulfilled).toBeTruthy();
|
||||||
}
|
}
|
||||||
it('should find elements on the page and provide jquery api', function() {
|
it('should find elements on the page and provide jquery api', function() {
|
||||||
var future = element('.reports-detail').find();
|
var future = element('.reports-detail');
|
||||||
expect(future.name).toEqual("Find element '.reports-detail'");
|
expect(future.name).toEqual("Find element '.reports-detail'");
|
||||||
timeTravel(future);
|
timeTravel(future);
|
||||||
expect(future.value.text()).
|
expect(future.value.text()).
|
||||||
|
|
@ -168,7 +168,7 @@ describe("DSL", function() {
|
||||||
toEqual('Description : Details...');
|
toEqual('Description : Details...');
|
||||||
});
|
});
|
||||||
it('should find elements with angular syntax', function() {
|
it('should find elements with angular syntax', function() {
|
||||||
var future = element('{{report.description}}').find();
|
var future = element('{{report.description}}');
|
||||||
expect(future.name).toEqual("Find element '{{report.description}}'");
|
expect(future.name).toEqual("Find element '{{report.description}}'");
|
||||||
timeTravel(future);
|
timeTravel(future);
|
||||||
expect(future.value.text()).toEqual('Details...');
|
expect(future.value.text()).toEqual('Details...');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue