test: remove bower and polymer benchmarks (#27931)
the polymer benchmarks are super old and not relevant any more and these benchmarks were the only reason why we needed bower at all so long, bower. thanks for all the fish. PR Close #27931
This commit is contained in:

committed by
Kara Erickson

parent
51a0bd2e75
commit
8a05199fb9
@ -1,22 +0,0 @@
|
||||
<link rel="import" href="/all/benchmarks/vendor/polymer/polymer.html">
|
||||
<dom-module id="binary-tree">
|
||||
<template>
|
||||
<span style="[[data.style]]"> {{data.value}} </span>
|
||||
<template is="dom-if" if="[[data.left]]">
|
||||
<binary-tree data="[[data.left]]"></binary-tree>
|
||||
</template>
|
||||
<template is="dom-if" if="[[data.right]]">
|
||||
<binary-tree data="[[data.right]]"></binary-tree>
|
||||
</template>
|
||||
</template>
|
||||
<script>
|
||||
Polymer({
|
||||
is: 'binary-tree',
|
||||
properties: {
|
||||
data: Object
|
||||
},
|
||||
leftTree: null,
|
||||
rightTree: null
|
||||
});
|
||||
</script>
|
||||
</dom-module>
|
@ -1,34 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<link rel="import" href="binary_tree.html">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h2>Params</h2>
|
||||
<form>
|
||||
Depth:
|
||||
<input type="number" name="depth" placeholder="depth" value="9">
|
||||
<br>
|
||||
<button>Apply</button>
|
||||
</form>
|
||||
|
||||
<h2>Polymer Tree Benchmark</h2>
|
||||
<p>
|
||||
<button id="destroyDom">destroyDom</button>
|
||||
<button id="createDom">createDom</button>
|
||||
<button id="updateDomProfile">profile updateDom</button>
|
||||
<button id="createDomProfile">profile createDom</button>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<binary-tree id="root"></binary-tree>
|
||||
</div>
|
||||
|
||||
<script src="../../bootstrap_plain.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,29 +0,0 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
import {bindAction, profile} from '../../util';
|
||||
import {buildTree, emptyTree} from '../util';
|
||||
|
||||
declare var Polymer: any;
|
||||
|
||||
export function main() {
|
||||
const rootEl: any = document.querySelector('binary-tree');
|
||||
rootEl.data = emptyTree;
|
||||
|
||||
function destroyDom() { rootEl.data = emptyTree; }
|
||||
|
||||
function createDom() { rootEl.data = buildTree(); }
|
||||
|
||||
function noop() {}
|
||||
|
||||
bindAction('#destroyDom', destroyDom);
|
||||
bindAction('#createDom', createDom);
|
||||
|
||||
bindAction('#updateDomProfile', profile(createDom, noop, 'update'));
|
||||
bindAction('#createDomProfile', profile(createDom, destroyDom, 'create'));
|
||||
}
|
Reference in New Issue
Block a user