Skip to content

Commit

Permalink
Move test and add to runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 4, 2016
1 parent d69ee9a commit aeb44de
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
1 change: 1 addition & 0 deletions test/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
'unit/templatizer.html',
'unit/dom-repeat.html',
'unit/dom-if.html',
'unit/dom-template.html',
'unit/dom-bind.html',
'unit/script-after-import-in-head.html',
'unit/globals.html'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<html>
<head>
<meta charset="utf-8">
<script src="../../../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../../web-component-tester/browser.js"></script>
<link rel="import" href="../../../polymer.html">
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../web-component-tester/browser.js"></script>
<link rel="import" href="../../polymer.html">
</head>
<body>

Expand All @@ -28,21 +28,25 @@
</template>
</template>
<script>
Polymer({
is: 'test-dom-template',
HTMLImports.whenReady(function() {

properties: {
value: String
},
Polymer({
is: 'test-dom-template',

ready: function() {
properties: {
value: String
},

var tmpl = this.$.tmpl.stamp({
text: 'ohai'
});
ready: function() {

var tmpl = this.$.tmpl.stamp({
text: 'ohai'
});

this.value = tmpl.root.textContent.trim();
}
});

this.value = tmpl.root.textContent.trim();
}
});
</script>
</dom-module>
Expand Down

0 comments on commit aeb44de

Please sign in to comment.