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:
Igor Minar 2018-12-25 12:43:37 -08:00 committed by Kara Erickson
parent 51a0bd2e75
commit 8a05199fb9
13 changed files with 0 additions and 159 deletions

View File

@ -1,3 +0,0 @@
{
"directory" : "bower_components"
}

View File

@ -1,6 +0,0 @@
{
"name": "angular",
"dependencies": {
"polymer": "Polymer/polymer#^1.6.0"
}
}

View File

@ -407,7 +407,6 @@ if [[ ${BUILD_ALL} == true && ${TYPECHECK_ALL} == true ]]; then
ln -s ../../../../node_modules/reflect-metadata/Reflect.js . ln -s ../../../../node_modules/reflect-metadata/Reflect.js .
ln -s ../../../../node_modules/rxjs . ln -s ../../../../node_modules/rxjs .
ln -s ../../../../node_modules/angular/angular.js . ln -s ../../../../node_modules/angular/angular.js .
ln -s ../../../../bower_components/polymer .
ln -s ../../../../node_modules/incremental-dom/dist/incremental-dom-cjs.js ln -s ../../../../node_modules/incremental-dom/dist/incremental-dom-cjs.js
) )
travisFoldEnd "copy e2e files" travisFoldEnd "copy e2e files"

View File

@ -185,7 +185,6 @@ and create it if it doesn't exist.
"files.exclude": { "files.exclude": {
"bazel-out": true, "bazel-out": true,
".idea": true, ".idea": true,
".bowerrc": true,
".circleci": true, ".circleci": true,
".github": true, ".github": true,
"dist/**": true, "dist/**": true,

View File

@ -73,18 +73,6 @@ export const Benchmarks: Benchmark[] = [
buttons: CreateDestroyButtons, buttons: CreateDestroyButtons,
ignoreBrowserSynchronization: true, ignoreBrowserSynchronization: true,
}, },
{
id: `deepTree.polymer`,
url: 'all/benchmarks/src/tree/polymer/index.html',
buttons: CreateDestroyButtons,
ignoreBrowserSynchronization: true,
},
{
id: `deepTree.polymer_leaves`,
url: 'all/benchmarks/src/tree/polymer_leaves/index.html',
buttons: CreateDestroyButtons,
ignoreBrowserSynchronization: true,
},
{ {
id: `deepTree.ng1`, id: `deepTree.ng1`,
url: 'all/benchmarks/src/tree/ng1/index.html', url: 'all/benchmarks/src/tree/ng1/index.html',

View File

@ -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>

View File

@ -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>

View File

@ -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'));
}

View File

@ -1,37 +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 {runClickBenchmark, verifyNoBrowserErrors} from '@angular/testing/src/perf_util';
describe('polymer tree benchmark', function() {
const URL = 'benchmarks_external/src/tree/polymer/index.html';
afterEach(verifyNoBrowserErrors);
it('should log the stats (create)', function(done) {
runClickBenchmark({
url: URL,
buttons: ['#destroyDom', '#createDom'],
id: 'polymer.tree.create',
params: [{name: 'depth', value: 9, scale: 'log2'}],
waitForAngular2: false
}).then(done, done.fail);
});
it('should log the stats (update)', function(done) {
runClickBenchmark({
url: URL,
buttons: ['#createDom'],
id: 'polymer.tree.update',
params: [{name: 'depth', value: 9, scale: 'log2'}],
waitForAngular2: false
}).then(done, done.fail);
});
});

View File

@ -11,9 +11,6 @@
<li> <li>
<a href="static_tree/tree_benchmark.html">Static tree benchmark</a> <a href="static_tree/tree_benchmark.html">Static tree benchmark</a>
</li> </li>
<li>
<a href="tree/polymer/index.html">Polymer Tree benchmark</a>
</li>
<li> <li>
<a href="tree/react/index.html">React Tree benchmark</a> <a href="tree/react/index.html">React Tree benchmark</a>
</li> </li>

View File

@ -96,7 +96,6 @@
"@types/jasminewd2": "^2.0.4", "@types/jasminewd2": "^2.0.4",
"@types/minimist": "^1.2.0", "@types/minimist": "^1.2.0",
"@types/systemjs": "0.19.32", "@types/systemjs": "0.19.32",
"bower": "1.8.2",
"browserstacktunnel-wrapper": "2.0.1", "browserstacktunnel-wrapper": "2.0.1",
"clang-format": "1.0.41", "clang-format": "1.0.41",
"cldr": "4.10.0", "cldr": "4.10.0",

View File

@ -41,11 +41,6 @@ travisFoldStart "yarn-install"
travisFoldEnd "yarn-install" travisFoldEnd "yarn-install"
# Install bower packages
travisFoldStart "bower-install"
$(npm bin)/bower install
travisFoldEnd "bower-install"
# Install Chromium # Install Chromium
if [[ ${TRAVIS} && if [[ ${TRAVIS} &&

View File

@ -1065,11 +1065,6 @@ boom@5.x.x:
dependencies: dependencies:
hoek "4.x.x" hoek "4.x.x"
bower@1.8.2:
version "1.8.2"
resolved "https://registry.yarnpkg.com/bower/-/bower-1.8.2.tgz#adf53529c8d4af02ef24fb8d5341c1419d33e2f7"
integrity sha1-rfU1KcjUrwLvJPuNU0HBQZ0z4vc=
brace-expansion@^1.0.0, brace-expansion@^1.1.7: brace-expansion@^1.0.0, brace-expansion@^1.1.7:
version "1.1.11" version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"