refactor(perf): move navigation into test files and rename runSimpleBenchmark

This commit is contained in:
Tobias Bosch
2014-12-29 16:15:41 -08:00
parent 35ac3f3d97
commit 3a80c4197d
8 changed files with 31 additions and 36 deletions

View File

@ -8,16 +8,15 @@ describe('ng1.x compiler benchmark', function () {
afterEach(util.verifyNoErrors);
it('should log withBinding stats', function() {
util.runSimpleBenchmark({
url: URL,
browser.get(URL);
util.runClickBenchmark({
buttons: ['#compileWithBindings'],
name: browser.params.lang+'.ng1.compile.withBindings'
});
});
it('should log noBindings stats', function() {
util.runSimpleBenchmark({
url: URL,
util.runClickBenchmark({
buttons: ['#compileNoBindings'],
name: browser.params.lang+'.ng1.compile.noBindings'
});

View File

@ -8,8 +8,8 @@ describe('ng1.x tree benchmark', function () {
afterEach(util.verifyNoErrors);
it('should log the stats', function() {
util.runSimpleBenchmark({
url: URL,
browser.get(URL);
util.runClickBenchmark({
buttons: ['#destroyDom', '#createDom'],
name: browser.params.lang+'.ng1.tree'
});