44 lines
1.1 KiB
HTML
44 lines
1.1 KiB
HTML
|
<!doctype html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<h1 id="qunit-header">SystemJS Test Suite</h1>
|
||
|
|
||
|
<h2 id="qunit-banner"></h2>
|
||
|
<div id="qunit-testrunner-toolbar"></div>
|
||
|
<h2 id="qunit-userAgent"></h2>
|
||
|
<ol id="qunit-tests"></ol>
|
||
|
<div id="qunit-test-area"></div>
|
||
|
|
||
|
<script src="../dist/system.src.js" type="text/javascript"></script>
|
||
|
|
||
|
<script src="../bower_components/qunit/qunit/qunit.js"></script>
|
||
|
|
||
|
<script>
|
||
|
QUnit.config.testTimeout = 2000;
|
||
|
|
||
|
QUnit.module("SystemJS Runtime");
|
||
|
|
||
|
function err(e) {
|
||
|
setTimeout(function() {
|
||
|
throw e.stack || e;
|
||
|
start();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
System.transpiler = 'babel';
|
||
|
System.paths['babel/external-helpers'] = '../node_modules/babel-core/external-helpers.js';
|
||
|
|
||
|
asyncTest('Dynamicall loading modules with Traceur runtime', function() {
|
||
|
System['import']('tests/with-runtime-babel.js').then(function(m) {
|
||
|
ok(m.c);
|
||
|
start();
|
||
|
}, err);
|
||
|
});
|
||
|
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|