2014-12-22 20:50:10 -05:00
|
|
|
"use strict";
|
|
|
|
var util = require('../../../../tools/perf/util.js');
|
|
|
|
|
|
|
|
describe('ng2 element injector benchmark', function () {
|
|
|
|
|
|
|
|
var URL = 'benchmarks/web/element_injector/element_injector_benchmark.html';
|
|
|
|
|
|
|
|
afterEach(util.verifyNoErrors);
|
|
|
|
|
|
|
|
it('should log the stats for instantiate', function() {
|
2014-12-29 19:15:41 -05:00
|
|
|
browser.get(URL);
|
|
|
|
util.runClickBenchmark({
|
2014-12-22 20:50:10 -05:00
|
|
|
buttons: ['#instantiate'],
|
|
|
|
name: browser.params.lang+'.ng2.elementInjector.instantiate'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should log the stats for instantiateDirectives', function() {
|
2014-12-29 19:15:41 -05:00
|
|
|
browser.get(URL);
|
|
|
|
util.runClickBenchmark({
|
2014-12-22 20:50:10 -05:00
|
|
|
buttons: ['#instantiateDirectives'],
|
|
|
|
name: browser.params.lang+'.ng2.elementInjector.instantiateDirectives'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|