Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 15f925f

Browse files
web-padawanElliott Marquez
authored and
Elliott Marquez
committed
Update fixtures
1 parent 05e8dfa commit 15f925f

File tree

11 files changed

+80
-80
lines changed

11 files changed

+80
-80
lines changed

fixtures/packages/iron-icon/expected/demo/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727
See: https://github.com/Polymer/polymer-modulizer/issues/154
2828
-->
2929
<script type="module">
30-
const $_documentContainer = document.createElement('div');
30+
const $_documentContainer = document.createElement('template');
3131

3232
$_documentContainer.innerHTML = `<custom-style>
3333
<style is="custom-style" include="demo-pages-shared-styles"></style>
3434
</custom-style>`;
3535

36-
document.body.appendChild($_documentContainer);
36+
document.body.appendChild($_documentContainer.content);
3737
</script>
3838

3939
<script type="module">
40-
const $_documentContainer = document.createElement('div');
40+
const $_documentContainer = document.createElement('template');
4141

4242
$_documentContainer.innerHTML = `<div class="vertical-section-container centered">
4343
<h3>
@@ -64,7 +64,7 @@ <h3><code>iron-icon</code> using an image url as its icon source.</h3>
6464
</demo-snippet>
6565
</div>`;
6666

67-
document.body.appendChild($_documentContainer);
67+
document.body.appendChild($_documentContainer.content);
6868
</script>
6969
</body>
7070
</html>

fixtures/packages/paper-button/expected/demo/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
See: https://github.com/Polymer/polymer-modulizer/issues/154
3535
-->
3636
<script type="module">
37-
const $_documentContainer = document.createElement('div');
37+
const $_documentContainer = document.createElement('template');
3838

3939
$_documentContainer.innerHTML = `<custom-style>
4040
<style is="custom-style" include="demo-pages-shared-styles">
@@ -48,12 +48,12 @@
4848
</style>
4949
</custom-style>`;
5050

51-
document.body.appendChild($_documentContainer);
51+
document.body.appendChild($_documentContainer.content);
5252
</script>
5353
</head>
5454
<body unresolved>
5555
<script type="module">
56-
const $_documentContainer = document.createElement('div');
56+
const $_documentContainer = document.createElement('template');
5757

5858
$_documentContainer.innerHTML = `<div class="vertical-section-container centered">
5959
<h3>Buttons can be flat, raised, toggleable, or disabled</h3>
@@ -154,7 +154,7 @@ <h3>Buttons can be used as a link</h3>
154154
</demo-snippet>
155155
</div>`;
156156

157-
document.body.appendChild($_documentContainer);
157+
document.body.appendChild($_documentContainer.content);
158158
</script>
159159
</body>
160160
</html>

fixtures/packages/paper-button/expected/paper-button.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ import '../../@polymer/iron-flex-layout/iron-flex-layout.js';
8585
import { PaperButtonBehavior, PaperButtonBehaviorImpl } from '../../@polymer/paper-behaviors/paper-button-behavior.js';
8686
import '../../@polymer/paper-styles/element-styles/paper-material-styles.js';
8787
import { Polymer } from '../../@polymer/polymer/lib/legacy/polymer-fn.js';
88-
const $_documentContainer = document.createElement('div');
88+
const $_documentContainer = document.createElement('template');
8989
$_documentContainer.setAttribute('style', 'display: none;');
9090

9191
$_documentContainer.innerHTML = `<dom-module id="paper-button">
@@ -176,7 +176,7 @@ $_documentContainer.innerHTML = `<dom-module id="paper-button">
176176
177177
</dom-module>`;
178178

179-
document.head.appendChild($_documentContainer);
179+
document.head.appendChild($_documentContainer.content);
180180
Polymer({
181181
importPath: import.meta.url,
182182
is: 'paper-button',

fixtures/packages/polymer/expected/test/smoke/style-props/src/elements-defaults.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const $_documentContainer = document.createElement('div');
1+
const $_documentContainer = document.createElement('template');
22
$_documentContainer.setAttribute('style', 'display: none;');
33

44
$_documentContainer.innerHTML = `<style is="custom-style">
@@ -12,4 +12,4 @@ $_documentContainer.innerHTML = `<style is="custom-style">
1212
}
1313
</style>`;
1414

15-
document.head.appendChild($_documentContainer);
15+
document.head.appendChild($_documentContainer.content);

fixtures/packages/polymer/expected/test/smoke/style-props/src/settings.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Polymer } from '../../../../lib/legacy/polymer-fn.js';
22
import { html } from '../../../../lib/utils/html-tag.js';
3-
const $_documentContainer = document.createElement('div');
3+
const $_documentContainer = document.createElement('template');
44
$_documentContainer.setAttribute('style', 'display: none;');
55

66
$_documentContainer.innerHTML = `<dom-module id="simple-layout-styles">
@@ -30,7 +30,7 @@ $_documentContainer.innerHTML = `<dom-module id="simple-layout-styles">
3030
</template>
3131
</dom-module>`;
3232

33-
document.head.appendChild($_documentContainer);
33+
document.head.appendChild($_documentContainer.content);
3434
Polymer({
3535
importPath: import.meta.url,
3636

fixtures/packages/polymer/expected/test/unit/custom-style-import.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import './sub/style-import.js';
2-
const $_documentContainer = document.createElement('div');
2+
const $_documentContainer = document.createElement('template');
33
$_documentContainer.setAttribute('style', 'display: none;');
44

55
$_documentContainer.innerHTML = `<dom-module id="shared-style">
@@ -32,7 +32,7 @@ $_documentContainer.innerHTML = `<dom-module id="shared-style">
3232
</style>
3333
</custom-style>`;
3434

35-
document.head.appendChild($_documentContainer);
35+
document.head.appendChild($_documentContainer.content);
3636

3737
/**
3838
@license

0 commit comments

Comments
 (0)