fix(build): Use Angular's testability API to wait for end of e2e tests

Closes #3911
This commit is contained in:
Marc Laval
2015-08-27 17:44:59 +02:00
parent 00a4b2e28f
commit 33593cf8a2
19 changed files with 102 additions and 41 deletions
@@ -11,7 +11,8 @@ describe('ng1.x compiler benchmark', function() {
url: URL,
buttons: ['#compileWithBindings'],
id: 'ng1.compile.withBindings',
params: [{name: 'elements', value: 150, scale: 'linear'}]
params: [{name: 'elements', value: 150, scale: 'linear'}],
waitForAngular2: false
}).then(done, done.fail);
});
@@ -20,7 +21,8 @@ describe('ng1.x compiler benchmark', function() {
url: URL,
buttons: ['#compileNoBindings'],
id: 'ng1.compile.noBindings',
params: [{name: 'elements', value: 150, scale: 'linear'}]
params: [{name: 'elements', value: 150, scale: 'linear'}],
waitForAngular2: false
}).then(done, done.fail);
});
@@ -17,7 +17,8 @@ describe('ng1.x largetable benchmark', function() {
{name: 'columns', value: 100, scale: 'sqrt'},
{name: 'rows', value: 20, scale: 'sqrt'},
{name: 'benchmarkType', value: benchmarkType}
]
],
waitForAngular2: false
}).then(done, done.fail);
});
});
@@ -24,7 +24,8 @@ describe('ng-dart1.x naive infinite scroll benchmark', function() {
{name: 'appSize', value: appSize},
{name: 'iterationCount', value: 20, scale: 'linear'},
{name: 'scrollIncrement', value: 40}
]
],
waitForAngular2: false
}).then(done, done.fail);
});
});
@@ -11,7 +11,8 @@ describe('polymer tree benchmark', function() {
url: URL,
buttons: ['#destroyDom', '#createDom'],
id: 'polymer.tree',
params: [{name: 'depth', value: 9, scale: 'log2'}]
params: [{name: 'depth', value: 9, scale: 'log2'}],
waitForAngular2: false
}).then(done, done.fail);
});
@@ -11,7 +11,8 @@ describe('react tree benchmark', function() {
url: URL,
buttons: ['#destroyDom', '#createDom'],
id: 'react.tree.create',
params: [{name: 'depth', value: 9, scale: 'log2'}]
params: [{name: 'depth', value: 9, scale: 'log2'}],
waitForAngular2: false
}).then(done, done.fail);
});
@@ -20,7 +21,8 @@ describe('react tree benchmark', function() {
url: URL,
buttons: ['#createDom'],
id: 'react.tree.update',
params: [{name: 'depth', value: 9, scale: 'log2'}]
params: [{name: 'depth', value: 9, scale: 'log2'}],
waitForAngular2: false
}).then(done, done.fail);
});
@@ -7,9 +7,13 @@ describe('ng1.x tree benchmark', function() {
afterEach(verifyNoBrowserErrors);
it('should log the stats', function(done) {
runClickBenchmark(
{url: URL, buttons: ['#destroyDom', '#createDom'], id: 'ng1.static.tree', params: []})
.then(done, done.fail);
runClickBenchmark({
url: URL,
buttons: ['#destroyDom', '#createDom'],
id: 'ng1.static.tree',
params: [],
waitForAngular2: false
}).then(done, done.fail);
});
});
@@ -11,7 +11,8 @@ describe('ng1.x tree benchmark', function() {
url: URL,
buttons: ['#destroyDom', '#createDom'],
id: 'ng1.tree',
params: [{name: 'depth', value: 9, scale: 'log2'}]
params: [{name: 'depth', value: 9, scale: 'log2'}],
waitForAngular2: false
}).then(done, done.fail);
});