Template Upload
This commit is contained in:
44
node_modules/systemjs/test/test-babel-runtime.html
generated
vendored
Normal file
44
node_modules/systemjs/test/test-babel-runtime.html
generated
vendored
Normal file
@ -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>
|
29
node_modules/systemjs/test/test-babel.html
generated
vendored
Normal file
29
node_modules/systemjs/test/test-babel.html
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
<!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>
|
||||
System.paths.babel = '../node_modules/babel-core/browser.js';
|
||||
System.transpiler = 'babel';
|
||||
System['import']('test.js')['catch'](function(e) {
|
||||
setTimeout(function() {
|
||||
throw e.stack || e;
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="../bower_components/qunit/qunit/qunit.js"></script>
|
||||
</body>
|
||||
</html>
|
3
node_modules/systemjs/test/test-babel.js
generated
vendored
Normal file
3
node_modules/systemjs/test/test-babel.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
System.transpiler = 'babel';
|
||||
System.baseURL = 'test/';
|
||||
require('./test');
|
61
node_modules/systemjs/test/test-csp-inline.html
generated
vendored
Normal file
61
node_modules/systemjs/test/test-csp-inline.html
generated
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/>
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc';">
|
||||
</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 nonce='abc'>
|
||||
QUnit.config.testTimeout = 2000;
|
||||
|
||||
QUnit.module("SystemJS nonce");
|
||||
|
||||
function err(e) {
|
||||
setTimeout(function() {
|
||||
throw e.stack || e;
|
||||
start();
|
||||
});
|
||||
}
|
||||
|
||||
asyncTest('Importing a script with a good nonce', function() {
|
||||
System.config({
|
||||
meta: {
|
||||
'tests/csp/nonce.js': {
|
||||
nonce: 'abc'
|
||||
}
|
||||
}
|
||||
});
|
||||
System['import']('tests/csp/nonce.js').then(function(m) {
|
||||
ok(m.nonce === 'abc');
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
asyncTest('Importing a script with a bad nonce', function() {
|
||||
System.config({
|
||||
meta: {
|
||||
'tests/csp/nonce2.js': {
|
||||
nonce: 'asdf'
|
||||
}
|
||||
}
|
||||
});
|
||||
System['import']('tests/csp/nonce2.js').then(function(m) {
|
||||
ok(m.nonce !== 'ab');
|
||||
start();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
266
node_modules/systemjs/test/test-csp.html
generated
vendored
Normal file
266
node_modules/systemjs/test/test-csp.html
generated
vendored
Normal file
@ -0,0 +1,266 @@
|
||||
<!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-csp-production.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 version', function() {
|
||||
ok(System.version.match(/^\d+\.\d+\.\d+(-\w+)? CSP$/));
|
||||
start();
|
||||
});
|
||||
|
||||
asyncTest('Loading an AMD module', function() {
|
||||
System['import']('tests/amd-module.js').then(function(m) {
|
||||
ok(m.amd == true);
|
||||
ok(m.dep.amd == 'dep');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
System.config({
|
||||
bundles: {
|
||||
'tests/amd-bundle.js': ['bundle-1', 'bundle-2']
|
||||
}
|
||||
});
|
||||
asyncTest('Loading an AMD bundle', function() {
|
||||
System['import']('bundle-1').then(function(m) {
|
||||
ok(m.defined == true);
|
||||
start();
|
||||
}, err);
|
||||
|
||||
stop();
|
||||
System['import']('bundle-2').then(function(m) {
|
||||
ok(m.defined == true);
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('Loading an AMD named define', function() {
|
||||
System['import']('tests/nameddefine.js').then(function() {
|
||||
System['import']('another-define').then(function(m) {
|
||||
ok(m.named == 'define');
|
||||
start();
|
||||
}, err);
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('Global script with exports as an array', function() {
|
||||
System.config({
|
||||
meta: {
|
||||
'tests/global-exports-array.js': {
|
||||
exports: ['A', 'B']
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
System['import']('tests/global-exports-array.js').then(function(m) {
|
||||
ok(m.A == 'A');
|
||||
ok(m.B == 'B');
|
||||
ok(!m.C);
|
||||
ok(m['default'] == 'A');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('Loading a badly named AMD define', function() {
|
||||
System['import']('tests/jquery-named.js').then(function(jquery) {
|
||||
ok(jquery.is == 'jquery');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
|
||||
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);
|
||||
});
|
||||
|
||||
|
||||
asyncTest('Loading a UMD module', function() {
|
||||
System['import']('tests/umd.js').then(function(m) {
|
||||
ok(m.d == 'hi');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('Loading a bundle', function() {
|
||||
System['import']('tests/bundle.js').then(function(m) {
|
||||
return System['import']('bundle-define1');
|
||||
})
|
||||
.then(function(m) {
|
||||
ok(m.name == 'bundle1');
|
||||
|
||||
return System['import']('bundle-define2');
|
||||
})
|
||||
.then(function(m) {
|
||||
ok(m.name == 'bundle2');
|
||||
|
||||
start();
|
||||
})
|
||||
['catch'](err);
|
||||
});
|
||||
|
||||
asyncTest('Loading a bundle on demand', function() {
|
||||
|
||||
System.config({
|
||||
bundles: {
|
||||
'tests/main-bundle.js': ['jquery']
|
||||
}
|
||||
});
|
||||
System['import']('jquery').then(function(m) {
|
||||
ok(m.name == 'jquery-bundled');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
System.config({
|
||||
bundles: {
|
||||
'tests/mixed-bundle.js': ['tree/third', 'tree/cjs', 'tree/jquery', 'tree/second', 'tree/global', 'tree/amd', 'tree/first']
|
||||
}
|
||||
});
|
||||
asyncTest('Loading AMD from a bundle', function() {
|
||||
System['import']('tree/amd').then(function(m) {
|
||||
ok(m.is == 'amd');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('Loading CommonJS from a bundle', function() {
|
||||
System['import']('tree/cjs').then(function(m) {
|
||||
ok(m.cjs === true);
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('Loading a Global from a bundle', function() {
|
||||
System['import']('tree/global').then(function(m) {
|
||||
ok(m === 'output');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('Loading named System.register', function() {
|
||||
System['import']('tree/third').then(function(m) {
|
||||
ok(m.some == 'exports');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('Loading System.register from ES6', function() {
|
||||
System['import']('tree/first').then(function(m) {
|
||||
ok(m.p == 5);
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
asyncTest('Running a simple non-fetch plugin', function() {
|
||||
System.set('tests/es6-plugin', System.newModule({
|
||||
fetch: function() {
|
||||
return '';
|
||||
},
|
||||
instantiate: function() {
|
||||
return "plugin";
|
||||
}
|
||||
}));
|
||||
System['import']('test/file!tests/es6-plugin').then(function(m) {
|
||||
ok(m == 'plugin');
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
asyncTest('Loading a non-registering module', function() {
|
||||
System['import']('tests/global-dep.js')['catch'](function(e) {
|
||||
ok(e.toString().indexOf('did not call System.register or AMD define') != -1);
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
asyncTest('Loading a global with exports defined', function() {
|
||||
System.config({
|
||||
meta: {
|
||||
'tests/global-single.js': {
|
||||
exports: 'foo'
|
||||
}
|
||||
}
|
||||
});
|
||||
System['import']('tests/global-single.js').then(function(m) {
|
||||
ok(m == 'bar');
|
||||
start();
|
||||
});
|
||||
})
|
||||
|
||||
asyncTest('Importing a script with wrong integrity fails', function() {
|
||||
System.config({
|
||||
meta: {
|
||||
'tests/csp/integrity.js': {
|
||||
integrity: 'sha256-abc'
|
||||
}
|
||||
}
|
||||
});
|
||||
System['import']('tests/csp/integrity.js').then(err, function(e) {
|
||||
ok(typeof e !== 'undefined');
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
asyncTest('Importing a script with correct integrity', function() {
|
||||
System.config({
|
||||
meta: {
|
||||
'tests/csp/integrity.js': {
|
||||
integrity: 'sha256-_AfZ2eZSJyVU4HFktUpbsTEoSJF1hL5eGKjgdXZnNTw='
|
||||
}
|
||||
}
|
||||
});
|
||||
System['import']('tests/csp/integrity.js').then(function(m) {
|
||||
ok(m.integrity === 'integrity');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('Importing jQuery from CDN', function() {
|
||||
System['import']('https://code.jquery.com/jquery-1.11.3.min.js').then(function($) {
|
||||
ok($.fn);
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
asyncTest('Loading package configuration json', function() {
|
||||
System.config({
|
||||
packageConfigPaths: ['tests/testpkg*.json']
|
||||
});
|
||||
System.import('tests/testpkg2')
|
||||
.then(function(m) {
|
||||
ok(m.asdf == 'asdf');
|
||||
start();
|
||||
}, err);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
112
node_modules/systemjs/test/test-jsextensions.html
generated
vendored
Normal file
112
node_modules/systemjs/test/test-jsextensions.html
generated
vendored
Normal file
@ -0,0 +1,112 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/>
|
||||
<script src="../bower_components/qunit/qunit/qunit.js"></script>
|
||||
</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>
|
||||
// test polyfill loading
|
||||
// window.URL = undefined;
|
||||
</script>
|
||||
|
||||
<script src="../dist/system.src.js" type="text/javascript"></script>
|
||||
<script>
|
||||
System.traceurOptions = { asyncFunctions: true };
|
||||
System.paths.traceur = '../node_modules/traceur/bin/traceur.js';
|
||||
|
||||
QUnit.config.testTimeout = 2000;
|
||||
|
||||
QUnit.module("SystemJS JS Extensions");
|
||||
|
||||
System.config({
|
||||
defaultJSExtensions: true
|
||||
});
|
||||
|
||||
asyncTest('Error handling', function() {
|
||||
System['import']('tests/main').then(function(m) {
|
||||
ok(m.dep == 'value');
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
asyncTest('Pathing extension handling', function() {
|
||||
System.config({
|
||||
paths: {
|
||||
'path': 'tests/main'
|
||||
},
|
||||
packages: {
|
||||
'tests/testpkg': {
|
||||
basePath: 'lib',
|
||||
defaultExtension: 'ts',
|
||||
map: {
|
||||
'./asdf': './test.ts'
|
||||
}
|
||||
},
|
||||
'tests/subcontextual-map': {
|
||||
main: 'submodule',
|
||||
map: {
|
||||
dep: 'path'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Promise.all([
|
||||
System['import']('path'),
|
||||
System['import']('tests/testpkg/asdf'),
|
||||
System['import']('tests/subcontextual-map'),
|
||||
System['import']('tests/main-dep'),
|
||||
System['import']('tests/main-dep.js')
|
||||
])
|
||||
.then(function(mods) {
|
||||
ok(mods[0].dep == 'value');
|
||||
ok(mods[1] == 'ts');
|
||||
ok(mods[2].dep == 'value');
|
||||
ok(mods[3] == mods[2]);
|
||||
ok(mods[3] == mods[4]);
|
||||
start();
|
||||
})
|
||||
});
|
||||
|
||||
System.config({
|
||||
packages: {
|
||||
'custom': {
|
||||
defaultExtension: 'ext'
|
||||
}
|
||||
}
|
||||
});
|
||||
asyncTest('Register extensions', function(err) {
|
||||
System['import']('tests/register-default-extension.js').then(function() {
|
||||
System['import']('custom/file.ext').then(function(m) {
|
||||
ok(m.custom == 'ext');
|
||||
start();
|
||||
}, err);
|
||||
}, err);
|
||||
});
|
||||
|
||||
System.config({
|
||||
packages: {
|
||||
'tests/no-default-ext': {
|
||||
defaultExtension: false
|
||||
}
|
||||
}
|
||||
});
|
||||
asyncTest('No default extension', function(err) {
|
||||
System['import']('tests/no-default-ext/file.ext').then(function(m) {
|
||||
ok(m.ext == 'ext');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
45
node_modules/systemjs/test/test-register-only.html
generated
vendored
Normal file
45
node_modules/systemjs/test/test-register-only.html
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
<!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 version', function() {
|
||||
ok(System.version.match(/^\d+\.\d+\.\d+(-\w+)? Register Only$/));
|
||||
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>
|
71
node_modules/systemjs/test/test-tracer.html
generated
vendored
Normal file
71
node_modules/systemjs/test/test-tracer.html
generated
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
<!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>
|
||||
System.paths.traceur = '../node_modules/traceur/bin/traceur.js';
|
||||
|
||||
QUnit.config.testTimeout = 2000;
|
||||
|
||||
QUnit.module("SystemJS Tracer");
|
||||
|
||||
function err(e) {
|
||||
setTimeout(function() {
|
||||
throw e.stack || e;
|
||||
start();
|
||||
});
|
||||
}
|
||||
|
||||
// enable tracing
|
||||
System.pluginLoader = new System.constructor();
|
||||
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.js').then(function(m) {
|
||||
ok(System.loads[System.normalizeSync('tests/es6-circular1.js')].deps[0] == './es6-circular2.js');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('AMD & CJS circular, ES6 Circular', function() {
|
||||
System['import']('tests/all-circular1.js').then(function(m) {
|
||||
ok(System.loads[System.normalizeSync('tests/all-circular1.js')].deps[0] == './all-circular2.js');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('AMD -> System.register circular -> ES6', function() {
|
||||
System['import']('tests/all-layers1.js').then(function(m) {
|
||||
ok(System.loads[System.normalizeSync('tests/all-layers1.js')].deps[0] == './all-layers2.js');
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
asyncTest('Advanced compiler plugin', function() {
|
||||
System['import']('tests/compiler-test.coffee!tests/advanced-plugin.js').then(function(m) {
|
||||
ok(true);
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
43
node_modules/systemjs/test/test-traceur-runtime.html
generated
vendored
Normal file
43
node_modules/systemjs/test/test-traceur-runtime.html
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
<!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.paths['traceur-runtime'] = '../node_modules/traceur/bin/traceur-runtime.js';
|
||||
|
||||
asyncTest('Dynamicall loading modules with Traceur runtime', function() {
|
||||
System['import']('tests/with-runtime-traceur.js').then(function(m) {
|
||||
ok(m.c);
|
||||
start();
|
||||
}, err);
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
34
node_modules/systemjs/test/test-traceur.html
generated
vendored
Normal file
34
node_modules/systemjs/test/test-traceur.html
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
<!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>
|
||||
// test polyfill loading
|
||||
// window.URL = undefined;
|
||||
</script>
|
||||
|
||||
<script src="../dist/system.src.js" type="text/javascript"></script>
|
||||
<script>
|
||||
System.traceurOptions = { asyncFunctions: true };
|
||||
System.paths.traceur = '../node_modules/traceur/bin/traceur.js';
|
||||
System['import']('test.js')['catch'](function(e) {
|
||||
setTimeout(function() {
|
||||
throw e.stack || e;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="../bower_components/qunit/qunit/qunit.js"></script>
|
||||
</body>
|
||||
</html>
|
3
node_modules/systemjs/test/test-traceur.js
generated
vendored
Normal file
3
node_modules/systemjs/test/test-traceur.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
System.transpiler = 'traceur';
|
||||
System.baseURL = 'test/';
|
||||
require('./test');
|
31
node_modules/systemjs/test/test-typescript.html
generated
vendored
Normal file
31
node_modules/systemjs/test/test-typescript.html
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
<!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="../node_modules/es6-module-loader/dist/es6-module-loader.src.js"></script>
|
||||
<script src="../dist/system.src.js" type="text/javascript"></script>
|
||||
<script>
|
||||
System.paths['typescript'] = '../node_modules/typescript/lib/typescript.js';
|
||||
System.transpiler = 'typescript';
|
||||
System['import']('test.js')['catch'](function(e) {
|
||||
setTimeout(function() {
|
||||
throw e;
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="../bower_components/qunit/qunit/qunit.js"></script>
|
||||
</body>
|
||||
</html>
|
4
node_modules/systemjs/test/test-typescript.js
generated
vendored
Normal file
4
node_modules/systemjs/test/test-typescript.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
global.ts = require('typescript');
|
||||
System.transpiler = 'typescript';
|
||||
System.baseURL = 'test/';
|
||||
require('./test');
|
1250
node_modules/systemjs/test/test.js
generated
vendored
Normal file
1250
node_modules/systemjs/test/test.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/systemjs/test/tests/#.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/#.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
module.exports = '#';
|
20
node_modules/systemjs/test/tests/advanced-plugin.js
generated
vendored
Normal file
20
node_modules/systemjs/test/tests/advanced-plugin.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
exports.locate = function(load) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
setTimeout(function() {
|
||||
resolve('custom fetch');
|
||||
}, 20);
|
||||
});
|
||||
}
|
||||
|
||||
exports.fetch = function(load) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
setTimeout(function() {
|
||||
resolve(load.address);
|
||||
}, 20);
|
||||
});
|
||||
}
|
||||
|
||||
exports.translate = function(load) {
|
||||
load.source = '"deps ./plugin-dep.js"; (typeof window != "undefined" ? window : global).q = "' + load.source + ':' + load.name + '";';
|
||||
}
|
9
node_modules/systemjs/test/tests/all-circular1.js
generated
vendored
Normal file
9
node_modules/systemjs/test/tests/all-circular1.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { a } from './all-circular2.js';
|
||||
export var q;
|
||||
export function p() {
|
||||
q = a;
|
||||
}
|
||||
|
||||
import o from './all-circular3.js';
|
||||
|
||||
export { o };
|
3
node_modules/systemjs/test/tests/all-circular2.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/all-circular2.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import { p } from './all-circular1.js';
|
||||
export var a = 4;
|
||||
p();
|
10
node_modules/systemjs/test/tests/all-circular3.js
generated
vendored
Normal file
10
node_modules/systemjs/test/tests/all-circular3.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
define(function(require, exports) {
|
||||
var obj = require('./all-circular4.js').obj;
|
||||
exports.checkObj = function() {
|
||||
return obj.circular;
|
||||
}
|
||||
exports.setObj = function() {
|
||||
obj.circular = 'changed';
|
||||
}
|
||||
require('./all-circular4.js').set();
|
||||
});
|
5
node_modules/systemjs/test/tests/all-circular4.js
generated
vendored
Normal file
5
node_modules/systemjs/test/tests/all-circular4.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
exports.obj = { circular: 'mess' };
|
||||
var setter = require('./all-circular3.js');
|
||||
exports.set = function() {
|
||||
setter.setObj();
|
||||
}
|
3
node_modules/systemjs/test/tests/all-layers1.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/all-layers1.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
define(['./all-layers2.js'], function(al2) {
|
||||
return al2.q == 10 && al2.r == 5;
|
||||
});
|
20
node_modules/systemjs/test/tests/all-layers2.js
generated
vendored
Normal file
20
node_modules/systemjs/test/tests/all-layers2.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
System.register(["./all-layers3.js"], function($__export) {
|
||||
"use strict";
|
||||
var q, r, c;
|
||||
function p() {
|
||||
if (q)
|
||||
r = $__export('r', c);
|
||||
else
|
||||
q = $__export('q', c);
|
||||
}
|
||||
$__export('p', p);
|
||||
return {
|
||||
setters: [function(m) {
|
||||
c = m.c;
|
||||
}],
|
||||
execute: function() {
|
||||
c = 5;
|
||||
p();
|
||||
}
|
||||
};
|
||||
});
|
17
node_modules/systemjs/test/tests/all-layers3.js
generated
vendored
Normal file
17
node_modules/systemjs/test/tests/all-layers3.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
System.register(["./all-layers2.js", "./all-layers4.js"], function($__export) {
|
||||
"use strict";
|
||||
var c, p;
|
||||
return {
|
||||
setters: [
|
||||
function(m) {
|
||||
p = m.p;
|
||||
},
|
||||
function(m) {
|
||||
$__export('c', c = m.c);
|
||||
}
|
||||
],
|
||||
execute: function() {
|
||||
p();
|
||||
}
|
||||
};
|
||||
});
|
1
node_modules/systemjs/test/tests/all-layers4.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/all-layers4.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export var c = 10;
|
6
node_modules/systemjs/test/tests/amd-bundle.js
generated
vendored
Normal file
6
node_modules/systemjs/test/tests/amd-bundle.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
define('bundle-1', function() {
|
||||
return { defined: true };
|
||||
});
|
||||
define('bundle-2', function() {
|
||||
return { defined: true };
|
||||
});
|
7
node_modules/systemjs/test/tests/amd-circular1.js
generated
vendored
Normal file
7
node_modules/systemjs/test/tests/amd-circular1.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
define(function(require, exports) {
|
||||
var depFunc = require('./amd-circular2.js').fn;
|
||||
exports.val = 5;
|
||||
exports.outFunc = function() {
|
||||
return depFunc();
|
||||
}
|
||||
});
|
6
node_modules/systemjs/test/tests/amd-circular2.js
generated
vendored
Normal file
6
node_modules/systemjs/test/tests/amd-circular2.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
define(function(require, exports) {
|
||||
var circular1 = require('./amd-circular1.js');
|
||||
exports.fn = function() {
|
||||
return circular1.val;
|
||||
}
|
||||
});
|
4
node_modules/systemjs/test/tests/amd-cjs-module.js
generated
vendored
Normal file
4
node_modules/systemjs/test/tests/amd-cjs-module.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
define(function(require, exports) {
|
||||
var p = require('./amd-dep.js');
|
||||
exports.test = 'hi';
|
||||
});
|
6
node_modules/systemjs/test/tests/amd-contextual.js
generated
vendored
Normal file
6
node_modules/systemjs/test/tests/amd-contextual.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
define(['require', 'module'], function(require, module) {
|
||||
return {
|
||||
name: module.uri,
|
||||
rel: require.toUrl('../rel-path.js')
|
||||
};
|
||||
});
|
1
node_modules/systemjs/test/tests/amd-dep-A.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/amd-dep-A.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
A = 10;
|
1
node_modules/systemjs/test/tests/amd-dep-B.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/amd-dep-B.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
B = 5;
|
3
node_modules/systemjs/test/tests/amd-dep.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/amd-dep.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
define({
|
||||
amd: 'dep'
|
||||
});
|
19
node_modules/systemjs/test/tests/amd-dynamic-require.js
generated
vendored
Normal file
19
node_modules/systemjs/test/tests/amd-dynamic-require.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
define(['require'], function(require) {
|
||||
var cb, module;
|
||||
|
||||
require('./amd-dynamic.js', function(_module) {
|
||||
module = _module;
|
||||
|
||||
if (cb)
|
||||
cb(module);
|
||||
});
|
||||
|
||||
return {
|
||||
onCallback: function(_cb) {
|
||||
if (module)
|
||||
_cb(module);
|
||||
else
|
||||
cb = _cb;
|
||||
}
|
||||
};
|
||||
});
|
3
node_modules/systemjs/test/tests/amd-dynamic.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/amd-dynamic.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
define(function() {
|
||||
return 'dynamic';
|
||||
});
|
7
node_modules/systemjs/test/tests/amd-extra-deps.js
generated
vendored
Normal file
7
node_modules/systemjs/test/tests/amd-extra-deps.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
// NB update to "deps[]" when deps is deprecated
|
||||
"deps ./amd-dep-A.js";
|
||||
"deps ./amd-dep-B.js";
|
||||
|
||||
define([], function() {
|
||||
return [A, B];
|
||||
});
|
18
node_modules/systemjs/test/tests/amd-format.js
generated
vendored
Normal file
18
node_modules/systemjs/test/tests/amd-format.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
this is AMD
|
||||
*/
|
||||
// works with comments!!!
|
||||
/*
|
||||
At least I hope so
|
||||
*/
|
||||
"amd";
|
||||
|
||||
var m = {
|
||||
amd: 'amd'
|
||||
};
|
||||
define(m);
|
||||
|
||||
// attempt to fool amd detection
|
||||
if (typeof module != 'undefined')
|
||||
module.exports = 'hello';
|
||||
|
6
node_modules/systemjs/test/tests/amd-module-2.js
generated
vendored
Normal file
6
node_modules/systemjs/test/tests/amd-module-2.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
define([
|
||||
'./amd-module.js',
|
||||
'@empty',
|
||||
], function () {
|
||||
return { amd: true };
|
||||
});
|
13
node_modules/systemjs/test/tests/amd-module-3.js
generated
vendored
Normal file
13
node_modules/systemjs/test/tests/amd-module-3.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
define([
|
||||
// with a single-line comment
|
||||
'./amd-module.js',
|
||||
/* with a multi-line
|
||||
comment
|
||||
*/
|
||||
'./amd-module.js'
|
||||
// trailing single-line comment
|
||||
/* trailing multi-line
|
||||
comment */
|
||||
], function () {
|
||||
return { amd: true };
|
||||
});
|
4
node_modules/systemjs/test/tests/amd-module-bom.js
generated
vendored
Normal file
4
node_modules/systemjs/test/tests/amd-module-bom.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
define([], function () {
|
||||
// file starts with a byte order mark (BOM)
|
||||
return { amd: true };
|
||||
});
|
6
node_modules/systemjs/test/tests/amd-module.js
generated
vendored
Normal file
6
node_modules/systemjs/test/tests/amd-module.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
define(['./amd-dep.js'], function(d) {
|
||||
return {
|
||||
dep: d,
|
||||
amd: true
|
||||
};
|
||||
});
|
3
node_modules/systemjs/test/tests/amd-require.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/amd-require.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
define(function(require) {
|
||||
require(["tests/amd-dep.js"]);
|
||||
});
|
7
node_modules/systemjs/test/tests/amd-simplified-cjs-aliased-require1.js
generated
vendored
Normal file
7
node_modules/systemjs/test/tests/amd-simplified-cjs-aliased-require1.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
define(function(req){
|
||||
var r2 = req("./amd-simplified-cjs-aliased-require2.js");
|
||||
return {
|
||||
name: "require1",
|
||||
require2: r2
|
||||
};
|
||||
});
|
8
node_modules/systemjs/test/tests/amd-simplified-cjs-aliased-require2.js
generated
vendored
Normal file
8
node_modules/systemjs/test/tests/amd-simplified-cjs-aliased-require2.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
define(["./amd-dep.js","require"],function(amdDep, req){
|
||||
var amdCJS = req("./amd-cjs-module.js");
|
||||
return {
|
||||
name: "require2",
|
||||
amdCJS: amdCJS,
|
||||
amdDep: amdDep
|
||||
};
|
||||
});
|
10
node_modules/systemjs/test/tests/anon-named.js
generated
vendored
Normal file
10
node_modules/systemjs/test/tests/anon-named.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
define('named-in-anon', function() {
|
||||
return 'named';
|
||||
});
|
||||
|
||||
define(['named-in-anon'], function(named) {
|
||||
return {
|
||||
anon: true,
|
||||
named: named
|
||||
};
|
||||
});
|
5
node_modules/systemjs/test/tests/async.js
generated
vendored
Normal file
5
node_modules/systemjs/test/tests/async.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
// will detect as CommonJS
|
||||
if (false) require('asdf');
|
||||
|
||||
// should detect as ES6 first
|
||||
export async function p() {}
|
1
node_modules/systemjs/test/tests/bootstrap@3.1.1/test.coffee
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/bootstrap@3.1.1/test.coffee
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
exports.p = 4;
|
1
node_modules/systemjs/test/tests/branch-boolean.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/branch-boolean.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export default true;
|
1
node_modules/systemjs/test/tests/branch-ie.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/branch-ie.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export var branch = 'ie';
|
7
node_modules/systemjs/test/tests/bundle.js
generated
vendored
Normal file
7
node_modules/systemjs/test/tests/bundle.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
define('bundle-define1', function() {
|
||||
return { name: 'bundle1' };
|
||||
});
|
||||
|
||||
define('bundle-define2', function() {
|
||||
return { name: 'bundle2' };
|
||||
});
|
4
node_modules/systemjs/test/tests/cjs-circular1.js
generated
vendored
Normal file
4
node_modules/systemjs/test/tests/cjs-circular1.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
exports.first = 'first value';
|
||||
var p = require('./cjs-circular2.js').p;
|
||||
exports.first = 'second value';
|
||||
exports.firstWas = p();
|
4
node_modules/systemjs/test/tests/cjs-circular2.js
generated
vendored
Normal file
4
node_modules/systemjs/test/tests/cjs-circular2.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
var first = require('./cjs-circular1.js').first;
|
||||
exports.p = function() {
|
||||
return first;
|
||||
}
|
1
node_modules/systemjs/test/tests/cjs-exports-bom.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/cjs-exports-bom.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
exports.foo = "bar";
|
1
node_modules/systemjs/test/tests/cjs-exports-dep.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/cjs-exports-dep.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
exports.e = require('./cjs-exports.js')();
|
6
node_modules/systemjs/test/tests/cjs-exports.js
generated
vendored
Normal file
6
node_modules/systemjs/test/tests/cjs-exports.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = F;
|
||||
require('./cjs-exports-dep.js');
|
||||
function F() {
|
||||
return 'export';
|
||||
}
|
||||
module.exports = require('./cjs-exports-dep.js');
|
4
node_modules/systemjs/test/tests/cjs-format.js
generated
vendored
Normal file
4
node_modules/systemjs/test/tests/cjs-format.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
"format cjs";
|
||||
if (typeof define != 'undefined')
|
||||
define(function() {});
|
||||
exports.cjs = 'cjs';
|
3
node_modules/systemjs/test/tests/cjs-globals.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/cjs-globals.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
exports.dirname = __dirname;
|
||||
exports.filename = __filename;
|
||||
exports.global = global;
|
1
node_modules/systemjs/test/tests/cjs-loading-plugin.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/cjs-loading-plugin.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require('./test.css!');
|
1
node_modules/systemjs/test/tests/cjs-module-bom.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/cjs-module-bom.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
module.exports.foo = "bar";
|
5
node_modules/systemjs/test/tests/cjs-named-export.js
generated
vendored
Normal file
5
node_modules/systemjs/test/tests/cjs-named-export.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
var p = module.exports = function() {
|
||||
|
||||
}
|
||||
|
||||
p.someExport = 'asdf';
|
3
node_modules/systemjs/test/tests/cjs-process.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/cjs-process.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
exports.env = {
|
||||
NODE_ENV: 'dev'
|
||||
};
|
1
node_modules/systemjs/test/tests/cjs-resolve.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/cjs-resolve.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require.resolve('./a');
|
2
node_modules/systemjs/test/tests/cjs-this.js
generated
vendored
Normal file
2
node_modules/systemjs/test/tests/cjs-this.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
"format cjs";
|
||||
this.asdf = 'module value';
|
1
node_modules/systemjs/test/tests/common-js-dep.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/common-js-dep.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
exports.output = 'this is a dep';
|
2
node_modules/systemjs/test/tests/common-js-module.js
generated
vendored
Normal file
2
node_modules/systemjs/test/tests/common-js-module.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
exports.first = require('./common-js-dep.js').output;
|
||||
exports.hello = 'world';
|
1
node_modules/systemjs/test/tests/commonjs-d.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/commonjs-d.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
module.exports = 'd';
|
1
node_modules/systemjs/test/tests/commonjs-d2.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/commonjs-d2.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
module.exports = 'd6';
|
1
node_modules/systemjs/test/tests/commonjs-globals.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/commonjs-globals.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
exports.process = process;
|
28
node_modules/systemjs/test/tests/commonjs-requires.js
generated
vendored
Normal file
28
node_modules/systemjs/test/tests/commonjs-requires.js
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
exports.d1 = require(
|
||||
'./commonjs-d.js'
|
||||
);
|
||||
|
||||
exports.d2 = (require
|
||||
("./commonjs-d.js"));
|
||||
|
||||
var regex = / \/* /;
|
||||
|
||||
exports.d3 = "require('not a dep')";
|
||||
|
||||
exports.d4 = "text/* require('still not a dep') text";
|
||||
|
||||
exports.d5 = 'text \'quote\' require("yet still not a dep")';
|
||||
|
||||
var regexWithString = /asdfasdf " /;
|
||||
|
||||
exports.d6 = require('./commonjs-d2.js');
|
||||
|
||||
var regexClose = /asdf " */;
|
||||
|
||||
// This comment triggered SystemJS to do a require because of this -> require('')
|
||||
exports.d7 = 'export';
|
||||
|
||||
var p = false && require('" + "test" + "');
|
||||
|
||||
// this line shouldn't be detected
|
||||
" = require(", "),\n ";
|
5
node_modules/systemjs/test/tests/commonjs-variation.js
generated
vendored
Normal file
5
node_modules/systemjs/test/tests/commonjs-variation.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
e: (function p() {
|
||||
return require('@empty');
|
||||
})()
|
||||
}
|
8
node_modules/systemjs/test/tests/commonjs-variation2.js
generated
vendored
Normal file
8
node_modules/systemjs/test/tests/commonjs-variation2.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
Object.defineProperties(module.exports, {
|
||||
OpaqueToken: {get: function() {
|
||||
return OpaqueToken;
|
||||
}},
|
||||
__esModule: {value: true}
|
||||
});
|
||||
|
||||
function OpaqueToken() {}
|
1
node_modules/systemjs/test/tests/compiled.coffee
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/compiled.coffee
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
var p = 4;
|
4
node_modules/systemjs/test/tests/compiler-plugin.js
generated
vendored
Normal file
4
node_modules/systemjs/test/tests/compiler-plugin.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
"format cjs";
|
||||
exports.translate = function(load) {
|
||||
return 'require("tests/global.js"); exports.extra = "yay!"; \n' + load.source;
|
||||
}
|
1
node_modules/systemjs/test/tests/compiler-test.coffee
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/compiler-test.coffee
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
exports.output = "plugin output";
|
9
node_modules/systemjs/test/tests/connected-tree/a.js
generated
vendored
Normal file
9
node_modules/systemjs/test/tests/connected-tree/a.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
// a.js
|
||||
var c = require("./c.js");
|
||||
var b = require('./b.js');
|
||||
|
||||
module.exports = {
|
||||
name: "a",
|
||||
b: b,
|
||||
c: c
|
||||
};
|
6
node_modules/systemjs/test/tests/connected-tree/b.js
generated
vendored
Normal file
6
node_modules/systemjs/test/tests/connected-tree/b.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import c from "./c.js";
|
||||
|
||||
export default {
|
||||
name: "b",
|
||||
c: c
|
||||
};
|
3
node_modules/systemjs/test/tests/connected-tree/c.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/connected-tree/c.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
name: "c"
|
||||
};
|
1
node_modules/systemjs/test/tests/contextual-map-dep.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/contextual-map-dep.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
exports.mapdep = 'mapdep';
|
1
node_modules/systemjs/test/tests/contextual-test/contextual-map.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/contextual-test/contextual-map.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require('maptest');
|
3
node_modules/systemjs/test/tests/cs-loader.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/cs-loader.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
exports.translate = function translate(load) {
|
||||
return load.source.replace(/#/g, '');
|
||||
}
|
1
node_modules/systemjs/test/tests/cs/dep.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/cs/dep.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
# language_global = 'cs';
|
1
node_modules/systemjs/test/tests/cs/main.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/cs/main.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
# module.exports = language_global;
|
5
node_modules/systemjs/test/tests/csp/integrity.js
generated
vendored
Normal file
5
node_modules/systemjs/test/tests/csp/integrity.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
define(function () {
|
||||
return {
|
||||
integrity: 'integrity'
|
||||
}
|
||||
});
|
3
node_modules/systemjs/test/tests/csp/nonce.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/csp/nonce.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
nonce: 'abc'
|
||||
};
|
3
node_modules/systemjs/test/tests/csp/nonce2.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/csp/nonce2.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
nonce: 'ab'
|
||||
};
|
3
node_modules/systemjs/test/tests/css.css
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/css.css
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
body {
|
||||
background-color: #eee;
|
||||
}
|
3
node_modules/systemjs/test/tests/css.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/css.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
exports.instantiate = function(load) {
|
||||
return { pluginSource: load.source };
|
||||
}
|
1
node_modules/systemjs/test/tests/deep/deep-dep.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/deep/deep-dep.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
module.exports = {};
|
1
node_modules/systemjs/test/tests/deep/deep.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/deep/deep.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
require('./deep-dep');
|
1
node_modules/systemjs/test/tests/default1-dep.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/default1-dep.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export var q = 4;
|
3
node_modules/systemjs/test/tests/default1.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/default1.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import q from './default1-dep.js';
|
||||
export default 'default1';
|
||||
export var d = 'default1';
|
1
node_modules/systemjs/test/tests/default2.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/default2.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export default 'default2';
|
1
node_modules/systemjs/test/tests/default3.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/default3.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export default 'default3';
|
1
node_modules/systemjs/test/tests/dep.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/dep.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
define({});
|
23
node_modules/systemjs/test/tests/duplicateDeps/m1.js
generated
vendored
Normal file
23
node_modules/systemjs/test/tests/duplicateDeps/m1.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
System.register(["tests/duplicateDeps/m2.js", "tests/duplicateDeps/m2.js", "tests/duplicateDeps/m2.js"], function(exports_1) {
|
||||
var m2_1, m2_2;
|
||||
function foo() {
|
||||
return m2_1.f1() + m2_2.f2();
|
||||
}
|
||||
exports_1("foo", foo);
|
||||
return {
|
||||
setters:[
|
||||
function (_m2_1) {
|
||||
m2_1 = _m2_1;
|
||||
},
|
||||
function (_m2_2) {
|
||||
m2_2 = _m2_2;
|
||||
},
|
||||
function (_m2_3) {
|
||||
var reexports_1 = {};
|
||||
reexports_1["f3"] = _m2_3["f3"];
|
||||
exports_1(reexports_1);
|
||||
}],
|
||||
execute: function() {
|
||||
}
|
||||
}
|
||||
});
|
13
node_modules/systemjs/test/tests/duplicateDeps/m2.js
generated
vendored
Normal file
13
node_modules/systemjs/test/tests/duplicateDeps/m2.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
System.register([], function(exports_1) {
|
||||
function f1() { return 1; }
|
||||
exports_1("f1", f1);
|
||||
function f2() { return 2; }
|
||||
exports_1("f2", f2);
|
||||
function f3() { return 3; }
|
||||
exports_1("f3", f3);
|
||||
return {
|
||||
setters:[],
|
||||
execute: function() {
|
||||
}
|
||||
}
|
||||
});
|
3
node_modules/systemjs/test/tests/eaa-amd.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/eaa-amd.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
define([], function() {
|
||||
return 'AMD Module';
|
||||
});
|
1
node_modules/systemjs/test/tests/eaa-es6.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/eaa-es6.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export default 'ES6 Module';
|
3
node_modules/systemjs/test/tests/empty-es6.js
generated
vendored
Normal file
3
node_modules/systemjs/test/tests/empty-es6.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
(function(global) {
|
||||
global.emptyES6 = true;
|
||||
})(typeof window == 'undefined' ? global : window);
|
1
node_modules/systemjs/test/tests/ep/some-repo/main.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/ep/some-repo/main.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export var main = 'here';
|
1
node_modules/systemjs/test/tests/error-loader.js
generated
vendored
Normal file
1
node_modules/systemjs/test/tests/error-loader.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
require('./error.js');
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user