Skip to content

Commit

Permalink
Remove extra polymer-legacy.js imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Apr 20, 2018
1 parent 8069dff commit f39aaa8
Show file tree
Hide file tree
Showing 55 changed files with 0 additions and 111 deletions.
1 change: 0 additions & 1 deletion test/perf/binding-expressions.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
</template>

<script type="module">
import '../../polymer-legacy.js';
import { StrictBindingParser } from '../../lib/mixins/strict-binding-parser.js';
import { PolymerElement } from '../../polymer-element.js';
var COUNT = 1000;
Expand Down
1 change: 0 additions & 1 deletion test/perf/perf-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<perf-tester runs="25"></perf-tester>

<script type="module">
import '../../polymer-legacy.js';
document.querySelector('perf-tester').tests = [
'binding-expressions.html'
];
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/data-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<body>

<script type="module">
import '../../polymer-legacy.js';
window.emojiByType = {
a: '😎',
b: '💰',
Expand Down Expand Up @@ -215,7 +214,6 @@ <h3>Table {{index}}:</h3>
</div>
</template>
<script type="module">
import '../../polymer-legacy.js';
import { Polymer, version as version$0 } from '../../lib/utils/boot.js';
var params = document.location.search.substring(1).split('&').map(p=>p.split('='))
.reduce((m, p)=>{return m[p[0]] = p[1], m;}, {});
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/dirty-check.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ <h1>1 + [[foo]] = [[bar]]</h1>
</template>

<script type="module">
import '../../polymer-legacy.js';
import { PolymerElement } from '../../polymer-element.js';
class XHost extends PolymerElement {
static get config() {
Expand Down Expand Up @@ -54,7 +53,6 @@ <h1>1 + [[foo]] = [[bar]]</h1>
<x-host id="host"></x-host>

<script type="module">
import '../../polymer-legacy.js';
var obj = {foo: true};
host.obj = obj;
host.obj = obj;
Expand Down
3 changes: 0 additions & 3 deletions test/smoke/disable-upgrade.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
</head>
<body>
<script type="module">
import '../../polymer-legacy.js';
import { DisableUpgradeMixin } from '../../lib/mixins/disable-upgrade-mixin.js';
const ogDefine = window.customElements.ogDefine = window.customElements.define;
window.customElements.defineWithDisabled = function(name, constructor) {
Expand All @@ -32,7 +31,6 @@ <h2>[[prop]]</h2>
</template>

<script type="module">
import '../../polymer-legacy.js';
import '../../lib/mixins/disable-upgrade-mixin.js';
import { PolymerElement } from '../../polymer-element.js';
class Disabled extends PolymerElement {
Expand Down Expand Up @@ -76,7 +74,6 @@ <h3>x-disabled with disable-upgrade</h3>
</template>

<script type="module">
import '../../polymer-legacy.js';
import '../../lib/mixins/disable-upgrade-mixin.js';
import { PolymerElement } from '../../polymer-element.js';

Expand Down
1 change: 0 additions & 1 deletion test/smoke/disabled-attr-gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
</div>
</template>
<script type="module">
import '../../polymer-legacy.js';
import { GestureEventListeners } from '../../lib/mixins/gesture-event-listeners.js';
import { PolymerElement } from '../../polymer-element.js';
class XDisabled extends GestureEventListeners(PolymerElement) {
Expand Down
1 change: 0 additions & 1 deletion test/smoke/dom-if.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

<!-- Uncomment for class syntax -->
<script type="module">
import '../../polymer-legacy.js';
import { PolymerElement } from '../../polymer-element.js';
class MyElement extends PolymerElement {
static get is() { return 'my-element'; }
Expand Down
1 change: 0 additions & 1 deletion test/smoke/gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<button onclick="console.log('This is working after a few clicks')">Click last</button>

<script type="module">
import '../../polymer-legacy.js';
import { version } from '../../lib/utils/boot.js';
console.log("Using: " + version);
console.log("Ready to start bug demo");
Expand Down
1 change: 0 additions & 1 deletion test/smoke/ordering-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<body>

<script type="module">
import '../../polymer-legacy.js';
import { PolymerElement } from '../../polymer-element.js';
class XA extends PolymerElement {
static get template() {
Expand Down
1 change: 0 additions & 1 deletion test/smoke/passive-gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<script type="module">
import '../../polymer-legacy.js';
import { setPassiveTouchGestures } from '../../lib/utils/settings.js';
setPassiveTouchGestures(true);
</script>
Expand Down
1 change: 0 additions & 1 deletion test/unit/array-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
</test-fixture>

<script type="module">
import '../../polymer-legacy.js';
import './array-selector-elements.js';
suite('single selection', function() {

Expand Down
1 change: 0 additions & 1 deletion test/unit/attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
</test-fixture>

<script type="module">
import '../../polymer-legacy.js';
import './attributes-elements.js';
suite('create-time deserialization', function() {
function testAttributesMatchDefaults(element) {
Expand Down
3 changes: 0 additions & 3 deletions test/unit/configure.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
</head>
<body>
<script type="module">
import '../../polymer-legacy.js';
window.configureBehavior = {

changeHandlerCount: 0,
Expand Down Expand Up @@ -259,7 +258,6 @@
</dom-module>

<script type="module">
import '../../polymer-legacy.js';
window.XConfigLazy = {
is: 'x-config-lazy',
properties: {
Expand Down Expand Up @@ -298,7 +296,6 @@
<div>x-config-lazy-nodefaults</div>
</template>
<script type="module">
import '../../polymer-legacy.js';
window.XConfigLazyNoDefaults = {
is: 'x-config-lazy-nodefaults',
properties: {
Expand Down
1 change: 0 additions & 1 deletion test/unit/css-parse.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
.bar {}
</style>
<script type="module">
import '../../polymer-legacy.js';

function sanitizeCss(text) {
return text.replace(/[\s]+/g, ' ').trim();
Expand Down
1 change: 0 additions & 1 deletion test/unit/custom-style-async.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<x-host id="host"></x-host>

<script type="module">
import '../../polymer-legacy.js';
import { afterNextRender } from '../../lib/utils/render-status.js';
/* global host */

Expand Down
1 change: 0 additions & 1 deletion test/unit/custom-style-scope-cache.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
<cache-element id="cache2"></cache-element>

<script type="module">
import '../../polymer-legacy.js';

suite('custom-style scope cache', function() {

Expand Down
2 changes: 0 additions & 2 deletions test/unit/custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@
</script>

<script type="module">
import '../../polymer-legacy.js';
import './custom-style-import.js';
import { Polymer } from '../../lib/legacy/polymer-fn.js';
Polymer({
Expand All @@ -439,7 +438,6 @@
</script>

<script type="module">
import '../../polymer-legacy.js';
import './custom-style-import.js';
import { updateStyles } from '../../lib/mixins/element-mixin.js';
import { Polymer } from '../../lib/legacy/polymer-fn.js';
Expand Down
6 changes: 0 additions & 6 deletions test/unit/dir.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
</div>
</template>
<script type="module">
import '../../polymer-legacy.js';
import { DirMixin } from '../../lib/mixins/dir-mixin.js';
import { PolymerElement } from '../../polymer-element.js';
class XInnerDir extends DirMixin(PolymerElement) {
Expand Down Expand Up @@ -87,7 +86,6 @@
<x-inner-dir></x-inner-dir>
</template>
<script type="module">
import '../../polymer-legacy.js';
import { DirMixin } from '../../lib/mixins/dir-mixin.js';
import { PolymerElement } from '../../polymer-element.js';
class XDir extends DirMixin(PolymerElement) {
Expand All @@ -110,7 +108,6 @@
</style>
</template>
<script type="module">
import '../../polymer-legacy.js';
import '../../lib/mixins/dir-mixin.js';
import { Polymer } from '../../lib/legacy/polymer-fn.js';
Polymer({is: 'x-dir-legacy'});
Expand All @@ -136,7 +133,6 @@
</test-fixture>

<script type="module">
import '../../polymer-legacy.js';
import '../../lib/mixins/dir-mixin.js';
import { PolymerElement } from '../../polymer-element.js';
class OtherElement extends PolymerElement {}
Expand Down Expand Up @@ -167,7 +163,6 @@
</div>
</template>
<script type="module">
import '../../polymer-legacy.js';
import { DirMixin } from '../../lib/mixins/dir-mixin.js';
import { PolymerElement } from '../../polymer-element.js';
class XComplicated extends DirMixin(PolymerElement) {
Expand All @@ -186,7 +181,6 @@
</test-fixture>

<script type="module">
import '../../polymer-legacy.js';
import '../../lib/mixins/dir-mixin.js';
function assertComputed(node, expected, property = 'border-top-width') {
let actual = getComputedStyle(node).getPropertyValue(property).trim();
Expand Down
5 changes: 0 additions & 5 deletions test/unit/disable-upgrade.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ <h2 id="element">[[prop]]</h2>
</template>

<script type="module">
import '../../polymer-legacy.js';
import { DisableUpgradeMixin } from '../../lib/mixins/disable-upgrade-mixin.js';
import { PolymerElement } from '../../polymer-element.js';
const Disabled = DisableUpgradeMixin(class extends PolymerElement {
Expand Down Expand Up @@ -75,7 +74,6 @@ <h2 id="element">[[prop]]</h2>
</template>

<script type="module">
import '../../polymer-legacy.js';
import { DisableUpgradeMixin } from '../../lib/mixins/disable-upgrade-mixin.js';
import { Class as PolymerClass } from '../../lib/legacy/class.js';
import { Polymer } from '../../lib/legacy/polymer-fn.js';
Expand Down Expand Up @@ -130,7 +128,6 @@ <h2 id="element">[[prop]]</h2>
</template>

<script type="module">
import '../../polymer-legacy.js';
import '../../lib/mixins/disable-upgrade-mixin.js';
import { PolymerElement } from '../../polymer-element.js';
class MyElement extends PolymerElement {
Expand Down Expand Up @@ -162,7 +159,6 @@ <h2 id="element">[[prop]]</h2>
</template>

<script type="module">
import '../../polymer-legacy.js';
import '../../lib/mixins/disable-upgrade-mixin.js';
import { Polymer } from '../../lib/legacy/polymer-fn.js';
Polymer({
Expand All @@ -181,7 +177,6 @@ <h2 id="element">[[prop]]</h2>
</dom-module>

<script type="module">
import '../../polymer-legacy.js';
import '../../lib/mixins/disable-upgrade-mixin.js';
suite('disable-upgrade', function() {
let el;
Expand Down
3 changes: 0 additions & 3 deletions test/unit/dom-bind.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
</dom-bind>

<script type="module">
import '../../polymer-legacy.js';
import './dom-bind-elements1.js';
import './dom-bind-elements2.js';
/* global earlyDomBind earlyBoundChild declaredXBasic1 declaredXBasic2 declarativeDomBind boundTextDiv container needsHost nonUpgrade*/
Expand Down Expand Up @@ -53,7 +52,6 @@
</dom-bind>

<script type="module">
import '../../polymer-legacy.js';
import './dom-bind-elements1.js';
import './dom-bind-elements2.js';
</script>
Expand All @@ -65,7 +63,6 @@
</div>

<script type="module">
import '../../polymer-legacy.js';
import './dom-bind-elements1.js';
import './dom-bind-elements2.js';
import { DomBind } from '../../lib/elements/dom-bind.js';
Expand Down
2 changes: 0 additions & 2 deletions test/unit/dom-if.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
</div>

<script type="module">
import '../../polymer-legacy.js';
import './dom-if-elements.js';
</script>

Expand All @@ -95,7 +94,6 @@


<script type="module">
import '../../polymer-legacy.js';
import './dom-if-elements.js';
import { flush } from '../../lib/utils/flush.js';
/* global configured individual unconfigured1 unconfigured2 inDocumentContainer inDocumentIf structuredContainer structuredDomIf structuredDomBind outerContainer innerContainer shouldBeRemoved toBeRemoved removalContainer nonUpgrade*/
Expand Down
2 changes: 0 additions & 2 deletions test/unit/dom-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ <h4>x-repeat-chunked</h4>
</div>

<script type="module">
import '../../polymer-legacy.js';
import './dom-repeat-elements.js';
</script>

Expand All @@ -136,7 +135,6 @@ <h4>x-repeat-chunked</h4>
</div>

<script type="module">
import '../../polymer-legacy.js';
import './dom-repeat-elements.js';
import { flush } from '../../lib/utils/flush.js';
import { calculateSplices } from '../../lib/utils/array-splice.js';
Expand Down
1 change: 0 additions & 1 deletion test/unit/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<body>

<script type="module">
import '../../polymer-legacy.js';
import './events-elements.js';
import { afterNextRender } from '../../lib/utils/render-status.js';
suite('Event Listeners', function() {
Expand Down
1 change: 0 additions & 1 deletion test/unit/gestures-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
import '../../polymer-legacy.js';

import { Polymer } from '../../lib/legacy/polymer-fn.js';
import { html } from '../../lib/utils/html-tag.js';
Expand Down
1 change: 0 additions & 1 deletion test/unit/gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<body>

<script type="module">
import '../../polymer-legacy.js';
import './gestures-elements.js';
import { afterNextRender } from '../../lib/utils/render-status.js';
import * as gestures from '../../lib/utils/gestures.js';
Expand Down
1 change: 0 additions & 1 deletion test/unit/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script type="module">
import '../../polymer-legacy.js';
/* global origOwnProps:true */
window.origOwnProps = Object.getOwnPropertyNames(window).reduce(function(props, prop) {
return props[prop] = true && props;
Expand Down
1 change: 0 additions & 1 deletion test/unit/html-tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
</head>
<body>
<script type="module">
import '../../polymer-legacy.js';
import { html, htmlLiteral } from '../../lib/utils/html-tag.js';
import { PolymerElement } from '../../polymer-element.js';
import { Polymer } from '../../lib/legacy/polymer-fn.js';
Expand Down
Loading

0 comments on commit f39aaa8

Please sign in to comment.