mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
71 lines
2.1 KiB
HTML
71 lines
2.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="../bower_components/traceur/traceur.js"></script> -->
|
|
<script src="../bower_components/es6-module-loader/dist/es6-module-loader.js"></script>
|
|
<script src="../dist/system.js" data-traceur-src="../bower_components/traceur/traceur.js" type="text/javascript"></script>
|
|
|
|
<script src="../bower_components/qunit/qunit/qunit.js"></script>
|
|
|
|
<script>
|
|
QUnit.config.testTimeout = 2000;
|
|
|
|
QUnit.module("SystemJS Tracer");
|
|
|
|
function err(e) {
|
|
setTimeout(function() {
|
|
throw e;
|
|
start();
|
|
});
|
|
}
|
|
|
|
// enable tracing
|
|
System.pluginLoader = new LoaderPolyfill(System);
|
|
System.pluginLoader.paths = System.paths;
|
|
System.pluginLoader.baseURL = System.baseURL;
|
|
System.trace = true;
|
|
System.execute = false;
|
|
|
|
asyncTest('ES6 Circular', function() {
|
|
System['import']('tests/es6-circular1').then(function(m) {
|
|
ok(System.loads['tests/es6-circular1'].deps[0] == './es6-circular2');
|
|
start();
|
|
}, err);
|
|
});
|
|
|
|
asyncTest('AMD & CJS circular, ES6 Circular', function() {
|
|
System['import']('tests/all-circular1').then(function(m) {
|
|
ok(System.loads['tests/all-circular1'].deps[0] == './all-circular2');
|
|
start();
|
|
}, err);
|
|
});
|
|
|
|
asyncTest('AMD -> System.register circular -> ES6', function() {
|
|
System['import']('tests/all-layers1').then(function(m) {
|
|
ok(System.loads['tests/all-layers1'].deps[0] == './all-layers2');
|
|
start();
|
|
}, err);
|
|
});
|
|
|
|
asyncTest('Advanced compiler plugin', function() {
|
|
System['import']('tests/compiler-test!tests/advanced-plugin').then(function(m) {
|
|
ok(true);
|
|
start();
|
|
}, err);
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html> |