aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/systemjs/test/tests
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/systemjs/test/tests')
-rw-r--r--thirdparty/systemjs/test/tests/#.js1
-rw-r--r--thirdparty/systemjs/test/tests/advanced-plugin.js20
-rw-r--r--thirdparty/systemjs/test/tests/all-circular1.js9
-rw-r--r--thirdparty/systemjs/test/tests/all-circular2.js3
-rw-r--r--thirdparty/systemjs/test/tests/all-circular3.js10
-rw-r--r--thirdparty/systemjs/test/tests/all-circular4.js5
-rw-r--r--thirdparty/systemjs/test/tests/all-layers1.js3
-rw-r--r--thirdparty/systemjs/test/tests/all-layers2.js20
-rw-r--r--thirdparty/systemjs/test/tests/all-layers3.js17
-rw-r--r--thirdparty/systemjs/test/tests/all-layers4.js1
-rw-r--r--thirdparty/systemjs/test/tests/amd-bundle.js6
-rw-r--r--thirdparty/systemjs/test/tests/amd-circular1.js7
-rw-r--r--thirdparty/systemjs/test/tests/amd-circular2.js6
-rw-r--r--thirdparty/systemjs/test/tests/amd-cjs-module.js4
-rw-r--r--thirdparty/systemjs/test/tests/amd-contextual.js6
-rw-r--r--thirdparty/systemjs/test/tests/amd-dep-A.js1
-rw-r--r--thirdparty/systemjs/test/tests/amd-dep-B.js1
-rw-r--r--thirdparty/systemjs/test/tests/amd-dep.js3
-rw-r--r--thirdparty/systemjs/test/tests/amd-dynamic-require.js19
-rw-r--r--thirdparty/systemjs/test/tests/amd-dynamic.js3
-rw-r--r--thirdparty/systemjs/test/tests/amd-extra-deps.js7
-rw-r--r--thirdparty/systemjs/test/tests/amd-format.js18
-rw-r--r--thirdparty/systemjs/test/tests/amd-module-2.js6
-rw-r--r--thirdparty/systemjs/test/tests/amd-module-3.js13
-rw-r--r--thirdparty/systemjs/test/tests/amd-module-bom.js4
-rw-r--r--thirdparty/systemjs/test/tests/amd-module.js6
-rw-r--r--thirdparty/systemjs/test/tests/amd-require.js3
-rw-r--r--thirdparty/systemjs/test/tests/amd-simplified-cjs-aliased-require1.js7
-rw-r--r--thirdparty/systemjs/test/tests/amd-simplified-cjs-aliased-require2.js8
-rw-r--r--thirdparty/systemjs/test/tests/anon-named.js10
-rw-r--r--thirdparty/systemjs/test/tests/async.js5
-rw-r--r--thirdparty/systemjs/test/tests/bootstrap@3.1.1/test.coffee1
-rw-r--r--thirdparty/systemjs/test/tests/branch-boolean.js1
-rw-r--r--thirdparty/systemjs/test/tests/branch-ie.js1
-rw-r--r--thirdparty/systemjs/test/tests/bundle.js7
-rw-r--r--thirdparty/systemjs/test/tests/cjs-circular1.js4
-rw-r--r--thirdparty/systemjs/test/tests/cjs-circular2.js4
-rw-r--r--thirdparty/systemjs/test/tests/cjs-exports-bom.js1
-rw-r--r--thirdparty/systemjs/test/tests/cjs-exports-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/cjs-exports.js6
-rw-r--r--thirdparty/systemjs/test/tests/cjs-format.js4
-rw-r--r--thirdparty/systemjs/test/tests/cjs-globals.js3
-rw-r--r--thirdparty/systemjs/test/tests/cjs-loading-plugin.js1
-rw-r--r--thirdparty/systemjs/test/tests/cjs-module-bom.js1
-rw-r--r--thirdparty/systemjs/test/tests/cjs-named-export.js5
-rw-r--r--thirdparty/systemjs/test/tests/cjs-process.js3
-rw-r--r--thirdparty/systemjs/test/tests/cjs-resolve.js1
-rw-r--r--thirdparty/systemjs/test/tests/cjs-this.js2
-rw-r--r--thirdparty/systemjs/test/tests/common-js-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/common-js-module.js2
-rw-r--r--thirdparty/systemjs/test/tests/commonjs-d.js1
-rw-r--r--thirdparty/systemjs/test/tests/commonjs-d2.js1
-rw-r--r--thirdparty/systemjs/test/tests/commonjs-globals.js1
-rw-r--r--thirdparty/systemjs/test/tests/commonjs-requires.js40
-rw-r--r--thirdparty/systemjs/test/tests/commonjs-variation.js5
-rw-r--r--thirdparty/systemjs/test/tests/commonjs-variation2.js8
-rw-r--r--thirdparty/systemjs/test/tests/compiled.coffee1
-rw-r--r--thirdparty/systemjs/test/tests/compiler-plugin.js4
-rw-r--r--thirdparty/systemjs/test/tests/compiler-test.coffee1
-rw-r--r--thirdparty/systemjs/test/tests/connected-tree/a.js9
-rw-r--r--thirdparty/systemjs/test/tests/connected-tree/b.js6
-rw-r--r--thirdparty/systemjs/test/tests/connected-tree/c.js3
-rw-r--r--thirdparty/systemjs/test/tests/contextual-map-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/contextual-test/contextual-map.js1
-rw-r--r--thirdparty/systemjs/test/tests/cs-loader.js3
-rw-r--r--thirdparty/systemjs/test/tests/cs/dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/cs/main.js1
-rw-r--r--thirdparty/systemjs/test/tests/csp/integrity.js5
-rw-r--r--thirdparty/systemjs/test/tests/csp/nonce.js3
-rw-r--r--thirdparty/systemjs/test/tests/csp/nonce2.js3
-rw-r--r--thirdparty/systemjs/test/tests/css.css3
-rw-r--r--thirdparty/systemjs/test/tests/css.js3
-rw-r--r--thirdparty/systemjs/test/tests/deep/deep-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/deep/deep.js1
-rw-r--r--thirdparty/systemjs/test/tests/default1-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/default1.js3
-rw-r--r--thirdparty/systemjs/test/tests/default2.js1
-rw-r--r--thirdparty/systemjs/test/tests/default3.js1
-rw-r--r--thirdparty/systemjs/test/tests/dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/duplicateDeps/m1.js23
-rw-r--r--thirdparty/systemjs/test/tests/duplicateDeps/m2.js13
-rw-r--r--thirdparty/systemjs/test/tests/eaa-amd.js3
-rw-r--r--thirdparty/systemjs/test/tests/eaa-es6.js1
-rw-r--r--thirdparty/systemjs/test/tests/empty-es6.js3
-rw-r--r--thirdparty/systemjs/test/tests/ep/some-repo/main.js1
-rw-r--r--thirdparty/systemjs/test/tests/error-loader.js1
-rw-r--r--thirdparty/systemjs/test/tests/error-loader2.js1
-rw-r--r--thirdparty/systemjs/test/tests/error.js1
-rw-r--r--thirdparty/systemjs/test/tests/es-module-flag.js3
-rw-r--r--thirdparty/systemjs/test/tests/es-named-import-cjs-cjs.js3
-rw-r--r--thirdparty/systemjs/test/tests/es-named-import-cjs.js2
-rw-r--r--thirdparty/systemjs/test/tests/es6-and-amd.js2
-rw-r--r--thirdparty/systemjs/test/tests/es6-circular1.js10
-rw-r--r--thirdparty/systemjs/test/tests/es6-circular2.js3
-rw-r--r--thirdparty/systemjs/test/tests/es6-cjs-named-export.js1
-rw-r--r--thirdparty/systemjs/test/tests/es6-detection1.js1
-rw-r--r--thirdparty/systemjs/test/tests/es6-format.js6
-rw-r--r--thirdparty/systemjs/test/tests/es6-import-star-amd.js3
-rw-r--r--thirdparty/systemjs/test/tests/es6-loading-amd-dep.js3
-rw-r--r--thirdparty/systemjs/test/tests/es6-loading-amd.js9
-rw-r--r--thirdparty/systemjs/test/tests/es6-plugin.js3
-rw-r--r--thirdparty/systemjs/test/tests/esm-dep.js5
-rw-r--r--thirdparty/systemjs/test/tests/esm-with-deps.js1
-rw-r--r--thirdparty/systemjs/test/tests/export-star.js2
-rw-r--r--thirdparty/systemjs/test/tests/foo.js10
-rw-r--r--thirdparty/systemjs/test/tests/global-dep.js5
-rw-r--r--thirdparty/systemjs/test/tests/global-encapsulation.js3
-rw-r--r--thirdparty/systemjs/test/tests/global-exports-array.js5
-rw-r--r--thirdparty/systemjs/test/tests/global-inaccessible-props.js8
-rw-r--r--thirdparty/systemjs/test/tests/global-inline-dep.js7
-rw-r--r--thirdparty/systemjs/test/tests/global-inline-export.js9
-rw-r--r--thirdparty/systemjs/test/tests/global-multi-diff.js3
-rw-r--r--thirdparty/systemjs/test/tests/global-multi.js6
-rw-r--r--thirdparty/systemjs/test/tests/global-shim-amd.js6
-rw-r--r--thirdparty/systemjs/test/tests/global-shim-config-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/global-shim-config-exports.js1
-rw-r--r--thirdparty/systemjs/test/tests/global-shim-config.js3
-rw-r--r--thirdparty/systemjs/test/tests/global-single-compiled.js9
-rw-r--r--thirdparty/systemjs/test/tests/global-single.js1
-rw-r--r--thirdparty/systemjs/test/tests/global-with-export.js5
-rw-r--r--thirdparty/systemjs/test/tests/global.js6
-rw-r--r--thirdparty/systemjs/test/tests/group-test.js34
-rw-r--r--thirdparty/systemjs/test/tests/hbs.hbs1
-rw-r--r--thirdparty/systemjs/test/tests/inline-depends-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/inline-depends.js1
-rw-r--r--thirdparty/systemjs/test/tests/jquery-named.js3
-rw-r--r--thirdparty/systemjs/test/tests/jquery.js2
-rw-r--r--thirdparty/systemjs/test/tests/legacy-plugin.js5
-rw-r--r--thirdparty/systemjs/test/tests/loader-scoping.js1
-rw-r--r--thirdparty/systemjs/test/tests/main-bundle.js3
-rw-r--r--thirdparty/systemjs/test/tests/main-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/main.js1
-rw-r--r--thirdparty/systemjs/test/tests/map-test-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/map-test.js1
-rw-r--r--thirdparty/systemjs/test/tests/map-test/sub.js1
-rw-r--r--thirdparty/systemjs/test/tests/map-version.js1
-rw-r--r--thirdparty/systemjs/test/tests/meta-deps.js21
-rw-r--r--thirdparty/systemjs/test/tests/meta-override.js2
-rw-r--r--thirdparty/systemjs/test/tests/mixed-bundle.js68
-rw-r--r--thirdparty/systemjs/test/tests/modA.js7
-rw-r--r--thirdparty/systemjs/test/tests/modC.js5
-rw-r--r--thirdparty/systemjs/test/tests/module-name.js8
-rw-r--r--thirdparty/systemjs/test/tests/module.js3
-rw-r--r--thirdparty/systemjs/test/tests/multiple-anonymous.js14
-rw-r--r--thirdparty/systemjs/test/tests/mypackage/index.js1
-rw-r--r--thirdparty/systemjs/test/tests/mypackage/lib/bar.js2
-rw-r--r--thirdparty/systemjs/test/tests/mypackage/src/foo.js3
-rw-r--r--thirdparty/systemjs/test/tests/nameddefine.js14
-rw-r--r--thirdparty/systemjs/test/tests/no-default-ext/file.ext1
-rw-r--r--thirdparty/systemjs/test/tests/normalize-hook-test.js1
-rw-r--r--thirdparty/systemjs/test/tests/out.js19
-rw-r--r--thirdparty/systemjs/test/tests/package-local-alias/index-cjs.js6
-rw-r--r--thirdparty/systemjs/test/tests/package-local-alias/index-default-cjs.js10
-rw-r--r--thirdparty/systemjs/test/tests/package-local-alias/index-default-esm.js10
-rw-r--r--thirdparty/systemjs/test/tests/package-local-alias/index-esm.js5
-rw-r--r--thirdparty/systemjs/test/tests/package-local-alias/local/index-cjs.js1
-rw-r--r--thirdparty/systemjs/test/tests/package-local-alias/local/index-default-cjs.js1
-rw-r--r--thirdparty/systemjs/test/tests/package-local-alias/local/index-default-esm.js2
-rw-r--r--thirdparty/systemjs/test/tests/package-local-alias/local/index-esm.js1
-rw-r--r--thirdparty/systemjs/test/tests/path/deep.js1
-rw-r--r--thirdparty/systemjs/test/tests/plugin-dep.js8
-rw-r--r--thirdparty/systemjs/test/tests/plugin@1.2.3/plugin.js3
-rw-r--r--thirdparty/systemjs/test/tests/reflection.js1
-rw-r--r--thirdparty/systemjs/test/tests/register-circular1.js24
-rw-r--r--thirdparty/systemjs/test/tests/register-circular2.js14
-rw-r--r--thirdparty/systemjs/test/tests/register-default-extension.js8
-rw-r--r--thirdparty/systemjs/test/tests/register-regex-2.js15
-rw-r--r--thirdparty/systemjs/test/tests/register-regex.js18
-rw-r--r--thirdparty/systemjs/test/tests/registerdynamic-main.js11
-rw-r--r--thirdparty/systemjs/test/tests/registerdynamic-notbundled.js5
-rw-r--r--thirdparty/systemjs/test/tests/reldynamic.js5
-rw-r--r--thirdparty/systemjs/test/tests/reldynamicdep.js1
-rw-r--r--thirdparty/systemjs/test/tests/shared-dep-bundles/a.js33
-rw-r--r--thirdparty/systemjs/test/tests/shared-dep-bundles/b.js33
-rw-r--r--thirdparty/systemjs/test/tests/shim-map-test-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/shim-package/shim-map-test.js1
-rw-r--r--thirdparty/systemjs/test/tests/some-json.json3
-rw-r--r--thirdparty/systemjs/test/tests/some-text.txt1
-rw-r--r--thirdparty/systemjs/test/tests/star-dep.js1
-rw-r--r--thirdparty/systemjs/test/tests/subcontextual-map/submodule.js3
-rw-r--r--thirdparty/systemjs/test/tests/subcontextual-mapdep.js1
-rw-r--r--thirdparty/systemjs/test/tests/test.css1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/depcache-test.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/dir/index.js2
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/dir/self-load.js2
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/dir2/index.json3
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/env-module-browser.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/env-module.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/index.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/interpolate.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/json.js4
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/json.json3
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/polate.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/self-load.js2
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/self.js1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/system.json28
-rw-r--r--thirdparty/systemjs/test/tests/testpkg/test.ts1
-rw-r--r--thirdparty/systemjs/test/tests/testpkg2.json6
-rw-r--r--thirdparty/systemjs/test/tests/testpkg2/asdf.asdf.js3
-rw-r--r--thirdparty/systemjs/test/tests/typescript.ts1
-rw-r--r--thirdparty/systemjs/test/tests/umd-dep.js3
-rw-r--r--thirdparty/systemjs/test/tests/umd.js10
-rw-r--r--thirdparty/systemjs/test/tests/versioned@2.0.3.js1
-rw-r--r--thirdparty/systemjs/test/tests/wildcard-test/2.js1
-rw-r--r--thirdparty/systemjs/test/tests/wildcard-test/2/sub.js1
-rw-r--r--thirdparty/systemjs/test/tests/wildcard-test/first.js1
-rw-r--r--thirdparty/systemjs/test/tests/with-global-deps.js1
-rw-r--r--thirdparty/systemjs/test/tests/with-runtime-babel.js16
-rw-r--r--thirdparty/systemjs/test/tests/with-runtime-traceur.js14
-rw-r--r--thirdparty/systemjs/test/tests/worker-babel.js14
-rw-r--r--thirdparty/systemjs/test/tests/worker-traceur.js12
-rw-r--r--thirdparty/systemjs/test/tests/worker-typescript.js16
-rw-r--r--thirdparty/systemjs/test/tests/wrapper.js1
-rw-r--r--thirdparty/systemjs/test/tests/zero@0.js1
214 files changed, 1194 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/tests/#.js b/thirdparty/systemjs/test/tests/#.js
new file mode 100644
index 000000000..0cf86a864
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/#.js
@@ -0,0 +1 @@
+module.exports = '#'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/advanced-plugin.js b/thirdparty/systemjs/test/tests/advanced-plugin.js
new file mode 100644
index 000000000..26c6a450c
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/advanced-plugin.js
@@ -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 + '";';
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/all-circular1.js b/thirdparty/systemjs/test/tests/all-circular1.js
new file mode 100644
index 000000000..131dfecce
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/all-circular1.js
@@ -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 }; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/all-circular2.js b/thirdparty/systemjs/test/tests/all-circular2.js
new file mode 100644
index 000000000..c88eceb9c
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/all-circular2.js
@@ -0,0 +1,3 @@
+import { p } from './all-circular1.js';
+export var a = 4;
+p(); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/all-circular3.js b/thirdparty/systemjs/test/tests/all-circular3.js
new file mode 100644
index 000000000..fea5e3f22
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/all-circular3.js
@@ -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();
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/all-circular4.js b/thirdparty/systemjs/test/tests/all-circular4.js
new file mode 100644
index 000000000..692445730
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/all-circular4.js
@@ -0,0 +1,5 @@
+exports.obj = { circular: 'mess' };
+var setter = require('./all-circular3.js');
+exports.set = function() {
+ setter.setObj();
+}
diff --git a/thirdparty/systemjs/test/tests/all-layers1.js b/thirdparty/systemjs/test/tests/all-layers1.js
new file mode 100644
index 000000000..2dea20d17
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/all-layers1.js
@@ -0,0 +1,3 @@
+define(['./all-layers2.js'], function(al2) {
+ return al2.q == 10 && al2.r == 5;
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/all-layers2.js b/thirdparty/systemjs/test/tests/all-layers2.js
new file mode 100644
index 000000000..a4a72e128
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/all-layers2.js
@@ -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();
+ }
+ };
+});
diff --git a/thirdparty/systemjs/test/tests/all-layers3.js b/thirdparty/systemjs/test/tests/all-layers3.js
new file mode 100644
index 000000000..ac519f19a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/all-layers3.js
@@ -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();
+ }
+ };
+});
diff --git a/thirdparty/systemjs/test/tests/all-layers4.js b/thirdparty/systemjs/test/tests/all-layers4.js
new file mode 100644
index 000000000..4a2d7bf8a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/all-layers4.js
@@ -0,0 +1 @@
+export var c = 10; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-bundle.js b/thirdparty/systemjs/test/tests/amd-bundle.js
new file mode 100644
index 000000000..8856e2db9
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-bundle.js
@@ -0,0 +1,6 @@
+define('bundle-1', function() {
+ return { defined: true };
+});
+define('bundle-2', function() {
+ return { defined: true };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-circular1.js b/thirdparty/systemjs/test/tests/amd-circular1.js
new file mode 100644
index 000000000..2533e9bfd
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-circular1.js
@@ -0,0 +1,7 @@
+define(function(require, exports) {
+ var depFunc = require('./amd-circular2.js').fn;
+ exports.val = 5;
+ exports.outFunc = function() {
+ return depFunc();
+ }
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-circular2.js b/thirdparty/systemjs/test/tests/amd-circular2.js
new file mode 100644
index 000000000..df9254d24
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-circular2.js
@@ -0,0 +1,6 @@
+define(function(require, exports) {
+ var circular1 = require('./amd-circular1.js');
+ exports.fn = function() {
+ return circular1.val;
+ }
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-cjs-module.js b/thirdparty/systemjs/test/tests/amd-cjs-module.js
new file mode 100644
index 000000000..1ac2c3e1a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-cjs-module.js
@@ -0,0 +1,4 @@
+define(function(require, exports) {
+ var p = require('./amd-dep.js');
+ exports.test = 'hi';
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-contextual.js b/thirdparty/systemjs/test/tests/amd-contextual.js
new file mode 100644
index 000000000..b5e886297
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-contextual.js
@@ -0,0 +1,6 @@
+define(['require', 'module'], function(require, module) {
+ return {
+ name: module.uri,
+ rel: require.toUrl('../rel-path.js')
+ };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-dep-A.js b/thirdparty/systemjs/test/tests/amd-dep-A.js
new file mode 100644
index 000000000..c047cc49f
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-dep-A.js
@@ -0,0 +1 @@
+A = 10; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-dep-B.js b/thirdparty/systemjs/test/tests/amd-dep-B.js
new file mode 100644
index 000000000..6f5b4c6b0
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-dep-B.js
@@ -0,0 +1 @@
+B = 5; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-dep.js b/thirdparty/systemjs/test/tests/amd-dep.js
new file mode 100644
index 000000000..4ad8f7e5c
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-dep.js
@@ -0,0 +1,3 @@
+define({
+ amd: 'dep'
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-dynamic-require.js b/thirdparty/systemjs/test/tests/amd-dynamic-require.js
new file mode 100644
index 000000000..6b7315dc3
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-dynamic-require.js
@@ -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;
+ }
+ };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-dynamic.js b/thirdparty/systemjs/test/tests/amd-dynamic.js
new file mode 100644
index 000000000..88692ae46
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-dynamic.js
@@ -0,0 +1,3 @@
+define(function() {
+ return 'dynamic';
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-extra-deps.js b/thirdparty/systemjs/test/tests/amd-extra-deps.js
new file mode 100644
index 000000000..86b8777ff
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-extra-deps.js
@@ -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];
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-format.js b/thirdparty/systemjs/test/tests/amd-format.js
new file mode 100644
index 000000000..3bc01fe38
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-format.js
@@ -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';
+
diff --git a/thirdparty/systemjs/test/tests/amd-module-2.js b/thirdparty/systemjs/test/tests/amd-module-2.js
new file mode 100644
index 000000000..5fdcb3e58
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-module-2.js
@@ -0,0 +1,6 @@
+define([
+ './amd-module.js',
+ '@empty',
+], function () {
+ return { amd: true };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-module-3.js b/thirdparty/systemjs/test/tests/amd-module-3.js
new file mode 100644
index 000000000..6c9128051
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-module-3.js
@@ -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 };
+});
diff --git a/thirdparty/systemjs/test/tests/amd-module-bom.js b/thirdparty/systemjs/test/tests/amd-module-bom.js
new file mode 100644
index 000000000..0f3de0b7f
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-module-bom.js
@@ -0,0 +1,4 @@
+define([], function () {
+ // file starts with a byte order mark (BOM)
+ return { amd: true };
+});
diff --git a/thirdparty/systemjs/test/tests/amd-module.js b/thirdparty/systemjs/test/tests/amd-module.js
new file mode 100644
index 000000000..3cb3d58cf
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-module.js
@@ -0,0 +1,6 @@
+define(['./amd-dep.js'], function(d) {
+ return {
+ dep: d,
+ amd: true
+ };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/amd-require.js b/thirdparty/systemjs/test/tests/amd-require.js
new file mode 100644
index 000000000..1db1c8a16
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-require.js
@@ -0,0 +1,3 @@
+define(function(require) {
+ require(["tests/amd-dep.js"]);
+});
diff --git a/thirdparty/systemjs/test/tests/amd-simplified-cjs-aliased-require1.js b/thirdparty/systemjs/test/tests/amd-simplified-cjs-aliased-require1.js
new file mode 100644
index 000000000..819ca44c1
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-simplified-cjs-aliased-require1.js
@@ -0,0 +1,7 @@
+define(function(req){
+ var r2 = req("./amd-simplified-cjs-aliased-require2.js");
+ return {
+ name: "require1",
+ require2: r2
+ };
+});
diff --git a/thirdparty/systemjs/test/tests/amd-simplified-cjs-aliased-require2.js b/thirdparty/systemjs/test/tests/amd-simplified-cjs-aliased-require2.js
new file mode 100644
index 000000000..be391226a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/amd-simplified-cjs-aliased-require2.js
@@ -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
+ };
+});
diff --git a/thirdparty/systemjs/test/tests/anon-named.js b/thirdparty/systemjs/test/tests/anon-named.js
new file mode 100644
index 000000000..6d0a61315
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/anon-named.js
@@ -0,0 +1,10 @@
+define('named-in-anon', function() {
+ return 'named';
+});
+
+define(['named-in-anon'], function(named) {
+ return {
+ anon: true,
+ named: named
+ };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/async.js b/thirdparty/systemjs/test/tests/async.js
new file mode 100644
index 000000000..f25bf5a81
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/async.js
@@ -0,0 +1,5 @@
+// will detect as CommonJS
+if (false) require('asdf');
+
+// should detect as ES6 first
+export async function p() {} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/bootstrap@3.1.1/test.coffee b/thirdparty/systemjs/test/tests/bootstrap@3.1.1/test.coffee
new file mode 100644
index 000000000..fc0891795
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/bootstrap@3.1.1/test.coffee
@@ -0,0 +1 @@
+exports.p = 4;
diff --git a/thirdparty/systemjs/test/tests/branch-boolean.js b/thirdparty/systemjs/test/tests/branch-boolean.js
new file mode 100644
index 000000000..bc5b6ccdb
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/branch-boolean.js
@@ -0,0 +1 @@
+export default true; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/branch-ie.js b/thirdparty/systemjs/test/tests/branch-ie.js
new file mode 100644
index 000000000..ea184442e
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/branch-ie.js
@@ -0,0 +1 @@
+export var branch = 'ie'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/bundle.js b/thirdparty/systemjs/test/tests/bundle.js
new file mode 100644
index 000000000..d69e7ca69
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/bundle.js
@@ -0,0 +1,7 @@
+define('bundle-define1', function() {
+ return { name: 'bundle1' };
+});
+
+define('bundle-define2', function() {
+ return { name: 'bundle2' };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-circular1.js b/thirdparty/systemjs/test/tests/cjs-circular1.js
new file mode 100644
index 000000000..f2946cf87
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-circular1.js
@@ -0,0 +1,4 @@
+exports.first = 'first value';
+var p = require('./cjs-circular2.js').p;
+exports.first = 'second value';
+exports.firstWas = p(); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-circular2.js b/thirdparty/systemjs/test/tests/cjs-circular2.js
new file mode 100644
index 000000000..b6c8d87e4
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-circular2.js
@@ -0,0 +1,4 @@
+var first = require('./cjs-circular1.js').first;
+exports.p = function() {
+ return first;
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-exports-bom.js b/thirdparty/systemjs/test/tests/cjs-exports-bom.js
new file mode 100644
index 000000000..a3174cc3c
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-exports-bom.js
@@ -0,0 +1 @@
+exports.foo = "bar"; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-exports-dep.js b/thirdparty/systemjs/test/tests/cjs-exports-dep.js
new file mode 100644
index 000000000..326bed6cf
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-exports-dep.js
@@ -0,0 +1 @@
+exports.e = require('./cjs-exports.js')(); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-exports.js b/thirdparty/systemjs/test/tests/cjs-exports.js
new file mode 100644
index 000000000..fdd99ca92
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-exports.js
@@ -0,0 +1,6 @@
+module.exports = F;
+require('./cjs-exports-dep.js');
+function F() {
+ return 'export';
+}
+module.exports = require('./cjs-exports-dep.js'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-format.js b/thirdparty/systemjs/test/tests/cjs-format.js
new file mode 100644
index 000000000..7ac68dc97
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-format.js
@@ -0,0 +1,4 @@
+"format cjs";
+if (typeof define != 'undefined')
+ define(function() {});
+exports.cjs = 'cjs';
diff --git a/thirdparty/systemjs/test/tests/cjs-globals.js b/thirdparty/systemjs/test/tests/cjs-globals.js
new file mode 100644
index 000000000..d71e2ed57
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-globals.js
@@ -0,0 +1,3 @@
+exports.dirname = __dirname;
+exports.filename = __filename;
+exports.global = global; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-loading-plugin.js b/thirdparty/systemjs/test/tests/cjs-loading-plugin.js
new file mode 100644
index 000000000..11dc2a5a4
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-loading-plugin.js
@@ -0,0 +1 @@
+module.exports = require('./test.css!'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-module-bom.js b/thirdparty/systemjs/test/tests/cjs-module-bom.js
new file mode 100644
index 000000000..2176395e8
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-module-bom.js
@@ -0,0 +1 @@
+module.exports.foo = "bar"; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-named-export.js b/thirdparty/systemjs/test/tests/cjs-named-export.js
new file mode 100644
index 000000000..6609eeafc
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-named-export.js
@@ -0,0 +1,5 @@
+var p = module.exports = function() {
+
+}
+
+p.someExport = 'asdf'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-process.js b/thirdparty/systemjs/test/tests/cjs-process.js
new file mode 100644
index 000000000..7f750c112
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-process.js
@@ -0,0 +1,3 @@
+exports.env = {
+ NODE_ENV: 'dev'
+}; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-resolve.js b/thirdparty/systemjs/test/tests/cjs-resolve.js
new file mode 100644
index 000000000..8461373e9
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-resolve.js
@@ -0,0 +1 @@
+module.exports = require.resolve('./a'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cjs-this.js b/thirdparty/systemjs/test/tests/cjs-this.js
new file mode 100644
index 000000000..79a4bb5db
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cjs-this.js
@@ -0,0 +1,2 @@
+"format cjs";
+this.asdf = 'module value'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/common-js-dep.js b/thirdparty/systemjs/test/tests/common-js-dep.js
new file mode 100644
index 000000000..3543bf0bf
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/common-js-dep.js
@@ -0,0 +1 @@
+exports.output = 'this is a dep'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/common-js-module.js b/thirdparty/systemjs/test/tests/common-js-module.js
new file mode 100644
index 000000000..c7b6c12ee
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/common-js-module.js
@@ -0,0 +1,2 @@
+exports.first = require('./common-js-dep.js').output;
+exports.hello = 'world';
diff --git a/thirdparty/systemjs/test/tests/commonjs-d.js b/thirdparty/systemjs/test/tests/commonjs-d.js
new file mode 100644
index 000000000..b23a181b8
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/commonjs-d.js
@@ -0,0 +1 @@
+module.exports = 'd'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/commonjs-d2.js b/thirdparty/systemjs/test/tests/commonjs-d2.js
new file mode 100644
index 000000000..3b340b2e0
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/commonjs-d2.js
@@ -0,0 +1 @@
+module.exports = 'd6'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/commonjs-globals.js b/thirdparty/systemjs/test/tests/commonjs-globals.js
new file mode 100644
index 000000000..44194a0db
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/commonjs-globals.js
@@ -0,0 +1 @@
+exports.process = process; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/commonjs-requires.js b/thirdparty/systemjs/test/tests/commonjs-requires.js
new file mode 100644
index 000000000..af80d8058
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/commonjs-requires.js
@@ -0,0 +1,40 @@
+exports.d6 =
+/**/require('./commonjs-d2.js');
+
+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 " /;
+
+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 ";
+
+
+/*
+
+Unsolved breaking cases:
+
+var regex = / " /; var string = " /* " // one line;
+require('asdf') // <- this will now be skipped as it will be in the '/*' comment
+*//*
+
+*/ \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/commonjs-variation.js b/thirdparty/systemjs/test/tests/commonjs-variation.js
new file mode 100644
index 000000000..bf8b8c27e
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/commonjs-variation.js
@@ -0,0 +1,5 @@
+module.exports = {
+ e: (function p() {
+ return require('@empty');
+ })()
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/commonjs-variation2.js b/thirdparty/systemjs/test/tests/commonjs-variation2.js
new file mode 100644
index 000000000..f7a25047b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/commonjs-variation2.js
@@ -0,0 +1,8 @@
+Object.defineProperties(module.exports, {
+ OpaqueToken: {get: function() {
+ return OpaqueToken;
+ }},
+ __esModule: {value: true}
+});
+
+function OpaqueToken() {} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/compiled.coffee b/thirdparty/systemjs/test/tests/compiled.coffee
new file mode 100644
index 000000000..dd46ac6f7
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/compiled.coffee
@@ -0,0 +1 @@
+var p = 4; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/compiler-plugin.js b/thirdparty/systemjs/test/tests/compiler-plugin.js
new file mode 100644
index 000000000..e7068fae3
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/compiler-plugin.js
@@ -0,0 +1,4 @@
+"format cjs";
+exports.translate = function(load) {
+ return 'require("tests/global.js"); exports.extra = "yay!"; \n' + load.source;
+}
diff --git a/thirdparty/systemjs/test/tests/compiler-test.coffee b/thirdparty/systemjs/test/tests/compiler-test.coffee
new file mode 100644
index 000000000..a79cb03b2
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/compiler-test.coffee
@@ -0,0 +1 @@
+exports.output = "plugin output";
diff --git a/thirdparty/systemjs/test/tests/connected-tree/a.js b/thirdparty/systemjs/test/tests/connected-tree/a.js
new file mode 100644
index 000000000..2ffbcaa58
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/connected-tree/a.js
@@ -0,0 +1,9 @@
+// a.js
+var c = require("./c.js");
+var b = require('./b.js');
+
+module.exports = {
+ name: "a",
+ b: b,
+ c: c
+};
diff --git a/thirdparty/systemjs/test/tests/connected-tree/b.js b/thirdparty/systemjs/test/tests/connected-tree/b.js
new file mode 100644
index 000000000..0e658df66
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/connected-tree/b.js
@@ -0,0 +1,6 @@
+import c from "./c.js";
+
+export default {
+ name: "b",
+ c: c
+};
diff --git a/thirdparty/systemjs/test/tests/connected-tree/c.js b/thirdparty/systemjs/test/tests/connected-tree/c.js
new file mode 100644
index 000000000..e885e1138
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/connected-tree/c.js
@@ -0,0 +1,3 @@
+module.exports = {
+ name: "c"
+}; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/contextual-map-dep.js b/thirdparty/systemjs/test/tests/contextual-map-dep.js
new file mode 100644
index 000000000..c2898baa8
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/contextual-map-dep.js
@@ -0,0 +1 @@
+exports.mapdep = 'mapdep';
diff --git a/thirdparty/systemjs/test/tests/contextual-test/contextual-map.js b/thirdparty/systemjs/test/tests/contextual-test/contextual-map.js
new file mode 100644
index 000000000..c3192b867
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/contextual-test/contextual-map.js
@@ -0,0 +1 @@
+module.exports = require('maptest');
diff --git a/thirdparty/systemjs/test/tests/cs-loader.js b/thirdparty/systemjs/test/tests/cs-loader.js
new file mode 100644
index 000000000..cc24b3fe9
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cs-loader.js
@@ -0,0 +1,3 @@
+exports.translate = function translate(load) {
+ return load.source.replace(/#/g, '');
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cs/dep.js b/thirdparty/systemjs/test/tests/cs/dep.js
new file mode 100644
index 000000000..168695856
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cs/dep.js
@@ -0,0 +1 @@
+# language_global = 'cs'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/cs/main.js b/thirdparty/systemjs/test/tests/cs/main.js
new file mode 100644
index 000000000..e4960c7c9
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/cs/main.js
@@ -0,0 +1 @@
+# module.exports = language_global; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/csp/integrity.js b/thirdparty/systemjs/test/tests/csp/integrity.js
new file mode 100644
index 000000000..0cd357c7a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/csp/integrity.js
@@ -0,0 +1,5 @@
+define(function () {
+ return {
+ integrity: 'integrity'
+ }
+});
diff --git a/thirdparty/systemjs/test/tests/csp/nonce.js b/thirdparty/systemjs/test/tests/csp/nonce.js
new file mode 100644
index 000000000..35dee5ee5
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/csp/nonce.js
@@ -0,0 +1,3 @@
+module.exports = {
+ nonce: 'abc'
+};
diff --git a/thirdparty/systemjs/test/tests/csp/nonce2.js b/thirdparty/systemjs/test/tests/csp/nonce2.js
new file mode 100644
index 000000000..1c6556170
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/csp/nonce2.js
@@ -0,0 +1,3 @@
+module.exports = {
+ nonce: 'ab'
+};
diff --git a/thirdparty/systemjs/test/tests/css.css b/thirdparty/systemjs/test/tests/css.css
new file mode 100644
index 000000000..287755162
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/css.css
@@ -0,0 +1,3 @@
+body {
+ background-color: #eee;
+}
diff --git a/thirdparty/systemjs/test/tests/css.js b/thirdparty/systemjs/test/tests/css.js
new file mode 100644
index 000000000..c0a3875e2
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/css.js
@@ -0,0 +1,3 @@
+exports.instantiate = function(load) {
+ return { pluginSource: load.source };
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/deep/deep-dep.js b/thirdparty/systemjs/test/tests/deep/deep-dep.js
new file mode 100644
index 000000000..f053ebf79
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/deep/deep-dep.js
@@ -0,0 +1 @@
+module.exports = {};
diff --git a/thirdparty/systemjs/test/tests/deep/deep.js b/thirdparty/systemjs/test/tests/deep/deep.js
new file mode 100644
index 000000000..cb3befa5f
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/deep/deep.js
@@ -0,0 +1 @@
+require('./deep-dep');
diff --git a/thirdparty/systemjs/test/tests/default1-dep.js b/thirdparty/systemjs/test/tests/default1-dep.js
new file mode 100644
index 000000000..8771ac87f
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/default1-dep.js
@@ -0,0 +1 @@
+export var q = 4;
diff --git a/thirdparty/systemjs/test/tests/default1.js b/thirdparty/systemjs/test/tests/default1.js
new file mode 100644
index 000000000..1ff5f0108
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/default1.js
@@ -0,0 +1,3 @@
+import q from './default1-dep.js';
+export default 'default1';
+export var d = 'default1'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/default2.js b/thirdparty/systemjs/test/tests/default2.js
new file mode 100644
index 000000000..db40d327f
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/default2.js
@@ -0,0 +1 @@
+export default 'default2'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/default3.js b/thirdparty/systemjs/test/tests/default3.js
new file mode 100644
index 000000000..fd3505e99
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/default3.js
@@ -0,0 +1 @@
+export default 'default3'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/dep.js b/thirdparty/systemjs/test/tests/dep.js
new file mode 100644
index 000000000..20e4f186b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/dep.js
@@ -0,0 +1 @@
+define({});
diff --git a/thirdparty/systemjs/test/tests/duplicateDeps/m1.js b/thirdparty/systemjs/test/tests/duplicateDeps/m1.js
new file mode 100644
index 000000000..77b7efb3b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/duplicateDeps/m1.js
@@ -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() {
+ }
+ }
+});
diff --git a/thirdparty/systemjs/test/tests/duplicateDeps/m2.js b/thirdparty/systemjs/test/tests/duplicateDeps/m2.js
new file mode 100644
index 000000000..03f71ea8e
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/duplicateDeps/m2.js
@@ -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() {
+ }
+ }
+});
diff --git a/thirdparty/systemjs/test/tests/eaa-amd.js b/thirdparty/systemjs/test/tests/eaa-amd.js
new file mode 100644
index 000000000..65843b0f4
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/eaa-amd.js
@@ -0,0 +1,3 @@
+define([], function() {
+ return 'AMD Module';
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/eaa-es6.js b/thirdparty/systemjs/test/tests/eaa-es6.js
new file mode 100644
index 000000000..1a2fd7edc
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/eaa-es6.js
@@ -0,0 +1 @@
+export default 'ES6 Module'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/empty-es6.js b/thirdparty/systemjs/test/tests/empty-es6.js
new file mode 100644
index 000000000..c6fa496fa
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/empty-es6.js
@@ -0,0 +1,3 @@
+(function(global) {
+ global.emptyES6 = true;
+})(typeof window == 'undefined' ? global : window); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/ep/some-repo/main.js b/thirdparty/systemjs/test/tests/ep/some-repo/main.js
new file mode 100644
index 000000000..a6d27d510
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/ep/some-repo/main.js
@@ -0,0 +1 @@
+export var main = 'here';
diff --git a/thirdparty/systemjs/test/tests/error-loader.js b/thirdparty/systemjs/test/tests/error-loader.js
new file mode 100644
index 000000000..b6b07cd0c
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/error-loader.js
@@ -0,0 +1 @@
+require('./error.js'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/error-loader2.js b/thirdparty/systemjs/test/tests/error-loader2.js
new file mode 100644
index 000000000..69b15e06a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/error-loader2.js
@@ -0,0 +1 @@
+require('non-existent'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/error.js b/thirdparty/systemjs/test/tests/error.js
new file mode 100644
index 000000000..ca248d227
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/error.js
@@ -0,0 +1 @@
+foo / bar \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/es-module-flag.js b/thirdparty/systemjs/test/tests/es-module-flag.js
new file mode 100644
index 000000000..0ed2e3149
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es-module-flag.js
@@ -0,0 +1,3 @@
+exports.exportName = 'export';
+exports['default'] = 'default export';
+exports.__esModule = true; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/es-named-import-cjs-cjs.js b/thirdparty/systemjs/test/tests/es-named-import-cjs-cjs.js
new file mode 100644
index 000000000..a7cc4cd32
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es-named-import-cjs-cjs.js
@@ -0,0 +1,3 @@
+exports.cjsFunc = function() {
+ return 'named export';
+}; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/es-named-import-cjs.js b/thirdparty/systemjs/test/tests/es-named-import-cjs.js
new file mode 100644
index 000000000..f484570c9
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es-named-import-cjs.js
@@ -0,0 +1,2 @@
+import {cjsFunc} from './es-named-import-cjs-cjs.js';
+export var cjsFuncValue = cjsFunc(); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/es6-and-amd.js b/thirdparty/systemjs/test/tests/es6-and-amd.js
new file mode 100644
index 000000000..4c0a87465
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es6-and-amd.js
@@ -0,0 +1,2 @@
+export {default as amd_module} from './eaa-amd.js';
+export {default as es6_module} from './eaa-es6.js'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/es6-circular1.js b/thirdparty/systemjs/test/tests/es6-circular1.js
new file mode 100644
index 000000000..2cbd289ad
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es6-circular1.js
@@ -0,0 +1,10 @@
+import {c} from './es6-circular2.js';
+export var q;
+export var r;
+export function p() {
+ if (q)
+ r = c;
+ else
+ q = c;
+}
+p();
diff --git a/thirdparty/systemjs/test/tests/es6-circular2.js b/thirdparty/systemjs/test/tests/es6-circular2.js
new file mode 100644
index 000000000..2a6f5c391
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es6-circular2.js
@@ -0,0 +1,3 @@
+export var c = 3;
+import { p } from './es6-circular1.js';
+p();
diff --git a/thirdparty/systemjs/test/tests/es6-cjs-named-export.js b/thirdparty/systemjs/test/tests/es6-cjs-named-export.js
new file mode 100644
index 000000000..378335ccf
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es6-cjs-named-export.js
@@ -0,0 +1 @@
+export {someExport} from './cjs-named-export.js'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/es6-detection1.js b/thirdparty/systemjs/test/tests/es6-detection1.js
new file mode 100644
index 000000000..3fc252f50
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es6-detection1.js
@@ -0,0 +1 @@
+import {q} from './es6-format.js'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/es6-format.js b/thirdparty/systemjs/test/tests/es6-format.js
new file mode 100644
index 000000000..47b28ed47
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es6-format.js
@@ -0,0 +1,6 @@
+"format es6";
+
+class q {
+}
+
+
diff --git a/thirdparty/systemjs/test/tests/es6-import-star-amd.js b/thirdparty/systemjs/test/tests/es6-import-star-amd.js
new file mode 100644
index 000000000..9cf2ff2c0
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es6-import-star-amd.js
@@ -0,0 +1,3 @@
+import * as mod from './es6-loading-amd-dep.js';
+
+export var g = mod.default; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/es6-loading-amd-dep.js b/thirdparty/systemjs/test/tests/es6-loading-amd-dep.js
new file mode 100644
index 000000000..78ecb1bf4
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es6-loading-amd-dep.js
@@ -0,0 +1,3 @@
+define(function() {
+ return true;
+}) \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/es6-loading-amd.js b/thirdparty/systemjs/test/tests/es6-loading-amd.js
new file mode 100644
index 000000000..565fdd416
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es6-loading-amd.js
@@ -0,0 +1,9 @@
+System.register(["./es6-loading-amd-dep.js"], function($__export) {
+ "use strict";
+ return {
+ setters: [function(m) {
+ $__export("amd", m.default);
+ }],
+ execute: function() {}
+ };
+});
diff --git a/thirdparty/systemjs/test/tests/es6-plugin.js b/thirdparty/systemjs/test/tests/es6-plugin.js
new file mode 100644
index 000000000..e37de9fce
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/es6-plugin.js
@@ -0,0 +1,3 @@
+export function fetch() {
+ return 'module.exports = "plugin";';
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/esm-dep.js b/thirdparty/systemjs/test/tests/esm-dep.js
new file mode 100644
index 000000000..f700e4920
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/esm-dep.js
@@ -0,0 +1,5 @@
+export var esmDep = true;
+
+(function(g) {
+ g.esmDep = 'esm-dep';
+})(typeof window != 'undefined' ? window : global); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/esm-with-deps.js b/thirdparty/systemjs/test/tests/esm-with-deps.js
new file mode 100644
index 000000000..55c925513
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/esm-with-deps.js
@@ -0,0 +1 @@
+export var p = 5; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/export-star.js b/thirdparty/systemjs/test/tests/export-star.js
new file mode 100644
index 000000000..31cd2ebac
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/export-star.js
@@ -0,0 +1,2 @@
+export * from './star-dep.js';
+export var bar = 'bar'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/foo.js b/thirdparty/systemjs/test/tests/foo.js
new file mode 100644
index 000000000..343cf430b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/foo.js
@@ -0,0 +1,10 @@
+System.register("tests/foo.js", [], function($__export) {
+ "use strict";
+ var __moduleName = "foo";
+ return {
+ setters: [],
+ execute: function() {
+ $__export('f', 'f');
+ }
+ };
+});
diff --git a/thirdparty/systemjs/test/tests/global-dep.js b/thirdparty/systemjs/test/tests/global-dep.js
new file mode 100644
index 000000000..3f6511023
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-dep.js
@@ -0,0 +1,5 @@
+(function(window) {
+ window.jjQuery = {
+ v: '1.8.3'
+ };
+})(typeof window != 'undefined' ? window : global); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global-encapsulation.js b/thirdparty/systemjs/test/tests/global-encapsulation.js
new file mode 100644
index 000000000..b480da8ae
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-encapsulation.js
@@ -0,0 +1,3 @@
+(function(g) {
+ g.globalName = 'encapsulated global';
+})(typeof window != 'undefined' ? window : global); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global-exports-array.js b/thirdparty/systemjs/test/tests/global-exports-array.js
new file mode 100644
index 000000000..ddfb91a37
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-exports-array.js
@@ -0,0 +1,5 @@
+A = 'A';
+
+B = 'B';
+
+C = 'C'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global-inaccessible-props.js b/thirdparty/systemjs/test/tests/global-inaccessible-props.js
new file mode 100644
index 000000000..aee7ce02b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-inaccessible-props.js
@@ -0,0 +1,8 @@
+
+(function(window) {
+ if (!('errorOnAccess' in window))
+ throw Error();
+
+ window.test = 'result of global-inaccessible-props';
+
+})(typeof window != 'undefined' ? window : global);
diff --git a/thirdparty/systemjs/test/tests/global-inline-dep.js b/thirdparty/systemjs/test/tests/global-inline-dep.js
new file mode 100644
index 000000000..6873a63b9
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-inline-dep.js
@@ -0,0 +1,7 @@
+'format global';
+'deps ./global-dep.js';
+
+
+(function(window) {
+ window.newDep = jjQuery.v;
+})(typeof window != 'undefined' ? window : global); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global-inline-export.js b/thirdparty/systemjs/test/tests/global-inline-export.js
new file mode 100644
index 000000000..0fc07aea5
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-inline-export.js
@@ -0,0 +1,9 @@
+"format global";
+"exports p.r";
+
+(function(window) {
+
+ window.p = {
+ r: 'r'
+ };
+})(typeof window != 'undefined' ? window : global); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global-multi-diff.js b/thirdparty/systemjs/test/tests/global-multi-diff.js
new file mode 100644
index 000000000..2b58ae2b1
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-multi-diff.js
@@ -0,0 +1,3 @@
+foo = "barz";
+baz = "chaz";
+this.zed = "ted"; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global-multi.js b/thirdparty/systemjs/test/tests/global-multi.js
new file mode 100644
index 000000000..e7f0b5cfc
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-multi.js
@@ -0,0 +1,6 @@
+(function(window) {
+ window.j$ = window.jjQuery = {
+ jquery: 'here'
+ };
+})(typeof window != 'undefined' ? window : global);
+
diff --git a/thirdparty/systemjs/test/tests/global-shim-amd.js b/thirdparty/systemjs/test/tests/global-shim-amd.js
new file mode 100644
index 000000000..9754587be
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-shim-amd.js
@@ -0,0 +1,6 @@
+(function(window) {
+ if (false)
+ define(function() {
+ });
+ window.test = 'global';
+})(typeof window != 'undefined' ? window : global); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global-shim-config-dep.js b/thirdparty/systemjs/test/tests/global-shim-config-dep.js
new file mode 100644
index 000000000..a7ec1756b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-shim-config-dep.js
@@ -0,0 +1 @@
+dep = 'shimmed'
diff --git a/thirdparty/systemjs/test/tests/global-shim-config-exports.js b/thirdparty/systemjs/test/tests/global-shim-config-exports.js
new file mode 100644
index 000000000..39553bca8
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-shim-config-exports.js
@@ -0,0 +1 @@
+var p = 'export'
diff --git a/thirdparty/systemjs/test/tests/global-shim-config.js b/thirdparty/systemjs/test/tests/global-shim-config.js
new file mode 100644
index 000000000..62139f6e3
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-shim-config.js
@@ -0,0 +1,3 @@
+(function(window) {
+ window.ME = dep;
+})(typeof window != 'undefined' ? window : global); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global-single-compiled.js b/thirdparty/systemjs/test/tests/global-single-compiled.js
new file mode 100644
index 000000000..1c55c7506
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-single-compiled.js
@@ -0,0 +1,9 @@
+System.registerDynamic([], false, function($__require, $__exports, $__module) {
+ var _retrieveGlobal = System.get("@@global-helpers").prepareGlobal($__module.id, null, null);
+ (function() {
+ var foo = this["foobar"];
+ var foo = 'foo';
+ this["foobar"] = foo;
+ })();
+ return _retrieveGlobal();
+}) \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global-single.js b/thirdparty/systemjs/test/tests/global-single.js
new file mode 100644
index 000000000..9f6197b5f
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-single.js
@@ -0,0 +1 @@
+var foo = 'bar'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global-with-export.js b/thirdparty/systemjs/test/tests/global-with-export.js
new file mode 100644
index 000000000..656ea6a19
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global-with-export.js
@@ -0,0 +1,5 @@
+(function(window) {
+ window.q = {
+ r: 'r'
+ };
+})(typeof window != 'undefined' ? window : global); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/global.js b/thirdparty/systemjs/test/tests/global.js
new file mode 100644
index 000000000..ae948f58c
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/global.js
@@ -0,0 +1,6 @@
+jjQuery = {
+ v: '2.0..0'
+};
+another = {
+ some: 'thing'
+}; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/group-test.js b/thirdparty/systemjs/test/tests/group-test.js
new file mode 100644
index 000000000..61e4eea78
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/group-test.js
@@ -0,0 +1,34 @@
+"format register";
+
+System.register("group-c", [], function($__export) {
+ "use strict";
+ var __moduleName = "group-c";
+ return {
+ setters: [],
+ execute: function() {
+ $__export('default', 'bar');
+ }
+ };
+});
+
+
+
+System.registerDynamic("group-b", ["group-c"], false, function(__require, __exports, __module) {
+ var _retrieveGlobal = System.get("@@global-helpers").prepareGlobal(__module.id);
+ (function() {
+ this.foo = 'foo';
+ }).call(System.global);
+ return _retrieveGlobal();
+});
+
+System.register("group-a", ["./group-b"], function($__export) {
+ "use strict";
+ var __moduleName = "group-a";
+ return {
+ setters: [function(m) {}],
+ execute: function() {}
+ };
+});
+
+
+
diff --git a/thirdparty/systemjs/test/tests/hbs.hbs b/thirdparty/systemjs/test/tests/hbs.hbs
new file mode 100644
index 000000000..6213adcb4
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/hbs.hbs
@@ -0,0 +1 @@
+<h1>{{title}}</h1>
diff --git a/thirdparty/systemjs/test/tests/inline-depends-dep.js b/thirdparty/systemjs/test/tests/inline-depends-dep.js
new file mode 100644
index 000000000..9310d31aa
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/inline-depends-dep.js
@@ -0,0 +1 @@
+window.depValue = 'dep'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/inline-depends.js b/thirdparty/systemjs/test/tests/inline-depends.js
new file mode 100644
index 000000000..61b318777
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/inline-depends.js
@@ -0,0 +1 @@
+window.dep = window.depValue; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/jquery-named.js b/thirdparty/systemjs/test/tests/jquery-named.js
new file mode 100644
index 000000000..e53799d35
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/jquery-named.js
@@ -0,0 +1,3 @@
+define('jquery-named', function() {
+ return { is: 'jquery' };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/jquery.js b/thirdparty/systemjs/test/tests/jquery.js
new file mode 100644
index 000000000..e0ec49a53
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/jquery.js
@@ -0,0 +1,2 @@
+var a = 'a';
+module.exports = require(a); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/legacy-plugin.js b/thirdparty/systemjs/test/tests/legacy-plugin.js
new file mode 100644
index 000000000..89fd23f8e
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/legacy-plugin.js
@@ -0,0 +1,5 @@
+module.exports = function(name, address, fetch, callback, errback) {
+ fetch(address, function(source) {
+ callback('exports.plugin = true; ' + source);
+ });
+}
diff --git a/thirdparty/systemjs/test/tests/loader-scoping.js b/thirdparty/systemjs/test/tests/loader-scoping.js
new file mode 100644
index 000000000..656184c5f
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/loader-scoping.js
@@ -0,0 +1 @@
+export let loader = System; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/main-bundle.js b/thirdparty/systemjs/test/tests/main-bundle.js
new file mode 100644
index 000000000..9bf9a306d
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/main-bundle.js
@@ -0,0 +1,3 @@
+define('jquery', function() {
+ return { name: 'jquery-bundled' };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/main-dep.js b/thirdparty/systemjs/test/tests/main-dep.js
new file mode 100644
index 000000000..83e0e77d4
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/main-dep.js
@@ -0,0 +1 @@
+exports.dep = 'value'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/main.js b/thirdparty/systemjs/test/tests/main.js
new file mode 100644
index 000000000..7e6f820a0
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/main.js
@@ -0,0 +1 @@
+module.exports = require('./main-dep'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/map-test-dep.js b/thirdparty/systemjs/test/tests/map-test-dep.js
new file mode 100644
index 000000000..8085c9632
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/map-test-dep.js
@@ -0,0 +1 @@
+exports.dep = 'maptest';
diff --git a/thirdparty/systemjs/test/tests/map-test.js b/thirdparty/systemjs/test/tests/map-test.js
new file mode 100644
index 000000000..e87087e78
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/map-test.js
@@ -0,0 +1 @@
+exports.maptest = require('./map-test-dep.js').dep;
diff --git a/thirdparty/systemjs/test/tests/map-test/sub.js b/thirdparty/systemjs/test/tests/map-test/sub.js
new file mode 100644
index 000000000..64dcc8a01
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/map-test/sub.js
@@ -0,0 +1 @@
+exports.maptest = 'maptestsub';
diff --git a/thirdparty/systemjs/test/tests/map-version.js b/thirdparty/systemjs/test/tests/map-version.js
new file mode 100644
index 000000000..56ad56a96
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/map-version.js
@@ -0,0 +1 @@
+module.exports = require('./mvd@1.js'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/meta-deps.js b/thirdparty/systemjs/test/tests/meta-deps.js
new file mode 100644
index 000000000..6bf3b4520
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/meta-deps.js
@@ -0,0 +1,21 @@
+(function(global) {
+
+System.config({
+ meta: {
+ b: {
+ deps: ['a']
+ }
+ }
+});
+
+define('a', [], function() {
+ global.MODULEA = 'a';
+});
+
+define('b', [], function() {
+ return {
+ a: global.MODULEA
+ };
+});
+
+})(typeof window == 'undefined' ? global : window); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/meta-override.js b/thirdparty/systemjs/test/tests/meta-override.js
new file mode 100644
index 000000000..b820ec262
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/meta-override.js
@@ -0,0 +1,2 @@
+"format global";
+export var p = 'value'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/mixed-bundle.js b/thirdparty/systemjs/test/tests/mixed-bundle.js
new file mode 100644
index 000000000..58a25c355
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/mixed-bundle.js
@@ -0,0 +1,68 @@
+System.register("tree/third", [], function($__export) {
+ var some;
+ return {
+ setters: [],
+ execute: function() {
+ some = $__export('some', 'exports');
+ }
+ };
+});
+
+System.registerDynamic("tree/cjs", [], true, function(require, exports, __moduleName) {
+ var global = System.global;
+ var __define = global.define;
+ global.define = undefined;
+ var module = { exports: exports };
+ var process = System.get("@@nodeProcess");
+ exports.cjs = true;
+ global.define = __define;
+ return module.exports;
+});
+
+System.registerDynamic("tree/jquery", [], false, function(require, exports, __moduleName) {
+ var _retrieveGlobal = System.get("@@global-helpers").prepareGlobal(__moduleName);
+ this.jquery = {};
+
+
+ return _retrieveGlobal();
+});
+
+System.register("tree/second", ["./third", "./cjs"], function($__export) {
+ "use strict";
+ var __moduleName = "tree/second";
+ var q;
+ return {
+ setters: [function() {}, function() {}],
+ execute: function() {
+ q = $__export('q', 4);
+ }
+ };
+});
+
+System.registerDynamic("tree/global", ['./jquery'], false, function(__require, __exports, __moduleName) {
+ var _retrieveGlobal = System.get("@@global-helpers").prepareGlobal(__moduleName, "jquery.test");
+ "deps ./jquery";
+ "exports jquery.test";
+ this.jquery = this.jquery || {};
+ this.jquery.test = 'output';
+
+ this["jquery.test"] = jquery.test;
+ return _retrieveGlobal();
+});
+
+System.registerDynamic("tree/amd", ['./global'], false, function() {
+ return { is: 'amd' };
+});
+
+
+System.register("tree/first", ["./second", "./amd"], function($__export) {
+ "use strict";
+ var __moduleName = "tree/first";
+ var p;
+ return {
+ setters: [function() {}, function() {}],
+ execute: function() {
+ p = $__export('p', 5);
+ }
+ };
+});
diff --git a/thirdparty/systemjs/test/tests/modA.js b/thirdparty/systemjs/test/tests/modA.js
new file mode 100644
index 000000000..5e9b95304
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/modA.js
@@ -0,0 +1,7 @@
+define(function (require, exports, module) {
+'use strict';
+
+ var B = require("tests/lib/modB.js");
+ var C = require("./modC.js");
+ exports.A = "A";
+});
diff --git a/thirdparty/systemjs/test/tests/modC.js b/thirdparty/systemjs/test/tests/modC.js
new file mode 100644
index 000000000..00f89c525
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/modC.js
@@ -0,0 +1,5 @@
+define(function (require, exports, module) {
+'use strict';
+
+
+});
diff --git a/thirdparty/systemjs/test/tests/module-name.js b/thirdparty/systemjs/test/tests/module-name.js
new file mode 100644
index 000000000..4076c2b6e
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/module-name.js
@@ -0,0 +1,8 @@
+System.register([], function(_export, _context) {
+ return {
+ setters: [],
+ execute: function() {
+ _export('name', _context.id);
+ }
+ };
+}) \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/module.js b/thirdparty/systemjs/test/tests/module.js
new file mode 100644
index 000000000..45cd96970
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/module.js
@@ -0,0 +1,3 @@
+import * as default3 from "./default3.js";
+
+export var test = default3.default; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/multiple-anonymous.js b/thirdparty/systemjs/test/tests/multiple-anonymous.js
new file mode 100644
index 000000000..5e4b93f98
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/multiple-anonymous.js
@@ -0,0 +1,14 @@
+define('named-in-anon', function() {
+ return 'named';
+});
+
+define(['named-in-anon'], function(named) {
+ return {
+ anon: true,
+ named: named
+ };
+});
+
+define([], function() {
+
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/mypackage/index.js b/thirdparty/systemjs/test/tests/mypackage/index.js
new file mode 100644
index 000000000..78b94fe65
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/mypackage/index.js
@@ -0,0 +1 @@
+this.mapDep = 'bar';
diff --git a/thirdparty/systemjs/test/tests/mypackage/lib/bar.js b/thirdparty/systemjs/test/tests/mypackage/lib/bar.js
new file mode 100644
index 000000000..e198b88a4
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/mypackage/lib/bar.js
@@ -0,0 +1,2 @@
+bar = 'bar';
+exports = {};
diff --git a/thirdparty/systemjs/test/tests/mypackage/src/foo.js b/thirdparty/systemjs/test/tests/mypackage/src/foo.js
new file mode 100644
index 000000000..31e546b5a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/mypackage/src/foo.js
@@ -0,0 +1,3 @@
+file = 'foo'
+if (typeof define != 'undefined')
+ define({});
diff --git a/thirdparty/systemjs/test/tests/nameddefine.js b/thirdparty/systemjs/test/tests/nameddefine.js
new file mode 100644
index 000000000..f0a302971
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/nameddefine.js
@@ -0,0 +1,14 @@
+var Showdown = { converter: true };
+
+// export
+if (typeof module !== 'undefined') module.exports = Showdown;
+
+// stolen from AMD branch of underscore
+// AMD define happens at the end for compatibility with AMD loaders
+// that don't enforce next-turn semantics on modules.
+if (typeof define === 'function' && define.amd) {
+ define('tests/nameddefine.js', function() {
+ return Showdown;
+ });
+}
+define('another-define', { named: 'define' });
diff --git a/thirdparty/systemjs/test/tests/no-default-ext/file.ext b/thirdparty/systemjs/test/tests/no-default-ext/file.ext
new file mode 100644
index 000000000..0194738d0
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/no-default-ext/file.ext
@@ -0,0 +1 @@
+exports.ext = 'ext';
diff --git a/thirdparty/systemjs/test/tests/normalize-hook-test.js b/thirdparty/systemjs/test/tests/normalize-hook-test.js
new file mode 100644
index 000000000..f4d3fb627
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/normalize-hook-test.js
@@ -0,0 +1 @@
+"hello world"; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/out.js b/thirdparty/systemjs/test/tests/out.js
new file mode 100644
index 000000000..9eb31e4c1
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/out.js
@@ -0,0 +1,19 @@
+"bundle";
+(function() {
+var define = System.amdDefine;
+define("tests/lib/modD.js", ["require", "exports", "module"], function(require, exports, module) {
+ 'use strict';
+ exports.D = "D";
+});
+
+})();
+(function() {
+var define = System.amdDefine;
+define("tests/lib/modB.js", ["require", "exports", "module", "../modC.js", "./modD.js"], function(require, exports, module) {
+ 'use strict';
+ require('../modC.js');
+ require('./modD.js');
+ exports.B = "B";
+});
+
+})(); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/package-local-alias/index-cjs.js b/thirdparty/systemjs/test/tests/package-local-alias/index-cjs.js
new file mode 100644
index 000000000..0cd8dedcc
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/package-local-alias/index-cjs.js
@@ -0,0 +1,6 @@
+
+var local = require('./local-cjs');
+
+exports.q = 'q';
+
+exports.fromLocal = local.x;
diff --git a/thirdparty/systemjs/test/tests/package-local-alias/index-default-cjs.js b/thirdparty/systemjs/test/tests/package-local-alias/index-default-cjs.js
new file mode 100644
index 000000000..d0a59da14
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/package-local-alias/index-default-cjs.js
@@ -0,0 +1,10 @@
+
+var local = require('./local-default-cjs');
+
+exports.q = 'q';
+
+exports.fromLocal = local;
+
+var localDirect = require('./local/index-default-cjs.js');
+
+exports.fromLocalDirect = localDirect;
diff --git a/thirdparty/systemjs/test/tests/package-local-alias/index-default-esm.js b/thirdparty/systemjs/test/tests/package-local-alias/index-default-esm.js
new file mode 100644
index 000000000..aead1e036
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/package-local-alias/index-default-esm.js
@@ -0,0 +1,10 @@
+
+import local from './local-default-esm';
+
+export var q = 'q';
+export var fromLocal = local;
+
+import localDirect from './local/index-default-esm.js';
+
+export var fromLocalDirect = localDirect;
+
diff --git a/thirdparty/systemjs/test/tests/package-local-alias/index-esm.js b/thirdparty/systemjs/test/tests/package-local-alias/index-esm.js
new file mode 100644
index 000000000..809c99695
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/package-local-alias/index-esm.js
@@ -0,0 +1,5 @@
+
+import {x} from './local-esm';
+
+export var q = 'q';
+export var fromLocal = x; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/package-local-alias/local/index-cjs.js b/thirdparty/systemjs/test/tests/package-local-alias/local/index-cjs.js
new file mode 100644
index 000000000..af02af190
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/package-local-alias/local/index-cjs.js
@@ -0,0 +1 @@
+exports.x = 'x';
diff --git a/thirdparty/systemjs/test/tests/package-local-alias/local/index-default-cjs.js b/thirdparty/systemjs/test/tests/package-local-alias/local/index-default-cjs.js
new file mode 100644
index 000000000..ee03c3617
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/package-local-alias/local/index-default-cjs.js
@@ -0,0 +1 @@
+module.exports = 'x';
diff --git a/thirdparty/systemjs/test/tests/package-local-alias/local/index-default-esm.js b/thirdparty/systemjs/test/tests/package-local-alias/local/index-default-esm.js
new file mode 100644
index 000000000..d35f42cc0
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/package-local-alias/local/index-default-esm.js
@@ -0,0 +1,2 @@
+
+export default 'x';
diff --git a/thirdparty/systemjs/test/tests/package-local-alias/local/index-esm.js b/thirdparty/systemjs/test/tests/package-local-alias/local/index-esm.js
new file mode 100644
index 000000000..5039a381e
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/package-local-alias/local/index-esm.js
@@ -0,0 +1 @@
+export var x = 'x';
diff --git a/thirdparty/systemjs/test/tests/path/deep.js b/thirdparty/systemjs/test/tests/path/deep.js
new file mode 100644
index 000000000..e254c491a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/path/deep.js
@@ -0,0 +1 @@
+module.exports = 'path';
diff --git a/thirdparty/systemjs/test/tests/plugin-dep.js b/thirdparty/systemjs/test/tests/plugin-dep.js
new file mode 100644
index 000000000..4485e45e4
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/plugin-dep.js
@@ -0,0 +1,8 @@
+System.register([], function($__export) {
+ return {
+ setters: [],
+ execute: function() {
+ $__export('p', 5);
+ }
+ };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/plugin@1.2.3/plugin.js b/thirdparty/systemjs/test/tests/plugin@1.2.3/plugin.js
new file mode 100644
index 000000000..741d6e0f6
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/plugin@1.2.3/plugin.js
@@ -0,0 +1,3 @@
+exports.translate = function(load) {
+ load.source += '\nexports.versionedPlugin = true;';
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/reflection.js b/thirdparty/systemjs/test/tests/reflection.js
new file mode 100644
index 000000000..765dfe816
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/reflection.js
@@ -0,0 +1 @@
+export var myname = __moduleName;
diff --git a/thirdparty/systemjs/test/tests/register-circular1.js b/thirdparty/systemjs/test/tests/register-circular1.js
new file mode 100644
index 000000000..178980f73
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/register-circular1.js
@@ -0,0 +1,24 @@
+System.register(["./register-circular2.js"], function($__export) {
+ "use strict";
+ var c,
+ q,
+ r;
+ function p() {
+ if (q)
+ $__export("r", r = c);
+ else
+ $__export("q", q = c);
+ }
+ $__export("p", p);
+ return {
+ setters: [function(m) {
+ c = m.c;
+ }],
+ execute: function() {
+ c = 5;
+ q = $__export("q", q);
+ r = $__export("r", r);
+ p();
+ }
+ };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/register-circular2.js b/thirdparty/systemjs/test/tests/register-circular2.js
new file mode 100644
index 000000000..5b661b81d
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/register-circular2.js
@@ -0,0 +1,14 @@
+System.register(["./register-circular1.js"], function($__export) {
+ "use strict";
+ var c,
+ p;
+ return {
+ setters: [function(m) {
+ p = m.p;
+ }],
+ execute: function() {
+ c = $__export("c", 3);
+ p();
+ }
+ };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/register-default-extension.js b/thirdparty/systemjs/test/tests/register-default-extension.js
new file mode 100644
index 000000000..0ab2b012a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/register-default-extension.js
@@ -0,0 +1,8 @@
+System.register('custom/file.ext', [], function(_export) {
+ return {
+ setters: [],
+ execute: function() {
+ _export('custom', 'ext');
+ }
+ };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/register-regex-2.js b/thirdparty/systemjs/test/tests/register-regex-2.js
new file mode 100644
index 000000000..3715b11e6
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/register-regex-2.js
@@ -0,0 +1,15 @@
+/**
+ * @file file comment
+ * ...
+ */
+
+/**
+ * module comment
+ * ...
+ */
+System.register([], function() {
+ return {
+ setters: [],
+ execute: function() {}
+ };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/register-regex.js b/thirdparty/systemjs/test/tests/register-regex.js
new file mode 100644
index 000000000..847e818fd
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/register-regex.js
@@ -0,0 +1,18 @@
+//// /collection/
+//import 'test/background/collection/clientErrors.spec';
+//import 'test/background/collection/playlistItems.spec';
+//import 'test/background/collection/playlists.spec';
+//import 'test/background/collection/searchResults.spec';
+//import 'test/background/collection/videos.spec';
+//import 'test/background/collection/streamItems.spec';
+
+//// /model/
+//import 'test/background/model/activePlaylistManager.spec';
+//import 'test/background/model/clientErrorManager.spec';
+//import 'test/background/model/dataSource.spec';
+//import 'test/background/model/playlistItem.spec';
+//import 'test/background/model/playlistItems.spec';
+//import 'test/background/model/relatedVideosManager.spec';
+//import 'test/background/model/signInManager.spec';
+//import 'test/background/model/user.spec';
+//import 'test/background/model/youTubeV3API.spec'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/registerdynamic-main.js b/thirdparty/systemjs/test/tests/registerdynamic-main.js
new file mode 100644
index 000000000..dbd630a1d
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/registerdynamic-main.js
@@ -0,0 +1,11 @@
+System.register(["./registerdynamic-notbundled.js"], function(_export) {
+ var dependency;
+ return {
+ setters: [function(_dependency) {
+ dependency = _dependency['default'];
+ }],
+ execute: function() {
+ _export("dependency", dependency);
+ }
+ }
+});
diff --git a/thirdparty/systemjs/test/tests/registerdynamic-notbundled.js b/thirdparty/systemjs/test/tests/registerdynamic-notbundled.js
new file mode 100644
index 000000000..3406df504
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/registerdynamic-notbundled.js
@@ -0,0 +1,5 @@
+System.registerDynamic([], true, function(require, exports, module) {
+ module.exports = function() {
+ return 'ok';
+ };
+});
diff --git a/thirdparty/systemjs/test/tests/reldynamic.js b/thirdparty/systemjs/test/tests/reldynamic.js
new file mode 100644
index 000000000..99b5202a8
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/reldynamic.js
@@ -0,0 +1,5 @@
+
+
+export function dynamicLoad() {
+ return System.import('./reldynamicdep.js', __moduleName);
+}
diff --git a/thirdparty/systemjs/test/tests/reldynamicdep.js b/thirdparty/systemjs/test/tests/reldynamicdep.js
new file mode 100644
index 000000000..96da4b8e9
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/reldynamicdep.js
@@ -0,0 +1 @@
+export var dynamic = 'module';
diff --git a/thirdparty/systemjs/test/tests/shared-dep-bundles/a.js b/thirdparty/systemjs/test/tests/shared-dep-bundles/a.js
new file mode 100644
index 000000000..76aef0ec9
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/shared-dep-bundles/a.js
@@ -0,0 +1,33 @@
+"format register";
+
+System.register("lib/shared-dep", [], function($__export) {
+ "use strict";
+ var __moduleName = "lib/shared-dep";
+ function shared() {}
+ $__export("default", shared);
+ return {
+ setters: [],
+ execute: function() {
+ ;
+ }
+ };
+});
+
+
+
+System.register("lib/a", ["./shared-dep"], function($__export) {
+ "use strict";
+ var __moduleName = "lib/a";
+ var shared;
+ return {
+ setters: [function(m) {
+ shared = m.default;
+ }],
+ execute: function() {
+ }
+ };
+});
+
+
+
+//# sourceMappingURL=a.js.map \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/shared-dep-bundles/b.js b/thirdparty/systemjs/test/tests/shared-dep-bundles/b.js
new file mode 100644
index 000000000..eec0f0bf4
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/shared-dep-bundles/b.js
@@ -0,0 +1,33 @@
+"format register";
+
+System.register("lib/shared-dep", [], function($__export) {
+ "use strict";
+ var __moduleName = "lib/shared-dep";
+ function shared() {}
+ $__export("default", shared);
+ return {
+ setters: [],
+ execute: function() {
+ ;
+ }
+ };
+});
+
+
+
+System.register("lib/b", ["./shared-dep"], function($__export) {
+ "use strict";
+ var __moduleName = "lib/b";
+ var shared;
+ return {
+ setters: [function(m) {
+ shared = m.default;
+ }],
+ execute: function() {
+ }
+ };
+});
+
+
+
+//# sourceMappingURL=b.js.map \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/shim-map-test-dep.js b/thirdparty/systemjs/test/tests/shim-map-test-dep.js
new file mode 100644
index 000000000..409cf392a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/shim-map-test-dep.js
@@ -0,0 +1 @@
+shimmapdep = 'depvalue' \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/shim-package/shim-map-test.js b/thirdparty/systemjs/test/tests/shim-package/shim-map-test.js
new file mode 100644
index 000000000..3dc9d9e8a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/shim-package/shim-map-test.js
@@ -0,0 +1 @@
+(typeof window != 'undefined' ? window : global).shimdep = shimmapdep; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/some-json.json b/thirdparty/systemjs/test/tests/some-json.json
new file mode 100644
index 000000000..ee68c7e15
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/some-json.json
@@ -0,0 +1,3 @@
+{
+ "some": "json"
+}
diff --git a/thirdparty/systemjs/test/tests/some-text.txt b/thirdparty/systemjs/test/tests/some-text.txt
new file mode 100644
index 000000000..9ce617009
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/some-text.txt
@@ -0,0 +1 @@
+this is some text
diff --git a/thirdparty/systemjs/test/tests/star-dep.js b/thirdparty/systemjs/test/tests/star-dep.js
new file mode 100644
index 000000000..0b7981c28
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/star-dep.js
@@ -0,0 +1 @@
+export var foo = 'foo'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/subcontextual-map/submodule.js b/thirdparty/systemjs/test/tests/subcontextual-map/submodule.js
new file mode 100644
index 000000000..ffc2d7fe5
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/subcontextual-map/submodule.js
@@ -0,0 +1,3 @@
+define(['dep'], function(dep) {
+ return dep;
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/subcontextual-mapdep.js b/thirdparty/systemjs/test/tests/subcontextual-mapdep.js
new file mode 100644
index 000000000..ad8c9d6d6
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/subcontextual-mapdep.js
@@ -0,0 +1 @@
+module.exports = 'submapdep'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/test.css b/thirdparty/systemjs/test/tests/test.css
new file mode 100644
index 000000000..e56b63dfe
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/test.css
@@ -0,0 +1 @@
+this is css \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/depcache-test.js b/thirdparty/systemjs/test/tests/testpkg/depcache-test.js
new file mode 100644
index 000000000..d88fb1bde
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/depcache-test.js
@@ -0,0 +1 @@
+(typeof window != 'undefined' ? window : global).depCacheTest = 'passed';
diff --git a/thirdparty/systemjs/test/tests/testpkg/dir/index.js b/thirdparty/systemjs/test/tests/testpkg/dir/index.js
new file mode 100644
index 000000000..cef6cd572
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/dir/index.js
@@ -0,0 +1,2 @@
+require('./self-load.js');
+module.exports = 'dirindex'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/dir/self-load.js b/thirdparty/systemjs/test/tests/testpkg/dir/self-load.js
new file mode 100644
index 000000000..c6a24bda6
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/dir/self-load.js
@@ -0,0 +1,2 @@
+exports.a = require('..');
+exports.b = require('../'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/dir2/index.json b/thirdparty/systemjs/test/tests/testpkg/dir2/index.json
new file mode 100644
index 000000000..07bd1b14d
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/dir2/index.json
@@ -0,0 +1,3 @@
+{
+ "json": "index"
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/env-module-browser.js b/thirdparty/systemjs/test/tests/testpkg/env-module-browser.js
new file mode 100644
index 000000000..e36fe2f1b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/env-module-browser.js
@@ -0,0 +1 @@
+module.exports = 'browser'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/env-module.js b/thirdparty/systemjs/test/tests/testpkg/env-module.js
new file mode 100644
index 000000000..3b25aeee1
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/env-module.js
@@ -0,0 +1 @@
+module.exports = 'not browser'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/index.js b/thirdparty/systemjs/test/tests/testpkg/index.js
new file mode 100644
index 000000000..2fc521784
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/index.js
@@ -0,0 +1 @@
+exports.prop = 'value'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/interpolate.js b/thirdparty/systemjs/test/tests/testpkg/interpolate.js
new file mode 100644
index 000000000..d93d44f21
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/interpolate.js
@@ -0,0 +1 @@
+module.exports = 'interpolated!'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/json.js b/thirdparty/systemjs/test/tests/testpkg/json.js
new file mode 100644
index 000000000..278833a81
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/json.js
@@ -0,0 +1,4 @@
+exports.translate = function(load) {
+ load.metadata.format = 'cjs';
+ return 'module.exports = ' + load.source;
+}; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/json.json b/thirdparty/systemjs/test/tests/testpkg/json.json
new file mode 100644
index 000000000..0acdfb14b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/json.json
@@ -0,0 +1,3 @@
+{
+ "prop": "value"
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/polate.js b/thirdparty/systemjs/test/tests/testpkg/polate.js
new file mode 100644
index 000000000..af567b6bf
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/polate.js
@@ -0,0 +1 @@
+module.exports = 'polate'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/self-load.js b/thirdparty/systemjs/test/tests/testpkg/self-load.js
new file mode 100644
index 000000000..1c5617d42
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/self-load.js
@@ -0,0 +1,2 @@
+exports.a = require('.');
+exports.b = require('./'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/self.js b/thirdparty/systemjs/test/tests/testpkg/self.js
new file mode 100644
index 000000000..c543a0725
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/self.js
@@ -0,0 +1 @@
+module.exports = require('testpkg/json'); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/system.json b/thirdparty/systemjs/test/tests/testpkg/system.json
new file mode 100644
index 000000000..b2092752c
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/system.json
@@ -0,0 +1,28 @@
+{
+ "README": "This is not encouraging a system.json, which is a bad idea.",
+
+ "main": ["wrong-main"],
+ "format": "cjs",
+ "defaultExtension": "js",
+ "meta": {
+ "*.json": { "loader": "json" },
+ "noext": { "alias": "./json.json" },
+ "test.ts": true
+ },
+ "map": {
+ "json": "./json.js",
+ "./json": "./json.json",
+ "./dir/": "./dir/index",
+ "./dir2.js": "./dir2/index.json",
+ "./dir/test": "global-test",
+ "./env-module": {
+ "browser": "./env-module-browser.js"
+ },
+ "p": "./polate.js",
+ "./conditional1": "./interpolate.js",
+ "./conditional2": "./inter#{p}.js"
+ },
+ "depCache": {
+ "./dir2/index.json": ["../depcache-test"]
+ }
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg/test.ts b/thirdparty/systemjs/test/tests/testpkg/test.ts
new file mode 100644
index 000000000..4edba8a31
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg/test.ts
@@ -0,0 +1 @@
+module.exports = 'ts'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg2.json b/thirdparty/systemjs/test/tests/testpkg2.json
new file mode 100644
index 000000000..1aae9f17b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg2.json
@@ -0,0 +1,6 @@
+{
+ "main": {
+ "browser": "./asdf.asdf",
+ "~browser": "./asdf.asdf"
+ }
+} \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/testpkg2/asdf.asdf.js b/thirdparty/systemjs/test/tests/testpkg2/asdf.asdf.js
new file mode 100644
index 000000000..93c2cdd62
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/testpkg2/asdf.asdf.js
@@ -0,0 +1,3 @@
+define({
+ asdf: 'asdf'
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/typescript.ts b/thirdparty/systemjs/test/tests/typescript.ts
new file mode 100644
index 000000000..1cd9b2985
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/typescript.ts
@@ -0,0 +1 @@
+module.exports = 'typescript'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/umd-dep.js b/thirdparty/systemjs/test/tests/umd-dep.js
new file mode 100644
index 000000000..9a690b9c5
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/umd-dep.js
@@ -0,0 +1,3 @@
+define({
+ dep: 'hi'
+}) \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/umd.js b/thirdparty/systemjs/test/tests/umd.js
new file mode 100644
index 000000000..7faad2ba9
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/umd.js
@@ -0,0 +1,10 @@
+(function (root, factory) {
+ if (typeof define === 'function' && define.amd)
+ define(['./umd-dep.js'], function(dep) {
+ return (root.amdWebGlobal = factory(dep));
+ });
+ else
+ root.amdWebGlobal = factory(root.dep);
+}(this, function(dep) {
+ return { d: dep.dep };
+}));
diff --git a/thirdparty/systemjs/test/tests/versioned@2.0.3.js b/thirdparty/systemjs/test/tests/versioned@2.0.3.js
new file mode 100644
index 000000000..c5f522445
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/versioned@2.0.3.js
@@ -0,0 +1 @@
+exports.version = '2.3.4';
diff --git a/thirdparty/systemjs/test/tests/wildcard-test/2.js b/thirdparty/systemjs/test/tests/wildcard-test/2.js
new file mode 100644
index 000000000..4d3891f0c
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/wildcard-test/2.js
@@ -0,0 +1 @@
+export var q = {};
diff --git a/thirdparty/systemjs/test/tests/wildcard-test/2/sub.js b/thirdparty/systemjs/test/tests/wildcard-test/2/sub.js
new file mode 100644
index 000000000..05cded75a
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/wildcard-test/2/sub.js
@@ -0,0 +1 @@
+export var sub = {};
diff --git a/thirdparty/systemjs/test/tests/wildcard-test/first.js b/thirdparty/systemjs/test/tests/wildcard-test/first.js
new file mode 100644
index 000000000..f2ddf5c35
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/wildcard-test/first.js
@@ -0,0 +1 @@
+export var p = {};
diff --git a/thirdparty/systemjs/test/tests/with-global-deps.js b/thirdparty/systemjs/test/tests/with-global-deps.js
new file mode 100644
index 000000000..4c5addac0
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/with-global-deps.js
@@ -0,0 +1 @@
+var newGlobal = $$$; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/with-runtime-babel.js b/thirdparty/systemjs/test/tests/with-runtime-babel.js
new file mode 100644
index 000000000..4dca494cb
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/with-runtime-babel.js
@@ -0,0 +1,16 @@
+System.register([], function (_export) {
+ "use strict";
+
+ var c;
+ return {
+ setters: [],
+ execute: function () {
+ c = _export("c", function c() {
+ babelHelpers.classCallCheck(this, c);
+
+ babelHelpers.get(Object.getPrototypeOf(c.prototype), "constructor", this).call(this);
+ });
+ new c();
+ }
+ };
+}); \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/with-runtime-traceur.js b/thirdparty/systemjs/test/tests/with-runtime-traceur.js
new file mode 100644
index 000000000..d86a1dea7
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/with-runtime-traceur.js
@@ -0,0 +1,14 @@
+System.register([], function($__export) {
+ "use strict";
+ var __moduleName = "test";
+ var c;
+ return {
+ setters: [],
+ execute: function() {
+ c = $__export("c", (function() {
+ var c = function c() {};
+ return ($traceurRuntime.createClass)(c, {}, {});
+ }()));
+ }
+ };
+});
diff --git a/thirdparty/systemjs/test/tests/worker-babel.js b/thirdparty/systemjs/test/tests/worker-babel.js
new file mode 100644
index 000000000..74c741309
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/worker-babel.js
@@ -0,0 +1,14 @@
+importScripts('../../dist/system.src.js');
+
+System.paths['babel'] = '../../node_modules/babel-core/browser.js';
+
+System.transpiler = 'babel';
+
+System.import('es6-and-amd.js').then(function(m) {
+ postMessage({
+ amd: m.amd_module,
+ es6: m.es6_module
+ });
+}, function(err) {
+ console.error(err);
+});
diff --git a/thirdparty/systemjs/test/tests/worker-traceur.js b/thirdparty/systemjs/test/tests/worker-traceur.js
new file mode 100644
index 000000000..30902cf40
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/worker-traceur.js
@@ -0,0 +1,12 @@
+importScripts('../../dist/system.src.js');
+
+System.paths['traceur'] = '../../node_modules/traceur/bin/traceur.js';
+
+System.import('es6-and-amd.js').then(function(m) {
+ postMessage({
+ amd: m.amd_module,
+ es6: m.es6_module
+ });
+}, function(err) {
+ console.error(err);
+});
diff --git a/thirdparty/systemjs/test/tests/worker-typescript.js b/thirdparty/systemjs/test/tests/worker-typescript.js
new file mode 100644
index 000000000..7bbf0c231
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/worker-typescript.js
@@ -0,0 +1,16 @@
+importScripts('../../dist/system.src.js');
+
+System.paths['typescript'] = '../../node_modules/typescript/lib/typescript.js';
+System.meta['typescript'] = { format: 'global', exports: 'ts' };
+System.transpiler = 'typescript';
+
+System.normalizeSync('test');
+
+System.import('es6-and-amd.js').then(function(m) {
+ postMessage({
+ amd: m.amd_module,
+ es6: m.es6_module
+ });
+}, function(err) {
+ console.error(err);
+});
diff --git a/thirdparty/systemjs/test/tests/wrapper.js b/thirdparty/systemjs/test/tests/wrapper.js
new file mode 100644
index 000000000..9a8eb0328
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/wrapper.js
@@ -0,0 +1 @@
+export * from './default1.js'; \ No newline at end of file
diff --git a/thirdparty/systemjs/test/tests/zero@0.js b/thirdparty/systemjs/test/tests/zero@0.js
new file mode 100644
index 000000000..0050f500b
--- /dev/null
+++ b/thirdparty/systemjs/test/tests/zero@0.js
@@ -0,0 +1 @@
+module.exports = '0'; \ No newline at end of file