2014-12-22 20:50:10 -05:00
|
|
|
"use strict";
|
|
|
|
var util = require('../../../../tools/perf/util.js');
|
|
|
|
|
|
|
|
describe('ng2 compiler benchmark', function () {
|
|
|
|
|
|
|
|
var URL = 'benchmarks/web/compiler/compiler_benchmark.html';
|
|
|
|
|
|
|
|
afterEach(util.verifyNoErrors);
|
|
|
|
|
|
|
|
it('should log withBindings stats', function() {
|
2014-12-29 19:15:41 -05:00
|
|
|
browser.get(URL);
|
|
|
|
util.runClickBenchmark({
|
2014-12-22 20:50:10 -05:00
|
|
|
buttons: ['#compileWithBindings'],
|
|
|
|
name: browser.params.lang+'.ng2.compile.withBindings'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should log noBindings stats', function() {
|
2014-12-29 19:15:41 -05:00
|
|
|
browser.get(URL);
|
|
|
|
util.runClickBenchmark({
|
2014-12-22 20:50:10 -05:00
|
|
|
buttons: ['#compileNoBindings'],
|
|
|
|
name: browser.params.lang+'.ng2.compile.noBindings'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|