From 232b004285afd5178f8164f83a0bd949ff8e9aa9 Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Mon, 16 Apr 2018 11:13:56 -0700 Subject: [PATCH] Import Polymer function in tests from legacy/polymer-fn.js --- lib/legacy/polymer-fn.js | 2 +- test/smoke/behavior-mixin.html | 2 +- test/smoke/data-table.html | 6 +- test/smoke/passive-gestures.html | 4 +- test/smoke/style-props/src/elements.js | 2 +- test/smoke/style-props/src/scopes.js | 2 +- test/smoke/style-props/src/settings.js | 2 +- test/unit/array-selector-elements.js | 2 +- test/unit/attributes-elements.js | 2 +- test/unit/behaviors.html | 4 +- test/unit/configure.html | 14 +-- test/unit/custom-style-async-import.html | 2 +- test/unit/custom-style-async.html | 2 +- test/unit/custom-style-late.html | 2 +- test/unit/custom-style-scope-cache.html | 2 +- test/unit/custom-style.html | 4 +- test/unit/debounce.html | 2 +- test/unit/dir.html | 4 +- test/unit/disable-upgrade.html | 4 +- test/unit/dom-bind-elements1.js | 2 +- test/unit/dom-bind-elements2.js | 2 +- test/unit/dom-if-elements.js | 2 +- test/unit/dom-repeat-elements.js | 2 +- test/unit/dynamic-imports/dynamic-element.js | 2 +- test/unit/dynamic-imports/inner-element.js | 2 +- test/unit/dynamic-imports/outer-element.html | 2 +- test/unit/events-elements.js | 2 +- test/unit/gestures-elements.js | 2 +- test/unit/globals.html | 4 +- test/unit/html-tag.html | 2 +- test/unit/logging.html | 4 +- test/unit/mixin-behaviors.html | 2 +- test/unit/multi-style.html | 4 +- test/unit/path-effects-elements.js | 2 +- test/unit/path-effects.html | 2 +- test/unit/polymer-dom-observeNodes.html | 24 +++--- test/unit/polymer-dom.html | 8 +- test/unit/property-effects-elements.js | 2 +- test/unit/property-effects.html | 2 +- test/unit/ready-attached-order.html | 10 +-- test/unit/shady-content.html | 36 ++++---- test/unit/shady-dynamic.html | 86 +++++++++---------- test/unit/shady-events.html | 6 +- test/unit/shady-unscoped-style.html | 6 +- test/unit/shady.html | 2 +- test/unit/styling-cross-scope-apply.html | 26 +++--- .../styling-cross-scope-unknown-host.html | 4 +- test/unit/styling-cross-scope-var.html | 48 +++++------ test/unit/styling-import.html | 6 +- test/unit/styling-scoped.html | 34 ++++---- test/unit/sub/resolveurl-elements.js | 2 +- test/unit/sub/x-test.html | 4 +- test/unit/template-whitespace.html | 12 +-- test/unit/templatize-elements.js | 4 +- 54 files changed, 212 insertions(+), 212 deletions(-) diff --git a/lib/legacy/polymer-fn.js b/lib/legacy/polymer-fn.js index 2296c820d7..3651dcc44c 100644 --- a/lib/legacy/polymer-fn.js +++ b/lib/legacy/polymer-fn.js @@ -9,7 +9,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN */ import { Class } from './class.js'; -import { Polymer } from '../utils/boot.js'; +import '../utils/boot.js'; /** * Legacy class factory and registration helper for defining Polymer diff --git a/test/smoke/behavior-mixin.html b/test/smoke/behavior-mixin.html index 3280def318..b8cdaa7873 100644 --- a/test/smoke/behavior-mixin.html +++ b/test/smoke/behavior-mixin.html @@ -23,7 +23,7 @@ - \ No newline at end of file + diff --git a/test/smoke/style-props/src/elements.js b/test/smoke/style-props/src/elements.js index dbb1fb27c0..a0663a98a1 100644 --- a/test/smoke/style-props/src/elements.js +++ b/test/smoke/style-props/src/elements.js @@ -1,5 +1,5 @@ import './elements-defaults.js'; -import { Polymer } from '../../../../lib/utils/boot.js'; +import { Polymer } from '../../../../lib/legacy/polymer-fn.js'; import { html } from '../../../../lib/utils/html-tag.js'; Polymer({ _template: html` diff --git a/test/smoke/style-props/src/scopes.js b/test/smoke/style-props/src/scopes.js index 97d7eee9f0..60d2a2c3a4 100644 --- a/test/smoke/style-props/src/scopes.js +++ b/test/smoke/style-props/src/scopes.js @@ -1,6 +1,6 @@ import './settings.js'; import './elements.js'; -import { Polymer } from '../../../../lib/utils/boot.js'; +import { Polymer } from '../../../../lib/legacy/polymer-fn.js'; import { html } from '../../../../lib/utils/html-tag.js'; import { dom } from '../../../../lib/legacy/polymer.dom.js'; diff --git a/test/smoke/style-props/src/settings.js b/test/smoke/style-props/src/settings.js index 69deaf5653..40bda96654 100644 --- a/test/smoke/style-props/src/settings.js +++ b/test/smoke/style-props/src/settings.js @@ -1,4 +1,4 @@ -import { Polymer } from '../../../../lib/utils/boot.js'; +import { Polymer } from '../../../../lib/legacy/polymer-fn.js'; import { html } from '../../../../lib/utils/html-tag.js'; const $_documentContainer = document.createElement('div'); $_documentContainer.setAttribute('style', 'display: none;'); diff --git a/test/unit/array-selector-elements.js b/test/unit/array-selector-elements.js index 6f8b566280..85c774f37d 100644 --- a/test/unit/array-selector-elements.js +++ b/test/unit/array-selector-elements.js @@ -7,7 +7,7 @@ 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 } from '../../lib/utils/boot.js'; +import { Polymer } from '../../lib/legacy/polymer-fn.js'; Polymer({ is: 'observe-el', diff --git a/test/unit/attributes-elements.js b/test/unit/attributes-elements.js index 96a69ea21c..13070add90 100644 --- a/test/unit/attributes-elements.js +++ b/test/unit/attributes-elements.js @@ -7,7 +7,7 @@ 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 } from '../../lib/utils/boot.js'; +import { Polymer } from '../../lib/legacy/polymer-fn.js'; import { html } from '../../lib/utils/html-tag.js'; let PropertyTypeBehavior = { diff --git a/test/unit/behaviors.html b/test/unit/behaviors.html index 35c26edaa3..cc47cbb1aa 100644 --- a/test/unit/behaviors.html +++ b/test/unit/behaviors.html @@ -24,7 +24,7 @@ @@ -261,4 +261,4 @@ }); - \ No newline at end of file + diff --git a/test/unit/disable-upgrade.html b/test/unit/disable-upgrade.html index 77c3a7a99e..14dd626de4 100644 --- a/test/unit/disable-upgrade.html +++ b/test/unit/disable-upgrade.html @@ -163,7 +163,7 @@

[[prop]]

- \ No newline at end of file + diff --git a/test/unit/dom-bind-elements1.js b/test/unit/dom-bind-elements1.js index 3e471cd3d6..bbb908bc65 100644 --- a/test/unit/dom-bind-elements1.js +++ b/test/unit/dom-bind-elements1.js @@ -7,7 +7,7 @@ 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 } from '../../lib/utils/boot.js'; +import { Polymer } from '../../lib/legacy/polymer-fn.js'; import { html } from '../../lib/utils/html-tag.js'; Polymer({ diff --git a/test/unit/dom-bind-elements2.js b/test/unit/dom-bind-elements2.js index 4ae2439458..4993e8c2f6 100644 --- a/test/unit/dom-bind-elements2.js +++ b/test/unit/dom-bind-elements2.js @@ -7,7 +7,7 @@ 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 } from '../../lib/utils/boot.js'; +import { Polymer } from '../../lib/legacy/polymer-fn.js'; Polymer({ is: 'x-needs-host', diff --git a/test/unit/dom-if-elements.js b/test/unit/dom-if-elements.js index dc54d1d557..5f851548ca 100644 --- a/test/unit/dom-if-elements.js +++ b/test/unit/dom-if-elements.js @@ -7,7 +7,7 @@ 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 } from '../../lib/utils/boot.js'; +import { Polymer } from '../../lib/legacy/polymer-fn.js'; import { html } from '../../lib/utils/html-tag.js'; Polymer({ diff --git a/test/unit/dom-repeat-elements.js b/test/unit/dom-repeat-elements.js index 263e68ee02..46e2bb73f7 100644 --- a/test/unit/dom-repeat-elements.js +++ b/test/unit/dom-repeat-elements.js @@ -7,7 +7,7 @@ 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 } from '../../lib/utils/boot.js'; +import { Polymer } from '../../lib/legacy/polymer-fn.js'; import { html } from '../../lib/utils/html-tag.js'; import { MutableData } from '../../lib/mixins/mutable-data.js'; diff --git a/test/unit/dynamic-imports/dynamic-element.js b/test/unit/dynamic-imports/dynamic-element.js index 34a57bb43e..71bb347809 100644 --- a/test/unit/dynamic-imports/dynamic-element.js +++ b/test/unit/dynamic-imports/dynamic-element.js @@ -9,7 +9,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN */ import '../../../polymer-legacy.js'; -import { Polymer } from '../../../lib/utils/boot.js'; +import { Polymer } from '../../../lib/legacy/polymer-fn.js'; import { html } from '../../../lib/utils/html-tag.js'; import { dom } from '../../../lib/legacy/polymer.dom.js'; Polymer({ diff --git a/test/unit/dynamic-imports/inner-element.js b/test/unit/dynamic-imports/inner-element.js index f6f01326b3..ae8a735b57 100644 --- a/test/unit/dynamic-imports/inner-element.js +++ b/test/unit/dynamic-imports/inner-element.js @@ -9,7 +9,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN */ import '../../../polymer-legacy.js'; -import { Polymer } from '../../../lib/utils/boot.js'; +import { Polymer } from '../../../lib/legacy/polymer-fn.js'; import { html } from '../../../lib/utils/html-tag.js'; Polymer({ _template: html` diff --git a/test/unit/dynamic-imports/outer-element.html b/test/unit/dynamic-imports/outer-element.html index 780ec04a5c..8670c265f9 100644 --- a/test/unit/dynamic-imports/outer-element.html +++ b/test/unit/dynamic-imports/outer-element.html @@ -23,7 +23,7 @@ - \ No newline at end of file + diff --git a/test/unit/path-effects-elements.js b/test/unit/path-effects-elements.js index 9fa5f4e4fd..2a80f07b3a 100644 --- a/test/unit/path-effects-elements.js +++ b/test/unit/path-effects-elements.js @@ -9,7 +9,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN */ import { PropertiesMixin } from '../../lib/mixins/properties-mixin.js'; -import { Polymer } from '../../lib/utils/boot.js'; +import { Polymer } from '../../lib/legacy/polymer-fn.js'; import { html } from '../../lib/utils/html-tag.js'; class XPropertiesElement extends PropertiesMixin(HTMLElement) { static get properties() { diff --git a/test/unit/path-effects.html b/test/unit/path-effects.html index 35aaef3782..cb986c1320 100644 --- a/test/unit/path-effects.html +++ b/test/unit/path-effects.html @@ -20,7 +20,7 @@ @@ -44,7 +44,7 @@ @@ -53,7 +53,7 @@ @@ -73,7 +73,7 @@ @@ -82,7 +82,7 @@ @@ -93,7 +93,7 @@ @@ -104,7 +104,7 @@ @@ -125,7 +125,7 @@ @@ -142,7 +142,7 @@ @@ -157,7 +157,7 @@ @@ -172,7 +172,7 @@ @@ -190,7 +190,7 @@ @@ -202,7 +202,7 @@ @@ -221,7 +221,7 @@ @@ -245,7 +245,7 @@ @@ -145,7 +145,7 @@ @@ -154,7 +154,7 @@ @@ -163,7 +163,7 @@ @@ -172,7 +172,7 @@ @@ -185,7 +185,7 @@ @@ -194,7 +194,7 @@ @@ -242,7 +242,7 @@ @@ -252,7 +252,7 @@ @@ -406,7 +406,7 @@ @@ -126,4 +126,4 @@ }); - \ No newline at end of file + diff --git a/test/unit/shady.html b/test/unit/shady.html index 51ada8f92c..f3502ab618 100644 --- a/test/unit/shady.html +++ b/test/unit/shady.html @@ -19,7 +19,7 @@ @@ -99,7 +99,7 @@ @@ -151,7 +151,7 @@ @@ -299,7 +299,7 @@ @@ -422,7 +422,7 @@ @@ -441,7 +441,7 @@ @@ -485,7 +485,7 @@ @@ -76,7 +76,7 @@ @@ -87,7 +87,7 @@ @@ -104,7 +104,7 @@ @@ -142,7 +142,7 @@ @@ -163,7 +163,7 @@ @@ -188,7 +188,7 @@ @@ -205,7 +205,7 @@ @@ -229,7 +229,7 @@ @@ -248,7 +248,7 @@ @@ -266,7 +266,7 @@ @@ -49,7 +49,7 @@ @@ -67,7 +67,7 @@ diff --git a/test/unit/styling-scoped.html b/test/unit/styling-scoped.html index 5721ff5205..d0f22c756f 100644 --- a/test/unit/styling-scoped.html +++ b/test/unit/styling-scoped.html @@ -77,7 +77,7 @@ @@ -438,7 +438,7 @@ @@ -453,7 +453,7 @@ @@ -497,7 +497,7 @@ @@ -560,7 +560,7 @@ @@ -572,7 +572,7 @@ @@ -597,7 +597,7 @@ diff --git a/test/unit/sub/resolveurl-elements.js b/test/unit/sub/resolveurl-elements.js index 3fce1b0838..2cc7410c76 100644 --- a/test/unit/sub/resolveurl-elements.js +++ b/test/unit/sub/resolveurl-elements.js @@ -11,7 +11,7 @@ import { html } from '../../../lib/utils/html-tag.js'; import { PolymerElement } from '../../../polymer-element.js'; import { DomModule } from '../../../lib/elements/dom-module.js'; -import { Polymer } from '../../../lib/utils/boot.js'; +import { Polymer } from '../../../lib/legacy/polymer-fn.js'; const $_documentContainer = document.createElement('div'); $_documentContainer.setAttribute('style', 'display: none;'); $_documentContainer.innerHTML = ``; diff --git a/test/unit/sub/x-test.html b/test/unit/sub/x-test.html index a474d8df33..8cfe535b03 100644 --- a/test/unit/sub/x-test.html +++ b/test/unit/sub/x-test.html @@ -3,9 +3,9 @@ sub - \ No newline at end of file + diff --git a/test/unit/template-whitespace.html b/test/unit/template-whitespace.html index 87099d3ab4..7686d0fd50 100644 --- a/test/unit/template-whitespace.html +++ b/test/unit/template-whitespace.html @@ -23,7 +23,7 @@