Move test and add to runner.

This commit is contained in:
Kevin Schaaf 2016-02-04 09:55:18 -08:00
parent d69ee9a35e
commit aeb44de787
2 changed files with 19 additions and 14 deletions

View File

@ -66,6 +66,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
'unit/templatizer.html', 'unit/templatizer.html',
'unit/dom-repeat.html', 'unit/dom-repeat.html',
'unit/dom-if.html', 'unit/dom-if.html',
'unit/dom-template.html',
'unit/dom-bind.html', 'unit/dom-bind.html',
'unit/script-after-import-in-head.html', 'unit/script-after-import-in-head.html',
'unit/globals.html' 'unit/globals.html'

View File

@ -11,9 +11,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<script src="../../../../webcomponentsjs/webcomponents-lite.js"></script> <script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../../web-component-tester/browser.js"></script> <script src="../../../web-component-tester/browser.js"></script>
<link rel="import" href="../../../polymer.html"> <link rel="import" href="../../polymer.html">
</head> </head>
<body> <body>
@ -28,21 +28,25 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
</template> </template>
</template> </template>
<script> <script>
Polymer({ HTMLImports.whenReady(function() {
is: 'test-dom-template',
properties: { Polymer({
value: String is: 'test-dom-template',
},
ready: function() { properties: {
value: String
},
var tmpl = this.$.tmpl.stamp({ ready: function() {
text: 'ohai'
}); var tmpl = this.$.tmpl.stamp({
text: 'ohai'
});
this.value = tmpl.root.textContent.trim();
}
});
this.value = tmpl.root.textContent.trim();
}
}); });
</script> </script>
</dom-module> </dom-module>