chore: format benchmarks

closes #11112
This commit is contained in:
Tobias Bosch
2016-08-26 15:44:05 -07:00
committed by Victor Berchet
parent 61002733bc
commit c377e80670
25 changed files with 248 additions and 345 deletions

View File

@ -11,14 +11,14 @@
</template>
</span>
</template>
<script>
Polymer({
is: 'binary-tree',
properties: {
data: Object
},
leftTree: null,
rightTree: null
});
</script>
</dom-module>
<script>
Polymer({
is: 'binary-tree',
properties: {
data: Object
},
leftTree: null,
rightTree: null
});
</script>

View File

@ -1,7 +1,6 @@
import {bindAction} from '@angular/platform-browser/testing/benchmark_util';
import {buildTree, emptyTree} from '../app/util';
import {
bindAction
} from '@angular/platform-browser/testing/benchmark_util';
declare var Polymer: any;
@ -9,13 +8,9 @@ export function main() {
const rootEl: any = document.querySelector('binary-tree');
rootEl.data = emptyTree();
function destroyDom() {
rootEl.data = emptyTree();
}
function destroyDom() { rootEl.data = emptyTree(); }
function createDom() {
rootEl.data = buildTree();
}
function createDom() { rootEl.data = buildTree(); }
bindAction('#destroyDom', destroyDom);
bindAction('#createDom', createDom);