diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-10 03:50:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-10 03:50:11 +0200 |
commit | de4628b3a7e7618681a76c01d00c1632a96688cf (patch) | |
tree | 49d4d97cf1c591b8567c83aa2469522f7fa57d27 /thirdparty/systemjs/test/test-babel-runtime.html | |
parent | 7989859ed6520d4e8d18f48545e5998bf66e253c (diff) | |
parent | 9af485a584e47fd503ed5c62b9f6482574715f1e (diff) |
Merge commit '9af485a584e47fd503ed5c62b9f6482574715f1e' as 'thirdparty/systemjs'
Diffstat (limited to 'thirdparty/systemjs/test/test-babel-runtime.html')
-rw-r--r-- | thirdparty/systemjs/test/test-babel-runtime.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/test-babel-runtime.html b/thirdparty/systemjs/test/test-babel-runtime.html new file mode 100644 index 000000000..bb62e1e42 --- /dev/null +++ b/thirdparty/systemjs/test/test-babel-runtime.html @@ -0,0 +1,44 @@ +<!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>
\ No newline at end of file |