Skip to content

Commit

Permalink
Add WCT config used by all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Apr 19, 2018
1 parent 0b75920 commit f126684
Show file tree
Hide file tree
Showing 63 changed files with 83 additions and 10 deletions.
1 change: 1 addition & 0 deletions test/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
}
}
</script>
<script src="unit/wct-browser-config.js"></script>
<script src="../../../wct-browser-legacy/browser.js"></script>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions test/unit/array-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<script type="module" src="./array-selector-elements.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/async.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../lib/utils/async.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<script type="module" src="./attributes-elements.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/behaviors.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<body>
Expand Down
1 change: 1 addition & 0 deletions test/unit/case-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../lib/utils/case-map.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/configure.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/css-parse.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<meta charset="utf-8">

<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>

<title>css-parse</title>
Expand Down
1 change: 1 addition & 0 deletions test/unit/custom-style-async.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/unit/custom-style-late.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/custom-style-scope-cache.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/unit/custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<script type="module" src="./custom-style-import.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/debounce.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/dir.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html dir="rtl">
<head>
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<script type="module" src="../../lib/mixins/dir-mixin.js"></script>
Expand Down
17 changes: 9 additions & 8 deletions test/unit/disable-upgrade.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html dir="rtl">
<head>
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<script type="module" src="../../lib/mixins/disable-upgrade-mixin.js"></script>
Expand Down Expand Up @@ -76,18 +77,18 @@ <h2 id="element">[[prop]]</h2>
<script type="module">
import '../../polymer-legacy.js';
import { DisableUpgradeMixin } from '../../lib/mixins/disable-upgrade-mixin.js';
import { Class as Class$0 } from '../../lib/legacy/class.js';
import { Polymer as Polymer$0 } from '../../lib/utils/boot.js';
import { Class as PolymerClass } from '../../lib/legacy/class.js';
import { Polymer } from '../../lib/legacy/polymer-fn.js';

// enable disable upgrade!
const polymerClass = Class$0;
const origPolymerClass = PolymerClass;

export const Class = function(info) {
const ctor = polymerClass(info);
Polymer.Class = function(info) {
const ctor = origPolymerClass(info);
return DisableUpgradeMixin(ctor);
};

Polymer$0({
Polymer({
is: 'x-disabled-legacy',
properties: {
prop: {
Expand All @@ -103,14 +104,14 @@ <h2 id="element">[[prop]]</h2>
}
});

Polymer$0({
Polymer({
is: 'x-disabled-legacy-reg1',
registered() {
this.hasRegistered = true;
}
});

Polymer$0({
Polymer({
is: 'x-disabled-legacy-reg2',
registered() {
this.hasRegistered = true;
Expand Down
1 change: 1 addition & 0 deletions test/unit/dom-bind.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions test/unit/dom-if.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<script type="module" src="./dom-if-elements.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/dom-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<script type="module" src="./dom-repeat-elements.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/dynamic-import.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="./dynamic-imports/dynamic-element.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<meta charset="UTF-8">

<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>

<script type="module" src="../../polymer-legacy.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/flattened-nodes-observer.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-element.js"></script>
<script type="module" src="../../lib/utils/flattened-nodes-observer.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion test/unit/gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<meta charset="utf-8">

<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>

<script type="module" src="../../polymer-legacy.js"></script>
<script type="module" src="./gestures-elements.js"></script>

Expand Down
1 change: 1 addition & 0 deletions test/unit/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html>
<head>
<meta charset="utf-8">
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script type="module">
Expand Down
1 change: 1 addition & 0 deletions test/unit/html-tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/importHref.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../lib/utils/import-href.js"></script>
<body>
Expand Down
1 change: 1 addition & 0 deletions test/unit/inheritance.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<body>
Expand Down
1 change: 1 addition & 0 deletions test/unit/logging.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/mixin-behaviors.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<body>
Expand Down
1 change: 1 addition & 0 deletions test/unit/mixin-utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/multi-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
-->
<html>
<head>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/path-effects.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<script type="module" src="./path-effects-elements.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/path.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../lib/utils/path.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/polymer-dom-observeNodes.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/polymer-dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/polymer-element-with-apply.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<html>
<head>
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="./polymer-element-with-apply-import.js"></script>
</head>
Expand Down
1 change: 1 addition & 0 deletions test/unit/polymer.element.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-element.js"></script>
<body>
Expand Down
1 change: 1 addition & 0 deletions test/unit/polymer.legacyelement.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../lib/mixins/properties-mixin.js"></script>
<script type="module" src="../../lib/mixins/property-accessors.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/polymer.properties-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../lib/mixins/properties-mixin.js"></script>
<body>
Expand Down
1 change: 1 addition & 0 deletions test/unit/properties-changed.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<body>
Expand Down
1 change: 1 addition & 0 deletions test/unit/property-accessors.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<body>
Expand Down
2 changes: 2 additions & 0 deletions test/unit/property-effects-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-element.js"></script>
<script type="module" src="../../lib/mixins/gesture-event-listeners.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/property-effects.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
<script type="module" src="./property-effects-elements.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/unit/ready-attached-order-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../../@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<script src="wct-browser-config.js"></script>
<script src="../../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="../../polymer-legacy.js"></script>
</head>
Expand Down
Loading

0 comments on commit f126684

Please sign in to comment.