mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-05-18 08:51:18 +00:00
Fix wct/browser.js load order, simplify travis config
This commit is contained in:
@@ -11,21 +11,19 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>template script test</title>
|
||||
<script src="../../tools/htmltest.js"></script>
|
||||
<script src="../../tools/chai/chai.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<link rel="import" href="imports/template-import.html">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
addEventListener('HTMLImportsLoaded', function() {
|
||||
test('scripts inside templates execute', function() {
|
||||
var link = document.querySelector('link');
|
||||
var template = link.import.querySelector('template');
|
||||
chai.assert.ok(template, 'found import template');
|
||||
var content = template.content || template;
|
||||
document.body.appendChild(content.cloneNode(true));
|
||||
chai.assert.ok(window.executedTemplateScript, 'executedTemplateScript');
|
||||
done();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user