mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
register only test
This commit is contained in:
parent
5622e15a07
commit
8fc4bb60db
40
test/test-register-only.html
Normal file
40
test/test-register-only.html
Normal file
@ -0,0 +1,40 @@
|
||||
<!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-register-only.src.js" type="text/javascript"></script>
|
||||
<script src="../bower_components/qunit/qunit/qunit.js"></script>
|
||||
|
||||
<script>
|
||||
QUnit.config.testTimeout = 2000;
|
||||
|
||||
QUnit.module("SystemJS CSP");
|
||||
|
||||
function err(e) {
|
||||
setTimeout(function() {
|
||||
throw e.stack || e;
|
||||
start();
|
||||
});
|
||||
}
|
||||
|
||||
asyncTest('System.register Circular', function() {
|
||||
System['import']('tests/register-circular1.js').then(function(m) {
|
||||
ok(m.q == 3, 'Binding not allocated');
|
||||
ok(m.r == 5, 'Binding not updated');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user