refactor(benchmarks): make setup nicer
- simplify and correct systemjs config - remove deep imports into Ng2 packages to work with bundles - have separate Ng2 and Polymer bootstrap files
This commit is contained in:
@ -20,10 +20,10 @@
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<binary-tree id="app"></binary-tree>
|
||||
<binary-tree id="root"></binary-tree>
|
||||
</div>
|
||||
|
||||
<script src="../../bootstrap.js"></script>
|
||||
<script src="../../bootstrap_polymer.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,14 +1,13 @@
|
||||
import {bindAction} from '@angular/platform-browser/testing/benchmark_util';
|
||||
|
||||
import {buildTree, emptyTree} from '../app/util';
|
||||
import {bindAction} from '../../util';
|
||||
import {buildTree, emptyTree} from '../util';
|
||||
|
||||
declare var Polymer: any;
|
||||
|
||||
export function main() {
|
||||
const rootEl: any = document.querySelector('binary-tree');
|
||||
rootEl.data = emptyTree();
|
||||
rootEl.data = emptyTree;
|
||||
|
||||
function destroyDom() { rootEl.data = emptyTree(); }
|
||||
function destroyDom() { rootEl.data = emptyTree; }
|
||||
|
||||
function createDom() { rootEl.data = buildTree(); }
|
||||
|
||||
|
Reference in New Issue
Block a user