2016-08-26 15:27:24 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
2015-05-30 00:40:15 -04:00
|
|
|
|
2016-08-26 15:27:24 -04:00
|
|
|
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
|
2015-05-30 00:40:15 -04:00
|
|
|
|
2016-08-26 15:27:24 -04:00
|
|
|
const useBundles = false;
|
2015-05-30 00:40:15 -04:00
|
|
|
|
2016-08-26 15:27:24 -04:00
|
|
|
describe('tree benchmark', function() {
|
2015-05-30 00:40:15 -04:00
|
|
|
|
2016-08-26 15:27:24 -04:00
|
|
|
afterEach(verifyNoBrowserErrors);
|
2015-05-30 00:40:15 -04:00
|
|
|
|
2016-08-26 15:27:24 -04:00
|
|
|
it('should work for the baseline', function() {
|
|
|
|
browser.ignoreSynchronization = true;
|
|
|
|
browser.get(`all/benchmarks/src/tree/baseline/index.html?bundles=${useBundles}`);
|
|
|
|
$('#createDom').click();
|
|
|
|
expect($('baseline').getText()).toContain('0');
|
2015-05-30 00:40:15 -04:00
|
|
|
});
|
|
|
|
|
2016-08-26 15:27:24 -04:00
|
|
|
it('should work for ng2', function() {
|
|
|
|
browser.get(`all/benchmarks/src/tree/ng2/index.html?bundles=${useBundles}`);
|
|
|
|
$('#createDom').click();
|
|
|
|
expect($('app').getText()).toContain('0');
|
2015-05-30 00:40:15 -04:00
|
|
|
});
|
|
|
|
|
2016-08-26 15:27:24 -04:00
|
|
|
it('should work for polymer', function() {
|
|
|
|
browser.ignoreSynchronization = true;
|
|
|
|
browser.get(`all/benchmarks/src/tree/polymer/index.html?bundles=${useBundles}`);
|
|
|
|
$('#createDom').click();
|
|
|
|
expect($('#app').getText()).toContain('0');
|
2015-05-30 00:40:15 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|