funcunit
Version:
<!-- @hide title
46 lines (34 loc) • 841 B
HTML
<html>
<body></body>
<script src="test.js"></script>
<script>
// test promise polyfill
// delete window.Promise;
</script>
<script src="../node_modules/when/es6-shim/Promise.js"></script>
<script src="../dist/es6-module-loader.src.js"></script>
<script>
System.paths['traceur'] = '../node_modules/traceur/bin/traceur.js';
// System.traceurOptions = { classes: false };
</script>
<script>
// test tracing
System.trace = true;
</script>
<script>
runTests();
</script>
<script type="module">
window.anon = class {
constructor() {
}
}
</script>
<script>
setTimeout(function() {
test('Anonymous <script type="module"> tag', function(assert) {
assert(typeof window.anon, 'function');
});
}, 500);
</script>