diff options
Diffstat (limited to 'thirdparty/systemjs/test')
227 files changed, 0 insertions, 3373 deletions
diff --git a/thirdparty/systemjs/test/test-babel-runtime.html b/thirdparty/systemjs/test/test-babel-runtime.html deleted file mode 100644 index bb62e1e42..000000000 --- a/thirdparty/systemjs/test/test-babel-runtime.html +++ /dev/null @@ -1,44 +0,0 @@ -<!doctype html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/> - </head> - <body> - - <h1 id="qunit-header">SystemJS Test Suite</h1> - - <h2 id="qunit-banner"></h2> - <div id="qunit-testrunner-toolbar"></div> - <h2 id="qunit-userAgent"></h2> - <ol id="qunit-tests"></ol> - <div id="qunit-test-area"></div> - - <script src="../dist/system.src.js" type="text/javascript"></script> - - <script src="../bower_components/qunit/qunit/qunit.js"></script> - - <script> - QUnit.config.testTimeout = 2000; - - QUnit.module("SystemJS Runtime"); - - function err(e) { - setTimeout(function() { - throw e.stack || e; - start(); - }); - } - - System.transpiler = 'babel'; - System.paths['babel/external-helpers'] = '../node_modules/babel-core/external-helpers.js'; - - asyncTest('Dynamicall loading modules with Traceur runtime', function() { - System['import']('tests/with-runtime-babel.js').then(function(m) { - ok(m.c); - start(); - }, err); - }); - - </script> - </body> -</html>
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test-babel.html b/thirdparty/systemjs/test/test-babel.html deleted file mode 100644 index 2cf3d1ea7..000000000 --- a/thirdparty/systemjs/test/test-babel.html +++ /dev/null @@ -1,29 +0,0 @@ -<!doctype html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/> - </head> - <body> - - <h1 id="qunit-header">SystemJS Test Suite</h1> - - <h2 id="qunit-banner"></h2> - <div id="qunit-testrunner-toolbar"></div> - <h2 id="qunit-userAgent"></h2> - <ol id="qunit-tests"></ol> - <div id="qunit-test-area"></div> - - <script src="../dist/system.src.js" type="text/javascript"></script> - <script> - System.paths.babel = '../node_modules/babel-core/browser.js'; - System.transpiler = 'babel'; - System['import']('test.js')['catch'](function(e) { - setTimeout(function() { - throw e.stack || e; - }) - }); - </script> - - <script src="../bower_components/qunit/qunit/qunit.js"></script> - </body> -</html>
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test-babel.js b/thirdparty/systemjs/test/test-babel.js deleted file mode 100644 index 062b6158e..000000000 --- a/thirdparty/systemjs/test/test-babel.js +++ /dev/null @@ -1,3 +0,0 @@ -System.transpiler = 'babel'; -System.baseURL = 'test/'; -require('./test');
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test-csp-inline.html b/thirdparty/systemjs/test/test-csp-inline.html deleted file mode 100644 index 4f6dce16e..000000000 --- a/thirdparty/systemjs/test/test-csp-inline.html +++ /dev/null @@ -1,61 +0,0 @@ -<!doctype html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/> - <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc';"> - </head> - <body> - - <h1 id="qunit-header">SystemJS Test Suite</h1> - - <h2 id="qunit-banner"></h2> - <div id="qunit-testrunner-toolbar"></div> - <h2 id="qunit-userAgent"></h2> - <ol id="qunit-tests"></ol> - <div id="qunit-test-area"></div> - - <script src="../dist/system.src.js" type="text/javascript"></script> - <script src="../bower_components/qunit/qunit/qunit.js"></script> - - <script nonce='abc'> - QUnit.config.testTimeout = 2000; - - QUnit.module("SystemJS nonce"); - - function err(e) { - setTimeout(function() { - throw e.stack || e; - start(); - }); - } - - asyncTest('Importing a script with a good nonce', function() { - System.config({ - meta: { - 'tests/csp/nonce.js': { - nonce: 'abc' - } - } - }); - System['import']('tests/csp/nonce.js').then(function(m) { - ok(m.nonce === 'abc'); - start(); - }); - }); - - asyncTest('Importing a script with a bad nonce', function() { - System.config({ - meta: { - 'tests/csp/nonce2.js': { - nonce: 'asdf' - } - } - }); - System['import']('tests/csp/nonce2.js').then(function(m) { - ok(m.nonce !== 'ab'); - start(); - }); - }); - </script> - </body> -</html> diff --git a/thirdparty/systemjs/test/test-csp.html b/thirdparty/systemjs/test/test-csp.html deleted file mode 100644 index f488974f6..000000000 --- a/thirdparty/systemjs/test/test-csp.html +++ /dev/null @@ -1,280 +0,0 @@ -<!doctype html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/> - </head> - <body> - - <h1 id="qunit-header">SystemJS Test Suite</h1> - - <h2 id="qunit-banner"></h2> - <div id="qunit-testrunner-toolbar"></div> - <h2 id="qunit-userAgent"></h2> - <ol id="qunit-tests"></ol> - <div id="qunit-test-area"></div> - - <script src="../dist/system-csp-production.src.js" type="text/javascript"></script> - <script src="../bower_components/qunit/qunit/qunit.js"></script> - - <script> - QUnit.config.testTimeout = 2000; - - QUnit.module("SystemJS CSP"); - - function err(e) { - setTimeout(function() { - throw e.stack || e; - start(); - }); - } - - asyncTest('System version', function() { - ok(System.version.match(/^\d+\.\d+\.\d+(-\w+)? CSP$/)); - start(); - }); - - asyncTest('Loading an AMD module', function() { - System['import']('tests/amd-module.js').then(function(m) { - ok(m.amd == true); - ok(m.dep.amd == 'dep'); - start(); - }, err); - }); - - System.config({ - bundles: { - 'tests/amd-bundle.js': ['bundle-1', 'bundle-2'] - } - }); - asyncTest('Loading an AMD bundle', function() { - System['import']('bundle-1').then(function(m) { - ok(m.defined == true); - start(); - }, err); - - stop(); - System['import']('bundle-2').then(function(m) { - ok(m.defined == true); - start(); - }, err); - }); - - asyncTest('Loading an AMD named define', function() { - System['import']('tests/nameddefine.js').then(function() { - System['import']('another-define').then(function(m) { - ok(m.named == 'define'); - start(); - }, err); - }, err); - }); - - asyncTest('Global script with exports as an array', function() { - System.config({ - meta: { - 'tests/global-exports-array.js': { - exports: ['A', 'B'] - } - } - }); - - System['import']('tests/global-exports-array.js').then(function(m) { - ok(m.A == 'A'); - ok(m.B == 'B'); - ok(!m.C); - ok(m['default'] == 'A'); - start(); - }, err); - }); - - asyncTest('Loading a badly named AMD define', function() { - System['import']('tests/jquery-named.js').then(function(jquery) { - ok(jquery.is == 'jquery'); - start(); - }, err); - }); - - - asyncTest('System.register Circular', function() { - System['import']('tests/register-circular1.js').then(function(m) { - ok(m.q == 3, 'Binding not allocated'); - ok(m.r == 5, 'Binding not updated'); - start(); - }, err); - }); - - - asyncTest('Loading a UMD module', function() { - System['import']('tests/umd.js').then(function(m) { - ok(m.d == 'hi'); - start(); - }, err); - }); - - asyncTest('Loading a bundle', function() { - System['import']('tests/bundle.js').then(function(m) { - return System['import']('bundle-define1'); - }) - .then(function(m) { - ok(m.name == 'bundle1'); - - return System['import']('bundle-define2'); - }) - .then(function(m) { - ok(m.name == 'bundle2'); - - start(); - }) - ['catch'](err); - }); - - asyncTest('Loading a bundle on demand', function() { - - System.config({ - bundles: { - 'tests/main-bundle.js': ['jquery'] - } - }); - System['import']('jquery').then(function(m) { - ok(m.name == 'jquery-bundled'); - start(); - }, err); - }); - - System.config({ - bundles: { - 'tests/mixed-bundle.js': ['tree/third', 'tree/cjs', 'tree/jquery', 'tree/second', 'tree/global', 'tree/amd', 'tree/first'] - } - }); - asyncTest('Loading AMD from a bundle', function() { - System['import']('tree/amd').then(function(m) { - ok(m.is == 'amd'); - start(); - }, err); - }); - - asyncTest('Loading CommonJS from a bundle', function() { - System['import']('tree/cjs').then(function(m) { - ok(m.cjs === true); - start(); - }, err); - }); - - asyncTest('Loading a Global from a bundle', function() { - System['import']('tree/global').then(function(m) { - ok(m === 'output'); - start(); - }, err); - }); - - asyncTest('Loading named System.register', function() { - System['import']('tree/third').then(function(m) { - ok(m.some == 'exports'); - start(); - }, err); - }); - - asyncTest('Loading System.register from ES6', function() { - System['import']('tree/first').then(function(m) { - ok(m.p == 5); - start(); - }); - }); - - asyncTest('Running a simple non-fetch plugin', function() { - System.set('tests/es6-plugin', System.newModule({ - fetch: function() { - return ''; - }, - instantiate: function() { - return "plugin"; - } - })); - System['import']('test/file!tests/es6-plugin').then(function(m) { - ok(m == 'plugin'); - start(); - }); - }); - - asyncTest('Loading a non-registering module', function() { - System['import']('tests/global-dep.js')['catch'](function(e) { - ok(e.toString().indexOf('did not call System.register or AMD define') != -1); - start(); - }); - }); - - asyncTest('Loading a global with exports defined', function() { - System.config({ - meta: { - 'tests/global-single.js': { - exports: 'foo' - } - } - }); - System['import']('tests/global-single.js').then(function(m) { - ok(m == 'bar'); - start(); - }); - }); - - asyncTest('Loading a precompiled global with exports still defined', function() { - System.config({ - meta: { - 'tests/global-single-compiled.js': { - exports: 'foobar' - } - } - }); - System['import']('tests/global-single-compiled.js').then(function(m) { - ok(m == 'foo'); - start(); - }); - }); - - asyncTest('Importing a script with wrong integrity fails', function() { - System.config({ - meta: { - 'tests/csp/integrity.js': { - integrity: 'sha256-abc' - } - } - }); - System['import']('tests/csp/integrity.js').then(err, function(e) { - ok(typeof e !== 'undefined'); - start(); - }); - }); - - asyncTest('Importing a script with correct integrity', function() { - System.config({ - meta: { - 'tests/csp/integrity.js': { - integrity: 'sha256-_AfZ2eZSJyVU4HFktUpbsTEoSJF1hL5eGKjgdXZnNTw=' - } - } - }); - System['import']('tests/csp/integrity.js').then(function(m) { - ok(m.integrity === 'integrity'); - start(); - }, err); - }); - - asyncTest('Importing jQuery from CDN', function() { - System['import']('https://code.jquery.com/jquery-1.11.3.min.js').then(function($) { - ok($.fn); - start(); - }); - }); - - asyncTest('Loading package configuration json', function() { - System.config({ - packageConfigPaths: ['tests/testpkg*.json'] - }); - System.import('tests/testpkg2') - .then(function(m) { - ok(m.asdf == 'asdf'); - start(); - }, err); - }) - </script> - </body> -</html>
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test-jsextensions.html b/thirdparty/systemjs/test/test-jsextensions.html deleted file mode 100644 index bb64a8f73..000000000 --- a/thirdparty/systemjs/test/test-jsextensions.html +++ /dev/null @@ -1,112 +0,0 @@ -<!doctype html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/> - <script src="../bower_components/qunit/qunit/qunit.js"></script> - </head> - <body> - - <h1 id="qunit-header">SystemJS Test Suite</h1> - - <h2 id="qunit-banner"></h2> - <div id="qunit-testrunner-toolbar"></div> - <h2 id="qunit-userAgent"></h2> - <ol id="qunit-tests"></ol> - <div id="qunit-test-area"></div> - - <script> - // test polyfill loading - // window.URL = undefined; - </script> - - <script src="../dist/system.src.js" type="text/javascript"></script> - <script> - System.traceurOptions = { asyncFunctions: true }; - System.paths.traceur = '../node_modules/traceur/bin/traceur.js'; - - QUnit.config.testTimeout = 2000; - - QUnit.module("SystemJS JS Extensions"); - - System.config({ - defaultJSExtensions: true - }); - - asyncTest('Error handling', function() { - System['import']('tests/main').then(function(m) { - ok(m.dep == 'value'); - start(); - }); - }); - - asyncTest('Pathing extension handling', function() { - System.config({ - paths: { - 'path': 'tests/main' - }, - packages: { - 'tests/testpkg': { - basePath: 'lib', - defaultExtension: 'ts', - map: { - './asdf': './test.ts' - } - }, - 'tests/subcontextual-map': { - main: 'submodule', - map: { - dep: 'path' - } - } - } - }); - - Promise.all([ - System['import']('path'), - System['import']('tests/testpkg/asdf'), - System['import']('tests/subcontextual-map'), - System['import']('tests/main-dep'), - System['import']('tests/main-dep.js') - ]) - .then(function(mods) { - ok(mods[0].dep == 'value'); - ok(mods[1] == 'ts'); - ok(mods[2].dep == 'value'); - ok(mods[3] == mods[2]); - ok(mods[3] == mods[4]); - start(); - }) - }); - - System.config({ - packages: { - 'custom': { - defaultExtension: 'ext' - } - } - }); - asyncTest('Register extensions', function(err) { - System['import']('tests/register-default-extension.js').then(function() { - System['import']('custom/file.ext').then(function(m) { - ok(m.custom == 'ext'); - start(); - }, err); - }, err); - }); - - System.config({ - packages: { - 'tests/no-default-ext': { - defaultExtension: false - } - } - }); - asyncTest('No default extension', function(err) { - System['import']('tests/no-default-ext/file.ext').then(function(m) { - ok(m.ext == 'ext'); - start(); - }, err); - }); - </script> - </body> -</html>
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test-register-only.html b/thirdparty/systemjs/test/test-register-only.html deleted file mode 100644 index 65ff64100..000000000 --- a/thirdparty/systemjs/test/test-register-only.html +++ /dev/null @@ -1,45 +0,0 @@ -<!doctype html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/> - </head> - <body> - - <h1 id="qunit-header">SystemJS Test Suite</h1> - - <h2 id="qunit-banner"></h2> - <div id="qunit-testrunner-toolbar"></div> - <h2 id="qunit-userAgent"></h2> - <ol id="qunit-tests"></ol> - <div id="qunit-test-area"></div> - - <script src="../dist/system-register-only.src.js" type="text/javascript"></script> - <script src="../bower_components/qunit/qunit/qunit.js"></script> - - <script> - QUnit.config.testTimeout = 2000; - - QUnit.module("SystemJS CSP"); - - function err(e) { - setTimeout(function() { - throw e.stack || e; - start(); - }); - } - - asyncTest('System version', function() { - ok(System.version.match(/^\d+\.\d+\.\d+(-\w+)? Register Only$/)); - start(); - }); - - asyncTest('System.register Circular', function() { - System['import']('tests/register-circular1.js').then(function(m) { - ok(m.q == 3, 'Binding not allocated'); - ok(m.r == 5, 'Binding not updated'); - start(); - }, err); - }); - </script> - </body> -</html>
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test-tracer.html b/thirdparty/systemjs/test/test-tracer.html deleted file mode 100644 index 52075004f..000000000 --- a/thirdparty/systemjs/test/test-tracer.html +++ /dev/null @@ -1,71 +0,0 @@ -<!doctype html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/> - </head> - <body> - - <h1 id="qunit-header">SystemJS Test Suite</h1> - - <h2 id="qunit-banner"></h2> - <div id="qunit-testrunner-toolbar"></div> - <h2 id="qunit-userAgent"></h2> - <ol id="qunit-tests"></ol> - <div id="qunit-test-area"></div> - - <script src="../dist/system.src.js" type="text/javascript"></script> - - <script src="../bower_components/qunit/qunit/qunit.js"></script> - - <script> - System.paths.traceur = '../node_modules/traceur/bin/traceur.js'; - - QUnit.config.testTimeout = 2000; - - QUnit.module("SystemJS Tracer"); - - function err(e) { - setTimeout(function() { - throw e.stack || e; - start(); - }); - } - - // enable tracing - System.pluginLoader = new System.constructor(); - System.pluginLoader.paths = System.paths; - System.pluginLoader.baseURL = System.baseURL; - System.trace = true; - // System.execute = false; - - asyncTest('ES6 Circular', function() { - System['import']('tests/es6-circular1.js').then(function(m) { - ok(System.loads[System.normalizeSync('tests/es6-circular1.js')].deps[0] == './es6-circular2.js'); - start(); - }, err); - }); - - asyncTest('AMD & CJS circular, ES6 Circular', function() { - System['import']('tests/all-circular1.js').then(function(m) { - ok(System.loads[System.normalizeSync('tests/all-circular1.js')].deps[0] == './all-circular2.js'); - start(); - }, err); - }); - - asyncTest('AMD -> System.register circular -> ES6', function() { - System['import']('tests/all-layers1.js').then(function(m) { - ok(System.loads[System.normalizeSync('tests/all-layers1.js')].deps[0] == './all-layers2.js'); - start(); - }, err); - }); - - asyncTest('Advanced compiler plugin', function() { - System['import']('tests/compiler-test.coffee!tests/advanced-plugin.js').then(function(m) { - ok(true); - start(); - }, err); - }); - - </script> - </body> -</html>
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test-traceur.html b/thirdparty/systemjs/test/test-traceur.html deleted file mode 100644 index 87f4cd23d..000000000 --- a/thirdparty/systemjs/test/test-traceur.html +++ /dev/null @@ -1,34 +0,0 @@ -<!doctype html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/> - </head> - <body> - - <h1 id="qunit-header">SystemJS Test Suite</h1> - - <h2 id="qunit-banner"></h2> - <div id="qunit-testrunner-toolbar"></div> - <h2 id="qunit-userAgent"></h2> - <ol id="qunit-tests"></ol> - <div id="qunit-test-area"></div> - - <script> - // test polyfill loading - // window.URL = undefined; - </script> - - <script src="../dist/system.src.js" type="text/javascript"></script> - <script> - System.traceurOptions = { asyncFunctions: true }; - System.paths.traceur = '../node_modules/traceur/bin/traceur.js'; - System['import']('test.js')['catch'](function(e) { - setTimeout(function() { - throw e.stack || e; - }); - }); - </script> - - <script src="../bower_components/qunit/qunit/qunit.js"></script> - </body> -</html>
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test-traceur.js b/thirdparty/systemjs/test/test-traceur.js deleted file mode 100644 index 983f51b36..000000000 --- a/thirdparty/systemjs/test/test-traceur.js +++ /dev/null @@ -1,3 +0,0 @@ -System.transpiler = 'traceur'; -System.baseURL = 'test/'; -require('./test');
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test-typescript.html b/thirdparty/systemjs/test/test-typescript.html deleted file mode 100644 index 4258164c9..000000000 --- a/thirdparty/systemjs/test/test-typescript.html +++ /dev/null @@ -1,31 +0,0 @@ -<!doctype html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css"/> - </head> - <body> - - <h1 id="qunit-header">SystemJS Test Suite</h1> - - <h2 id="qunit-banner"></h2> - <div id="qunit-testrunner-toolbar"></div> - <h2 id="qunit-userAgent"></h2> - <ol id="qunit-tests"></ol> - <div id="qunit-test-area"></div> - - <!-- <script src="../bower_components/traceur/traceur.js"></script> --> - <script src="../node_modules/es6-module-loader/dist/es6-module-loader.src.js"></script> - <script src="../dist/system.src.js" type="text/javascript"></script> - <script> - System.paths['typescript'] = '../node_modules/typescript/lib/typescript.js'; - System.transpiler = 'typescript'; - System['import']('test.js')['catch'](function(e) { - setTimeout(function() { - throw e; - }) - }); - </script> - - <script src="../bower_components/qunit/qunit/qunit.js"></script> - </body> -</html>
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test-typescript.js b/thirdparty/systemjs/test/test-typescript.js deleted file mode 100644 index e7a858309..000000000 --- a/thirdparty/systemjs/test/test-typescript.js +++ /dev/null @@ -1,4 +0,0 @@ -global.ts = require('typescript'); -System.transpiler = 'typescript'; -System.baseURL = 'test/'; -require('./test');
\ No newline at end of file diff --git a/thirdparty/systemjs/test/test.js b/thirdparty/systemjs/test/test.js deleted file mode 100644 index 6d981d761..000000000 --- a/thirdparty/systemjs/test/test.js +++ /dev/null @@ -1,1462 +0,0 @@ -"format global"; - -(function(global) { - -QUnit.config.testTimeout = 30000; - -QUnit.module("SystemJS"); - -if (typeof window == 'undefined') - System.baseURL = 'test'; - -function err(e) { - setTimeout(function() { - if (typeof window == 'undefined') - console.log(e && e.stack || e); - else - throw e; - start(); - }); -} - -var ie8 = typeof navigator != 'undefined' && navigator.appVersion && navigator.appVersion.indexOf('MSIE 8') != -1; - -asyncTest('System version', function() { - ok(System.version.match(/^\d+\.\d+\.\d+(-\w+)? (Standard|Node)$/)); - start(); -}); - -asyncTest('new Module().toString() == "Module"', function() { - System['import']('tests/global.js').then(function() { - var m = System.get(System.normalizeSync('tests/global.js')); - ok(m == 'Module'); - start(); - }); -}); - -asyncTest('Error handling', function() { - System['import']('tests/error-loader.js').then(err, function(e) { - ok(true); - start(); - }); -}); - -asyncTest('Error handling2', function() { - System['import']('tests/error-loader2.js').then(err, function(e) { - if (typeof console != 'undefined' && console.error) - console.error(e); - ok(true); - start(); - }); -}); - -if (!ie8) -asyncTest('Global script loading', function() { - System['import']('tests/global.js').then(function(m) { - ok(m.jjQuery && m.another, 'Global objects not defined'); - start(); - }, err); -}); - -if (!ie8) -asyncTest('Global script with var syntax', function() { - System['import']('tests/global-single.js').then(function(m) { - ok(m == 'bar', 'Wrong global value'); - start(); - }, err); -}); - -asyncTest('Global script with multiple objects the same', function() { - System['import']('tests/global-multi.js').then(function(m) { - ok(m.jquery == 'here', 'Multi globals not detected'); - start(); - }, err); -}); - -if (!ie8) -asyncTest('Global script multiple objects different', function() { - System['import']('tests/global-multi-diff.js').then(function(m) { - ok(m.foo == 'barz'); - ok(m.baz == 'chaz'); - ok(m.zed == 'ted'); - start(); - }, err); -}); - -asyncTest('Global script loading with inline shim', function() { - System['import']('tests/global-inline-dep.js').then(function(m) { - ok(m == '1.8.3', 'Global dependency not defined'); - start(); - }, err); -}); - -asyncTest('Global script with inline exports', function() { - System['import']('tests/global-inline-export.js').then(function(m) { - ok(m == 'r', 'Inline export not applied'); - start(); - }, err); -}); - -asyncTest('Global script with shim config', function() { - System.config({ - meta: { - 'tests/global-shim-config.js': { - deps: ['./global-shim-config-dep.js'] - } - } - }); - // System. = { deps: ['./global-shim-config-dep.js'] }; - System['import']('tests/global-shim-config.js').then(function(m) { - ok(m == 'shimmed', 'Not shimmed'); - start(); - }, err); -}); - -if (!ie8) -asyncTest('Global script with inaccessible properties', function() { - Object.defineProperty(System.global, 'errorOnAccess', { - configurable: true, - enumerable: true, - get: function() { throw Error('This property is inaccessible'); }, - }); - - System['import']('tests/global-inaccessible-props.js').then(function(m) { - ok(m == 'result of global-inaccessible-props', 'Failed due to a inaccessible property'); - - delete System.global.errorOnAccess; - start(); - }, err); -}); - -asyncTest('Global script loading that detects as AMD with shim config', function() { - System.config({ - meta: { - 'tests/global-shim-amd.js': { format: 'global' } - } - }); - - System['import']('tests/global-shim-amd.js').then(function(m) { - ok(m == 'global', 'Not shimmed'); - start(); - }, err); -}); - -asyncTest('Global script with exports as an array', function() { - System.config({ - meta: { - 'tests/global-exports-array.js': { - exports: ['A', 'B'] - } - } - }); - - System['import']('tests/global-exports-array.js').then(function(m) { - ok(m.A == 'A'); - ok(m.B == 'B'); - ok(!m.C); - ok(m['default'] == 'A'); - start(); - }, err); -}); - -asyncTest('Global with encapsulated execution', function() { - System.config({ - meta: { - 'tests/global-encapsulation.js': { - encapsulateGlobal: true - } - } - }); - - System['import']('tests/global-encapsulation.js').then(function(m) { - ok(m == 'encapsulated global'); - ok(global.globalName === undefined); - start(); - }, err); -}); - -if (!ie8) -asyncTest('Meta should override meta syntax', function() { - System.meta[System.normalizeSync('tests/meta-override.js')] = { format: 'esm' }; - System['import']('tests/meta-override.js').then(function(m) { - ok(m.p == 'value', 'Not ES6'); - start(); - }, err); -}); - -asyncTest('Support the empty module', function() { - System['import']('@empty').then(function(m) { - ok(m, 'No empty module'); - start(); - }, err); -}); - -asyncTest('Global script with shim config exports', function() { - System.meta[System.normalizeSync('tests/global-shim-config-exports.js')] = { exports: 'p' }; - System['import']('tests/global-shim-config-exports.js').then(function(m) { - ok(m == 'export', 'Exports not shimmed'); - start(); - }, err); -}); - -asyncTest('Map configuration', function() { - System.map['maptest'] = 'tests/map-test.js'; - System['import']('maptest').then(function(m) { - ok(m.maptest == 'maptest', 'Mapped module not loaded'); - start(); - }, err); -}); - -asyncTest('Map configuration subpath', function() { - System.map['maptest'] = 'tests/map-test'; - System['import']('maptest/sub.js').then(function(m) { - ok(m.maptest == 'maptestsub', 'Mapped folder not loaded'); - start(); - }, err); -}); - -asyncTest('Contextual map configuration', function() { - System.config({ - packages: { - 'tests/contextual-test': { - main: 'contextual-map.js' - } - }, - map: { - 'tests/contextual-test': { - maptest: '../contextual-map-dep.js' - } - } - }); - System['import']('tests/contextual-test').then(function(m) { - ok(m.mapdep == 'mapdep', 'Contextual map dep not loaded'); - start(); - }, err); -}); - -asyncTest('Contextual map configuration for a package that is a file', function() { - System.config({ - packages: { - 'tests/jquery.js': { - meta: { - '*': { - deps: ['a'] - } - }, - map: { - 'a': 'tests/amd-dep-A.js' - } - } - }, - map: { - jquery: 'tests/jquery.js' - } - }); - System['import']('tests/jquery.js').then(function(m) { - ok(m == 10); - start(); - }, err); -}) - -asyncTest('Package map with shim', function() { - System.config({ - packages: { - 'tests/shim-package': { - meta: { - '*': { - deps: ['shim-map-dep'] - } - }, - map: { - 'shim-map-dep': '../shim-map-test-dep.js' - } - } - } - }); - System['import']('tests/shim-package/shim-map-test.js').then(function(m) { - ok(m == 'depvalue', 'shim dep not loaded'); - start(); - }, err); -}); - -asyncTest('Loading an AMD module', function() { - System.config({ - meta: { - 'tests/amd-module.js': { - format: 'amd' - } - } - }); - System['import']('tests/amd-module.js').then(function(m) { - ok(m.amd == true, 'Incorrect module'); - ok(m.dep.amd == 'dep', 'Dependency not defined'); - start(); - }, err); -}); - -asyncTest('AMD detection test', function() { - System['import']('tests/amd-module-2.js').then(function(m) { - ok(m.amd); - start(); - }, err); -}); - -asyncTest('AMD detection test with comments', function() { - System['import']('tests/amd-module-3.js').then(function(m) { - ok(m.amd); - start(); - }, err); -}); - -asyncTest('AMD detection test with byte order mark (BOM)', function() { - System['import']('tests/amd-module-bom.js').then(function(m) { - ok(m.amd); - start(); - }, err); -}); - -asyncTest('AMD with dynamic require callback', function() { - System['import']('tests/amd-dynamic-require.js').then(function(m) { - m.onCallback(function(m) { - ok(m === 'dynamic'); - start(); - }); - }); -}); - -asyncTest('Loading an AMD bundle', function() { - System.config({ - bundles: { - 'tests/amd-bundle.js': ['bundle-*'] - } - }); - System['import']('bundle-1').then(function(m) { - ok(m.defined == true); - start(); - }, err); - - stop(); - System['import']('bundle-2').then(function(m) { - ok(m.defined == true); - start(); - }, err); -}); - -asyncTest('Loading an AMD named define', function() { - System['import']('tests/nameddefine.js').then(function(m1) { - ok(m1.converter, 'Showdown not loaded'); - System['import']('another-define').then(function(m2) { - ok(m2.named === 'define', 'Another module is not defined'); - start(); - }, err); - }, err); -}); - -asyncTest('Loading an AMD bundle with an anonymous define', function() { - System['import']('tests/anon-named.js').then(function(m) { - ok(m.anon == true); - start(); - }, err); -}); - -asyncTest('Loading an AMD bundle with multiple anonymous defines', function() { - System['import']('tests/multiple-anonymous.js').then(function(m) { - ok(false); - start(); - }, function(e) { - ok(e.toString().indexOf('Multiple anonymous') != -1) - start(); - }); -}) - -asyncTest('Loading AMD CommonJS form', function() { - System['import']('tests/amd-cjs-module.js').then(function(m) { - ok(m.test == 'hi', 'Not defined'); - start(); - }, err); -}); - -asyncTest('AMD contextual require toUrl', function() { - System['import']('tests/amd-contextual.js').then(function(m) { - ok(m.name == System.baseURL + 'tests/amd-contextual.js'); - ok(m.rel == System.baseURL + 'rel-path.js'); - start(); - }, err); -}); - -// TODO: fix! -/* asyncTest('AMD race condition test', function() { - System.config({ - bundles: { - "tests/out.js": ["tests/lib/modB.js"] - } - }); - - var completed = 0; - function completeImport() { - if (++completed == 3) { - ok(true); - start(); - } - } - - System.import('tests/modA.js').then(completeImport, err); - setTimeout(function () { - System.import('tests/modC.js').then(completeImport, err); - System.import('tests/lib/modB.js').then(completeImport, err); - }, 10); -}); */ - -asyncTest('Loading a CommonJS module', function() { - System['import']('tests/common-js-module.js').then(function(m) { - ok(m.hello == 'world', 'module value not defined'); - ok(m.first == 'this is a dep', 'dep value not defined'); - start(); - }, err); -}); - -asyncTest('Loading a CommonJS module with this', function() { - System['import']('tests/cjs-this.js').then(function(m) { - ok(m.asdf == 'module value'); - start(); - }, err); -}); - -asyncTest('CommonJS setting module.exports', function() { - System['import']('tests/cjs-exports.js').then(function(m) { - ok(m.e == 'export'); - start(); - }, err); -}); - -asyncTest('CommonJS detection variation 1', function() { - System['import']('tests/commonjs-variation.js').then(function(m) { - ok(m.e === System.get('@empty')); - start(); - }, err); -}); - -if (!ie8) -asyncTest('CommonJS detection variation 2', function() { - System['import']('tests/commonjs-variation2.js').then(function(m) { - ok(typeof m.OpaqueToken === 'function'); - start(); - }, err); -}); - -asyncTest('CommonJS detection test with byte order mark (BOM)', function() { - System['import']('tests/cjs-exports-bom.js').then(function(m) { - ok(m.foo == 'bar'); - start(); - }, err); -}); - -asyncTest('CommonJS module detection test with byte order mark (BOM)', function() { - System['import']('tests/cjs-module-bom.js').then(function(m) { - ok(m.foo == 'bar'); - start(); - }, err); -}); - -asyncTest('CommonJS require variations', function() { - System['import']('tests/commonjs-requires.js').then(function(m) { - ok(m.d1 == 'd'); - ok(m.d2 == 'd'); - ok(m.d3 == "require('not a dep')"); - ok(m.d4 == "text/* require('still not a dep') text"); - ok(m.d5 == 'text \'quote\' require("yet still not a dep")'); - ok(m.d6 == 'd6'); - ok(m.d7 == 'export'); - start(); - }, err); -}); - -asyncTest('CommonJS globals', function() { - System.config({ - meta: { - 'tests/commonjs-globals.js': { - globals: { - process: './cjs-process.js' - } - } - } - }); - System['import']('tests/commonjs-globals.js').then(function(m) { - ok(m.process.env.NODE_ENV) - start(); - }, err); -}); - -asyncTest('CommonJS require.resolve', function() { - System['import']('tests/cjs-resolve.js').then(function(m) { - ok(m.substr(m.length - 12, 12) == 'test/tests/a'); - start(); - }, err); -}) - -asyncTest('Loading a UMD module', function() { - System['import']('tests/umd.js').then(function(m) { - ok(m.d == 'hi', 'module value not defined'); - start(); - }, err); -}); - -asyncTest('Loading AMD with format hint', function() { - System['import']('tests/amd-format.js').then(function(m) { - ok(m.amd == 'amd', 'AMD not loaded'); - start(); - }, err); -}); - -asyncTest('Loading CJS with format hint', function() { - System['import']('tests/cjs-format.js').then(function(m) { - ok(m.cjs == 'cjs', 'CJS not loaded'); - start(); - }, err); -}); - -asyncTest('CommonJS globals', function() { - System['import']('tests/cjs-globals.js').then(function(m) { - ok(m.filename.match(/tests\/cjs-globals\.js$/)); - ok(m.dirname.match(/\/tests$/)); - ok(m.global == global); - start(); - }, err); -}); - -asyncTest('Versions', function() { - System['import']('tests/zero@0.js').then(function(m) { - ok(m == '0'); - start() - }, err); -}); - -asyncTest('Loading a module with # in the name', function() { - System['import']('tests/#.js').then(function(m) { - ok(m == '#'); - start(); - }, err); -}); - -asyncTest('Simple compiler Plugin', function() { - System.map['coffee'] = 'tests/compiler-plugin.js'; - System['import']('tests/compiler-test.coffee!').then(function(m) { - ok(m.output == 'plugin output', 'Plugin not working.'); - ok(m.extra == 'yay!', 'Compiler not working.'); - start(); - }, err); -}); - -asyncTest('Mapping a plugin argument', function() { - System.map['bootstrap'] = 'tests/bootstrap@3.1.1'; - System.map['coffee'] = 'tests/compiler-plugin.js'; - System['import']('bootstrap/test.coffee!coffee').then(function(m) { - ok(m.extra == 'yay!', 'not working'); - start(); - }, err); -}); - -asyncTest('Using pluginFirst config', function() { - System.pluginFirst = true; - System.map['bootstrap'] = 'tests/bootstrap@3.1.1'; - System.map['coffee'] = 'tests/compiler-plugin.js'; - System['import']('coffee!bootstrap/test.coffee').then(function(m) { - ok(m.extra == 'yay!', 'not working'); - System.pluginFirst = false; - start(); - }, err); -}); - -asyncTest('Advanced compiler plugin', function() { - System['import']('tests/compiler-test.js!tests/advanced-plugin.js').then(function(m) { - ok(m == 'custom fetch:' + System.baseURL + 'tests/compiler-test.js!' + System.baseURL + 'tests/advanced-plugin.js', m); - start(); - }, err); -}); - -asyncTest('Plugin as a dependency', function() { - System.map['css'] = 'tests/css.js'; - System['import']('tests/cjs-loading-plugin.js').then(function(m) { - ok(m.pluginSource == 'this is css'); - start(); - }, err); -}); - -asyncTest('AMD Circular', function() { - System['import']('tests/amd-circular1.js').then(function(m) { - ok(m.outFunc() == 5, 'Expected execution'); - start(); - })['catch'](err); -}); - -asyncTest('CJS Circular', function() { - System['import']('tests/cjs-circular1.js').then(function(m) { - ok(m.first == 'second value'); - ok(m.firstWas == 'first value', 'Original value'); - start(); - }, err); -}); - -asyncTest('System.register Circular', function() { - System.config({ - meta: { - 'tests/register-circular1.js': { - scriptLoad: true - } - } - }); - System['import']('tests/register-circular1.js').then(function(m) { - ok(m.q == 3, 'Binding not allocated'); - ok(m.r == 5, 'Binding not updated'); - start(); - }, err); -}); - -asyncTest('System.register regex test', function() { - System['import']('tests/register-regex.js').then(function(m) { - ok(m); - start(); - }, err); -}); - -asyncTest('System.register regex test 2', function() { - System['import']('tests/register-regex-2.js').then(function(m) { - ok(m); - start(); - }, err); -}); - -asyncTest('System.register module name arg', function() { - System['import']('tests/module-name.js').then(function(m) { - ok(m.name == System.baseURL + 'tests/module-name.js'); - start(); - }, err); -}); - -asyncTest('System.register group linking test', function() { - System.config({ - bundles: { - 'tests/group-test.js': ['group-a'] - } - }); - System['import']('group-a').then(function(m) { - ok(m); - start(); - }, err); -}); - -System.config({ - bundles: { - 'tests/mixed-bundle.js': ['tree/third', 'tree/cjs', 'tree/jquery', 'tree/second', 'tree/global', 'tree/amd', 'tree/first'] - } -}); - -asyncTest('Loading AMD from a bundle', function() { - System['import']('tree/amd').then(function(m) { - ok(m.is == 'amd'); - start(); - }, err); -}); - -asyncTest('Loading CommonJS from a bundle', function() { - System['import']('tree/cjs').then(function(m) { - ok(m.cjs === true); - start(); - }, err); -}); - -asyncTest('Loading a Global from a bundle', function() { - System['import']('tree/global').then(function(m) { - ok(m === 'output'); - start(); - }, err); -}); - -asyncTest('Loading named System.register', function() { - System['import']('tree/third').then(function(m) { - ok(m.some == 'exports'); - start(); - }, err); -}); -asyncTest('Loading System.register from ES6', function() { - System.config({ - meta: { - 'tree/first': { - format: 'esm' - } - } - }); - System['import']('tree/first').then(function(m) { - ok(m.p == 5); - start(); - }, err); -}); - -asyncTest('AMD simplified CommonJS wrapping with an aliased require', function() { - System['import']('tests/amd-simplified-cjs-aliased-require1.js').then(function(m) { - ok(m.require2,"got dependency from aliased require"); - ok(m.require2.amdCJS,"got dependency from aliased require listed as a dependency"); - start(); - }, err); -}); - -asyncTest('Loading dynamic modules with __esModule flag set', function() { - System['import']('tests/es-module-flag.js').then(function() { - m = System.get(System.normalizeSync('tests/es-module-flag.js')); - ok(m.exportName == 'export'); - ok(m['default'] == 'default export'); - ok(m.__esModule === true); - start(); - }, err); -}); - -if (!ie8) { -asyncTest('ES6 named export loading of CJS', function() { - System['import']('tests/es-named-import-cjs.js').then(function(m) { - ok(m.cjsFuncValue === 'named export'); - start(); - }); -}); - -// TypeScript does not support async functions yet -if (System.transpiler !== 'typescript') -asyncTest('Async functions', function() { - System.babelOptions = { stage: 0 }; - System.traceurOptions = { asyncFunctions: true }; - System['import']('tests/async.js').then(function(m) { - ok(true); - start(); - }); -}); - -if (System.transpiler !== 'typescript') -asyncTest('Wrapper module support', function() { - System['import']('tests/wrapper.js').then(function(m) { - ok(m.d == 'default1', 'Wrapper module not defined.'); - start(); - }, err); -}); - -asyncTest('ES6 plugin', function() { - System['import']('tests/blah.js!tests/es6-plugin.js').then(function(m) { - ok(m == 'plugin'); - start(); - }, err); -}); - -asyncTest('ES6 detection', function() { - System['import']('tests/es6-detection1.js').then(function(m) { - ok(true); - start(); - }, err); -}); - -asyncTest('Basic exporting & importing', function() { - var m1, m2, m3, m4, err; - var checkComplete = function() { - if (m1 && m2 && m3 && m4 && err) { - ok(m1['default'] == 'default1', 'Error defining default 1'); - ok(m2['default'] == 'default2', 'Error defining default 2'); - ok(m3['default'] == 'default3', 'Error defining default 3'); - ok(m4.test == 'default3', 'Error defining module'); - start(); - } - }; - System['import']('tests/default1.js').then(function(_m1) { - if (m1 === undefined) - m1 = null; - else - m1 = _m1; - checkComplete(); - })['catch'](err); - System['import']('tests/default1.js').then(function(_m1) { - if (m1 === undefined) - m1 = null; - else - m1 = _m1; - checkComplete(); - })['catch'](err); - System['import']('tests/default2.js').then(function(_m2) { - m2 = _m2; - checkComplete(); - })['catch'](err); - System['import']('tests/asdf.js').then(function() { - }, function(_err) { - err = _err; - checkComplete(); - })['catch'](err); - System['import']('tests/default3.js').then(function(_m3) { - m3 = _m3; - checkComplete(); - })['catch'](err); - System['import']('tests/module.js').then(function(_m4) { - m4 = _m4; - checkComplete(); - })['catch'](err); -}); - -asyncTest('Export Star', function(assert) { - System['import']('tests/export-star.js').then(function(m) { - ok(m.foo == 'foo'); - ok(m.bar == 'bar'); - start(); - }, err); -}); - -asyncTest('Importing a mapped loaded module', function() { - System.map['default1'] = 'tests/default1.js'; - System['import']('default1').then(function(m) { - System['import']('default1').then(function(m) { - ok(m, 'no module'); - start(); - }, err); - }, err); -}); - -asyncTest('Loading empty ES6', function() { - System['import']('tests/empty-es6.js').then(function(m) { - ok(m && emptyES6); - start(); - }, err); -}) - -asyncTest('Loading ES6 with format hint', function() { - System['import']('tests/es6-format.js').then(function(m) { - expect(0); - start(); - }, err); -}); - -asyncTest('Loading ES6 loading AMD', function() { - System['import']('tests/es6-loading-amd.js').then(function(m) { - ok(m.amd == true); - start(); - }) -}); - -asyncTest('Loading AMD with import *', function() { - System['import']('tests/es6-import-star-amd.js').then(function(m) { - ok(m.g == true); - start(); - }, err); -}); - -asyncTest('Loading ES6 and AMD', function() { - System['import']('tests/es6-and-amd.js').then(function(m) { - ok(m.amd_module == 'AMD Module'); - ok(m.es6_module == 'ES6 Module'); - start(); - }, err); -}); - -asyncTest('ES module deps support', function() { - System.config({ - meta: { - 'tests/esm-with-deps.js': { - deps: ['tests/esm-dep.js'] - } - } - }); - System['import']('tests/esm-with-deps.js').then(function(m) { - ok(m.p == 5); - ok(global.esmDep == 'esm-dep'); - start(); - }); -}); - -asyncTest('Module Name meta', function() { - System['import']('tests/reflection.js').then(function(m) { - ok(m.myname == System.normalizeSync('tests/reflection.js'), 'Module name not returned'); - start(); - }, err); -}); - -asyncTest('Relative dyanamic loading', function() { - System['import']('tests/reldynamic.js').then(function(m) { - return m.dynamicLoad(); - }) - .then(function(m) { - ok(m.dynamic == 'module', 'Dynamic load failed'); - start(); - }) - ['catch'](err); -}); - -asyncTest('ES6 Circular', function() { - System['import']('tests/es6-circular1.js').then(function(m) { - ok(m.q == 3, 'Binding not allocated'); - if (System.transpiler != '6to5') ok(m.r == 3, 'Binding not updated'); - start(); - }, err); -}); - -asyncTest('AMD & CJS circular, ES6 Circular', function() { - System['import']('tests/all-circular1.js').then(function(m) { - if (System.transpiler != '6to5') ok(m.q == 4); - ok(m.o.checkObj() == 'changed'); - start(); - }, err); -}); - -asyncTest('AMD -> System.register circular -> ES6', function() { - System['import']('tests/all-layers1.js').then(function(m) { - ok(m == true) - start(); - }, err); -}); - -asyncTest('Metadata dependencies work for named defines', function() { - System['import']('tests/meta-deps.js').then(function(m) { - return System['import']('b'); - }).then(function(m) { - ok(m.a === 'a'); - start(); - }); -}); - -asyncTest('Loading an AMD module that requires another works', function() { - expect(0); - System['import']('tests/amd-require.js').then(function(){ - // Just getting this far means it is working. - start(); - }); -}); - -asyncTest('Loading a connected tree that connects ES and CJS modules', function(){ - System['import']('tests/connected-tree/a.js').then(function(a){ - ok(a.name === "a"); - start(); - }); -}); - -asyncTest('Loading two bundles that have a shared dependency', function() { - System.config({ - bundles: { - "tests/shared-dep-bundles/a.js": ["lib/shared-dep", "lib/a"], - "tests/shared-dep-bundles/b.js": ["lib/shared-dep", "lib/b"] - } - }); - expect(0); - System['import']('lib/a').then(function() { - System['import']('lib/b').then(function() { - //If it gets here it's fine - start(); - }, err); - }, err); -}); -} - -asyncTest("System clone", function() { - var clonedSystem = new System.constructor(); - - clonedSystem.baseURL = System.baseURL; - - System.map['maptest'] = 'tests/map-test.js'; - clonedSystem.map['maptest'] = 'tests/map-test-dep.js'; - - Promise.all([System['import']('maptest'), clonedSystem['import']('maptest')]).then(function(modules) { - var m = modules[0]; - var mClone = modules[1]; - - ok(m.maptest == 'maptest', 'Mapped module not loaded'); - ok(mClone.dep == 'maptest', 'Mapped module not loaded'); - ok(mClone !== m, "different modules"); - - start(); - }, err); -}); - -asyncTest('Custom loader instance System scoped', function() { - var customSystem = new System.constructor(); - - customSystem.baseURL = System.baseURL; - customSystem.paths = System.paths; - customSystem.transpiler = System.transpiler; - customSystem['import']('tests/loader-scoping.js') - .then(function(m) { - ok(m.loader == customSystem); - start(); - }, err);; -}); - -if(typeof window !== 'undefined' && window.Worker) { - asyncTest('Using SystemJS in a Web Worker', function() { - var worker = new Worker('./tests/worker-' + System.transpiler + '.js'); - worker.onmessage = function(e) { - ok(e.data.amd === 'AMD Module'); - ok(e.data.es6 === 'ES6 Module'); - start(); - }; - }); -} - -asyncTest("Duplicate entries", function() { - System["import"]('tests/duplicateDeps/m1.js').then(function(m) { - var r = m.foo() + ":" + m.f3(); - ok(r === "3:3", "duplicate entries in dependency list not handled correctly"); - start(); - }) -}); - -// new features!! -if (!ie8) -asyncTest('Named imports for non-es6', function() { - System['import']('tests/es6-cjs-named-export.js').then(function(m) { - ok(m.someExport == 'asdf'); - start(); - }, err); -}); - -asyncTest('Globals', function() { - System.config({ - meta: { - 'tests/with-global-deps.js': { - globals: { - '$$$': 'tests/dep.js' - } - } - } - }); - System['import']('tests/with-global-deps.js').then(function(m) { - for (var p in m) - ok(false); - ok(!global.$$$); - start(); - }, err); -}); - -asyncTest('Scriptload precompiled global with exports still defined', function() { - System.config({ - meta: { - 'tests/global-single-compiled.js': { - scriptLoad: true, - exports: 'foobar', - format: typeof global != 'undefined' ? 'register' : 'global' - } - } - }); - System['import']('tests/global-single-compiled.js').then(function(m) { - ok(m == 'foo'); - start(); - }, err); -}); - -asyncTest('Multi-format deps meta', function() { - System['import']('tests/amd-extra-deps.js').then(function(m) { - ok(m.join(',') == '10,5'); - start(); - }, err); -}); - - -asyncTest('Wildcard meta', function() { - System.config({ - meta: { - 'tests/cs/main.js': { - deps: ['./dep.js'] - }, - 'tests/cs/*': { - loader: 'tests/cs-loader.js' - } - } - }); - System['import']('tests/cs/main.js').then(function(m) { - ok(m == 'cs'); - start(); - }); -}); - -asyncTest('Package configuration CommonJS config example', function() { - System.config({ - map: { - 'global-test': 'tests/testpkg/test.ts' - }, - //packageConfigPaths: ['tests/testpk*.json'], - packageConfigPaths: ['tests/testpkg/system.json'], - packages: { - 'tests/testpkg': { - main: './noext', - map: { - "testpkg": "." - }, - asdf: 'asdf' - } - } - }); - - Promise.all([ - System['import']('tests/testpkg'), - System['import']('tests/testpkg/json'), - System['import']('tests/testpkg/dir/test'), - System['import']('tests/testpkg/dir2'), - System['import']('tests/testpkg/dir/'), - System['import']('tests/testpkg/env-module'), - System['import']('tests/testpkg/self'), - System['import']('tests/testpkg/conditional1'), - System['import']('tests/testpkg/conditional2'), - System['import']('tests/testpkg/self-load.js'), - System['import']('tests/testpkg/dir/self-load.js') - ]).then(function(m) { - ok(m[0].prop == 'value'); - ok(m[1].prop == 'value'); - ok(m[2] == 'ts'); - ok(m[3].json == 'index'); - ok(m[4] == 'dirindex'); - ok(m[5] == (typeof window != 'undefined' ? 'browser' : 'not browser')); - ok(m[6].prop == 'value'); - ok(m[7] == 'interpolated!'); - ok(m[8] == 'interpolated!'); - ok(m[9].a.prop == 'value' && m[9].b.prop == 'value'); - ok(m[10].a.prop == 'value' && m[10].b.prop == 'value'); - ok(global.depCacheTest == 'passed'); - start(); - }, err); -}); - -asyncTest('Package edge cases', function() { - - var clonedSystem = new System.constructor(); - - var pkgCfg = { defaultExtension: 'asdf' }; - - try { - clonedSystem.config({ - packages: { - '//': pkgCfg - } - }); - ok(false); - } - catch(e) { - ok(e.toString().indexOf('not a valid package name') != -1); - } - - try { - clonedSystem.config({ - packages: { - 'https://': pkgCfg - } - }); - ok(false); - } - catch(e) { - ok(e.toString().indexOf('not a valid package name') != -1); - } - - clonedSystem.config({ - packages: { - 'https://cdn.jquery.com': pkgCfg, - '//cdn.jquery.com': pkgCfg - } - }); - - clonedSystem.config({ - packages: { - // both equivalent: - '.': pkgCfg, - './': pkgCfg, - - '/': pkgCfg, - - // this is now a nested package - // but our trailling / should avoid extension rules - // both equivalent: - '../': pkgCfg, - '..': pkgCfg - } - }); - - // ensure trailing "/" is equivalent to "tests/testpkg" - clonedSystem.config({ - packageConfigPaths: ['tests/*.json'], - packages: { - 'tests/testpkg2/': { - defaultExtension: 'js' - } - } - }); - - // we now have nested packages: - // testpkg/ within test/ within / root:// - // we're testing that we always select the rules of the inner package - clonedSystem['import']('tests/testpkg2/').then(function(m) { - ok(m.asdf == 'asdf'); - start(); - }, err); -}); - -asyncTest('Package map circular cases', function() { - System.config({ - map: { - tp3: 'tests/testpkg3' - }, - packages: { - 'tests/testpkg3': { - map: { - './lib': './lib/asdf.js', - './lib/': './lib/index.js', - './lib/p': './lib/q.js', - './src/': './src/index.js', - './bin': './bin/index.js' - } - } - } - }); - - Promise.all([ - System.normalize('tp3/lib'), - System.normalize('tp3/lib/'), - System.normalize('tp3/lib/q'), - System.normalize('tp3/lib/p'), - - System.normalize('../lib', System.baseURL + 'tests/testpkg3/asdf/x.js'), - System.normalize('../lib/', System.baseURL + 'tests/testpkg3/asdf/x.js'), - System.normalize('../lib/x', System.baseURL + 'tests/testpkg3/asdf/x.js'), - - System.normalize('.', System.baseURL + 'tests/testpkg3/lib/a'), - System.normalize('./', System.baseURL + 'tests/testpkg3/lib/x'), - System.normalize('./p', System.baseURL + 'tests/testpkg3/lib/x'), - System.normalize('./q', System.baseURL + 'tests/testpkg3/lib/x'), - - System.normalize('./lib', System.baseURL + 'tests/testpkg3/x.js'), - System.normalize('./lib/', System.baseURL + 'tests/testpkg3/x.js'), - System.normalize('./lib/p', System.baseURL + 'tests/testpkg3/x.js'), - System.normalize('./lib/q', System.baseURL + 'tests/testpkg3/x.js'), - - System.normalize('../lib/', System.baseURL + 'tests/testpkg3/lib/x.js'), - System.normalize('../lib/x', System.baseURL + 'tests/testpkg3/lib/x.js'), - System.normalize('tp3/lib/q', System.baseURL + 'tests/testpkg3/lib/x.js'), - - System.normalize('./src', System.baseURL + 'tests/testpkg3/'), - System.normalize('./src/', System.baseURL + 'tests/testpkg3/'), - System.normalize('./src/x', System.baseURL + 'tests/testpkg3/'), - - System.normalize('tp3/src'), - System.normalize('tp3/src/'), - System.normalize('tp3/src/x'), - - System.normalize('./bin', System.baseURL + 'tests/testpkg3/'), - System.normalize('./bin/', System.baseURL + 'tests/testpkg3/'), - System.normalize('./bin/x', System.baseURL + 'tests/testpkg3/'), - - System.normalize('tp3/bin'), - System.normalize('tp3/bin/'), - System.normalize('tp3/bin/x'), - - System.normalize('.', System.baseURL + 'tests/testpkg3/bin/x') - ]) - .then(function(n) { - ok(n[0] == System.baseURL + 'tests/testpkg3/lib/asdf.js'); - ok(n[1] == System.baseURL + 'tests/testpkg3/lib/index.js'); - ok(n[2] == System.baseURL + 'tests/testpkg3/lib/q.js'); - ok(n[3] == System.baseURL + 'tests/testpkg3/lib/q.js'); - - ok(n[4] == System.baseURL + 'tests/testpkg3/lib/asdf.js'); - ok(n[5] == System.baseURL + 'tests/testpkg3/lib/index.js'); - ok(n[6] == System.baseURL + 'tests/testpkg3/lib/x.js'); - - ok(n[7] == System.baseURL + 'tests/testpkg3/lib/index.js'); - ok(n[8] == System.baseURL + 'tests/testpkg3/lib/index.js'); - ok(n[9] == System.baseURL + 'tests/testpkg3/lib/q.js'); - ok(n[10] == System.baseURL + 'tests/testpkg3/lib/q.js'); - - ok(n[11] == System.baseURL + 'tests/testpkg3/lib/asdf.js'); - ok(n[12] == System.baseURL + 'tests/testpkg3/lib/index.js'); - ok(n[13] == System.baseURL + 'tests/testpkg3/lib/q.js'); - ok(n[14] == System.baseURL + 'tests/testpkg3/lib/q.js'); - - ok(n[15] == System.baseURL + 'tests/testpkg3/lib/index.js'); - ok(n[16] == System.baseURL + 'tests/testpkg3/lib/x.js'); - ok(n[17] == System.baseURL + 'tests/testpkg3/lib/q.js'); - - ok(n[18] == System.baseURL + 'tests/testpkg3/src.js'); - ok(n[19] == System.baseURL + 'tests/testpkg3/src/index.js'); - ok(n[20] == System.baseURL + 'tests/testpkg3/src/x.js'); - - ok(n[21] == System.baseURL + 'tests/testpkg3/src.js'); - ok(n[22] == System.baseURL + 'tests/testpkg3/src/index.js'); - ok(n[23] == System.baseURL + 'tests/testpkg3/src/x.js'); - - ok(n[24] == System.baseURL + 'tests/testpkg3/bin/index.js'); - ok(n[25] == System.baseURL + 'tests/testpkg3/bin/index.js'); - ok(n[26] == System.baseURL + 'tests/testpkg3/bin/x.js'); - - ok(n[27] == System.baseURL + 'tests/testpkg3/bin/index.js'); - ok(n[28] == System.baseURL + 'tests/testpkg3/bin/index.js'); - ok(n[29] == System.baseURL + 'tests/testpkg3/bin/x.js'); - - ok(n[30] == System.baseURL + 'tests/testpkg3/bin/index.js'); - start(); - }, err); - -}); - -if (!ie8) -asyncTest('Conditional loading', function() { - System.set('env', System.newModule({ 'browser': 'ie' })); - - System['import']('tests/branch-#{env|browser}.js').then(function(m) { - ok(m.branch == 'ie'); - start(); - }, err); -}); - -asyncTest('Boolean conditional false', function() { - System.set('env', System.newModule({ 'js': { 'es5': true } })); - - System['import']('tests/branch-boolean.js#?~env|js.es5').then(function(m) { - ok(m === System.get('@empty')); - start(); - }, err); -}); - -if (!ie8) -asyncTest('Boolean conditional true', function() { - System.set('env', System.newModule({ 'js': { 'es5': true } })); - - System.config({ - paths: { - 'branch-boolean.js': 'tests/branch-boolean.js' - } - }); - - System['import']('branch-boolean.js#?env|js.es5').then(function(m) { - ok(m['default'] === true); - start(); - }, err); -}); - -asyncTest('Loading a System.registerdynamic module (not bundled)', function() { - System['import']('tests/registerdynamic-main.js').then(function(m) { - ok(typeof m.dependency === 'function'); - ok(m.dependency() === 'ok'); - start(); - }).then(null, err); -}); - -asyncTest('Importing a script with wrong integrity fails', function() { - System.config({ - meta: { - 'tests/csp/integrity.js': { - format: 'amd', - integrity: 'sha256-abc' - } - } - }); - System['import']('tests/csp/integrity.js').then(function(m) { - ok(m.integrity == 'integrity'); - start(); - }, function(e) { - ok(typeof e !== 'undefined'); - console.log('SRI not supported in this browser'); - start(); - }); -}); - -if (typeof process != 'undefined') { - asyncTest('Loading Node core modules', function() { - System['import']('@node/fs').then(function(m) { - ok(m.writeFile); - start(); - }); - }); - - - asyncTest('No global define leak in Node', function() { - ok(typeof define == 'undefined'); - start(); - }); -} - -asyncTest('Package-local alias esm', function() { - System.config({ - map: { - 'package-local-alias-esm': 'tests/package-local-alias' - }, - packages: { - 'package-local-alias-esm': { - main: 'index-esm.js', - format: 'esm', - meta: { - './local-esm': {alias: './local/index-esm.js'} - } - } - } - }); - System['import']('package-local-alias-esm').then(function(m) { - ok(m.q == 'q'); - ok(m.fromLocal == 'x'); - start(); - }); -}); - -asyncTest('Package-local alias cjs', function() { - System.config({ - map: { - 'package-local-alias-cjs': 'tests/package-local-alias' - }, - packages: { - 'package-local-alias-cjs': { - main: 'index-cjs.js', - format: 'cjs', - meta: { - './local-cjs': {alias: './local/index-cjs.js'} - } - } - } - }); - System['import']('package-local-alias-cjs').then(function(m) { - ok(m.q == 'q'); - ok(m.fromLocal == 'x'); - start(); - }); -}); - -asyncTest('Package-local alias esm default export', function() { - System.config({ - map: { - 'package-local-alias-default-esm': 'tests/package-local-alias' - }, - packages: { - 'package-local-alias-default-esm': { // can't reuse package names from previous test - main: 'index-default-esm.js', // because System.config() results persist across tests - format: 'esm', - meta: { - './local-default-esm': {alias: './local/index-default-esm.js'} - } - } - } - }); - System['import']('package-local-alias-default-esm').then(function(m) { - ok(m.q == 'q'); - ok(m.fromLocal == 'x'); - ok(m.fromLocalDirect == 'x'); - start(); - }); -}); - -asyncTest('Package-local alias cjs default export', function() { - System.config({ - map: { - 'package-local-alias-default-cjs': 'tests/package-local-alias' - }, - packages: { - 'package-local-alias-default-cjs': { - main: 'index-default-cjs.js', - format: 'cjs', - meta: { - './local-default-cjs': {alias: './local/index-default-cjs.js'} - } - } - } - }); - System['import']('package-local-alias-default-cjs').then(function(m) { - ok(m.q == 'q'); - ok(m.fromLocal == 'x'); - ok(m.fromLocalDirect == 'x'); - start(); - }); -}); - - -})(typeof window == 'undefined' ? global : window); diff --git a/thirdparty/systemjs/test/tests/#.js b/thirdparty/systemjs/test/tests/#.js deleted file mode 100644 index 0cf86a864..000000000 --- a/thirdparty/systemjs/test/tests/#.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 26c6a450c..000000000 --- a/thirdparty/systemjs/test/tests/advanced-plugin.js +++ /dev/null @@ -1,20 +0,0 @@ - -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 deleted file mode 100644 index 131dfecce..000000000 --- a/thirdparty/systemjs/test/tests/all-circular1.js +++ /dev/null @@ -1,9 +0,0 @@ -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 deleted file mode 100644 index c88eceb9c..000000000 --- a/thirdparty/systemjs/test/tests/all-circular2.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index fea5e3f22..000000000 --- a/thirdparty/systemjs/test/tests/all-circular3.js +++ /dev/null @@ -1,10 +0,0 @@ -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 deleted file mode 100644 index 692445730..000000000 --- a/thirdparty/systemjs/test/tests/all-circular4.js +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 2dea20d17..000000000 --- a/thirdparty/systemjs/test/tests/all-layers1.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index a4a72e128..000000000 --- a/thirdparty/systemjs/test/tests/all-layers2.js +++ /dev/null @@ -1,20 +0,0 @@ -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 deleted file mode 100644 index ac519f19a..000000000 --- a/thirdparty/systemjs/test/tests/all-layers3.js +++ /dev/null @@ -1,17 +0,0 @@ -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 deleted file mode 100644 index 4a2d7bf8a..000000000 --- a/thirdparty/systemjs/test/tests/all-layers4.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 8856e2db9..000000000 --- a/thirdparty/systemjs/test/tests/amd-bundle.js +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 2533e9bfd..000000000 --- a/thirdparty/systemjs/test/tests/amd-circular1.js +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index df9254d24..000000000 --- a/thirdparty/systemjs/test/tests/amd-circular2.js +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 1ac2c3e1a..000000000 --- a/thirdparty/systemjs/test/tests/amd-cjs-module.js +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index b5e886297..000000000 --- a/thirdparty/systemjs/test/tests/amd-contextual.js +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index c047cc49f..000000000 --- a/thirdparty/systemjs/test/tests/amd-dep-A.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 6f5b4c6b0..000000000 --- a/thirdparty/systemjs/test/tests/amd-dep-B.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 4ad8f7e5c..000000000 --- a/thirdparty/systemjs/test/tests/amd-dep.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 6b7315dc3..000000000 --- a/thirdparty/systemjs/test/tests/amd-dynamic-require.js +++ /dev/null @@ -1,19 +0,0 @@ -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 deleted file mode 100644 index 88692ae46..000000000 --- a/thirdparty/systemjs/test/tests/amd-dynamic.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 86b8777ff..000000000 --- a/thirdparty/systemjs/test/tests/amd-extra-deps.js +++ /dev/null @@ -1,7 +0,0 @@ -// 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 deleted file mode 100644 index 3bc01fe38..000000000 --- a/thirdparty/systemjs/test/tests/amd-format.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - 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 deleted file mode 100644 index 5fdcb3e58..000000000 --- a/thirdparty/systemjs/test/tests/amd-module-2.js +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 6c9128051..000000000 --- a/thirdparty/systemjs/test/tests/amd-module-3.js +++ /dev/null @@ -1,13 +0,0 @@ -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 deleted file mode 100644 index 0f3de0b7f..000000000 --- a/thirdparty/systemjs/test/tests/amd-module-bom.js +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index 3cb3d58cf..000000000 --- a/thirdparty/systemjs/test/tests/amd-module.js +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 1db1c8a16..000000000 --- a/thirdparty/systemjs/test/tests/amd-require.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 819ca44c1..000000000 --- a/thirdparty/systemjs/test/tests/amd-simplified-cjs-aliased-require1.js +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index be391226a..000000000 --- a/thirdparty/systemjs/test/tests/amd-simplified-cjs-aliased-require2.js +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 6d0a61315..000000000 --- a/thirdparty/systemjs/test/tests/anon-named.js +++ /dev/null @@ -1,10 +0,0 @@ -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 deleted file mode 100644 index f25bf5a81..000000000 --- a/thirdparty/systemjs/test/tests/async.js +++ /dev/null @@ -1,5 +0,0 @@ -// 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 deleted file mode 100644 index fc0891795..000000000 --- a/thirdparty/systemjs/test/tests/bootstrap@3.1.1/test.coffee +++ /dev/null @@ -1 +0,0 @@ -exports.p = 4; diff --git a/thirdparty/systemjs/test/tests/branch-boolean.js b/thirdparty/systemjs/test/tests/branch-boolean.js deleted file mode 100644 index bc5b6ccdb..000000000 --- a/thirdparty/systemjs/test/tests/branch-boolean.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index ea184442e..000000000 --- a/thirdparty/systemjs/test/tests/branch-ie.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index d69e7ca69..000000000 --- a/thirdparty/systemjs/test/tests/bundle.js +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index f2946cf87..000000000 --- a/thirdparty/systemjs/test/tests/cjs-circular1.js +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index b6c8d87e4..000000000 --- a/thirdparty/systemjs/test/tests/cjs-circular2.js +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index a3174cc3c..000000000 --- a/thirdparty/systemjs/test/tests/cjs-exports-bom.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 326bed6cf..000000000 --- a/thirdparty/systemjs/test/tests/cjs-exports-dep.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index fdd99ca92..000000000 --- a/thirdparty/systemjs/test/tests/cjs-exports.js +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 7ac68dc97..000000000 --- a/thirdparty/systemjs/test/tests/cjs-format.js +++ /dev/null @@ -1,4 +0,0 @@ -"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 deleted file mode 100644 index d71e2ed57..000000000 --- a/thirdparty/systemjs/test/tests/cjs-globals.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 11dc2a5a4..000000000 --- a/thirdparty/systemjs/test/tests/cjs-loading-plugin.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 2176395e8..000000000 --- a/thirdparty/systemjs/test/tests/cjs-module-bom.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 6609eeafc..000000000 --- a/thirdparty/systemjs/test/tests/cjs-named-export.js +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 7f750c112..000000000 --- a/thirdparty/systemjs/test/tests/cjs-process.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 8461373e9..000000000 --- a/thirdparty/systemjs/test/tests/cjs-resolve.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 79a4bb5db..000000000 --- a/thirdparty/systemjs/test/tests/cjs-this.js +++ /dev/null @@ -1,2 +0,0 @@ -"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 deleted file mode 100644 index 3543bf0bf..000000000 --- a/thirdparty/systemjs/test/tests/common-js-dep.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index c7b6c12ee..000000000 --- a/thirdparty/systemjs/test/tests/common-js-module.js +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index b23a181b8..000000000 --- a/thirdparty/systemjs/test/tests/commonjs-d.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 3b340b2e0..000000000 --- a/thirdparty/systemjs/test/tests/commonjs-d2.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 44194a0db..000000000 --- a/thirdparty/systemjs/test/tests/commonjs-globals.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index af80d8058..000000000 --- a/thirdparty/systemjs/test/tests/commonjs-requires.js +++ /dev/null @@ -1,40 +0,0 @@ -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 deleted file mode 100644 index bf8b8c27e..000000000 --- a/thirdparty/systemjs/test/tests/commonjs-variation.js +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index f7a25047b..000000000 --- a/thirdparty/systemjs/test/tests/commonjs-variation2.js +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index dd46ac6f7..000000000 --- a/thirdparty/systemjs/test/tests/compiled.coffee +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index e7068fae3..000000000 --- a/thirdparty/systemjs/test/tests/compiler-plugin.js +++ /dev/null @@ -1,4 +0,0 @@ -"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 deleted file mode 100644 index a79cb03b2..000000000 --- a/thirdparty/systemjs/test/tests/compiler-test.coffee +++ /dev/null @@ -1 +0,0 @@ -exports.output = "plugin output"; diff --git a/thirdparty/systemjs/test/tests/connected-tree/a.js b/thirdparty/systemjs/test/tests/connected-tree/a.js deleted file mode 100644 index 2ffbcaa58..000000000 --- a/thirdparty/systemjs/test/tests/connected-tree/a.js +++ /dev/null @@ -1,9 +0,0 @@ -// 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 deleted file mode 100644 index 0e658df66..000000000 --- a/thirdparty/systemjs/test/tests/connected-tree/b.js +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index e885e1138..000000000 --- a/thirdparty/systemjs/test/tests/connected-tree/c.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index c2898baa8..000000000 --- a/thirdparty/systemjs/test/tests/contextual-map-dep.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index c3192b867..000000000 --- a/thirdparty/systemjs/test/tests/contextual-test/contextual-map.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('maptest'); diff --git a/thirdparty/systemjs/test/tests/cs-loader.js b/thirdparty/systemjs/test/tests/cs-loader.js deleted file mode 100644 index cc24b3fe9..000000000 --- a/thirdparty/systemjs/test/tests/cs-loader.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 168695856..000000000 --- a/thirdparty/systemjs/test/tests/cs/dep.js +++ /dev/null @@ -1 +0,0 @@ -# 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 deleted file mode 100644 index e4960c7c9..000000000 --- a/thirdparty/systemjs/test/tests/cs/main.js +++ /dev/null @@ -1 +0,0 @@ -# 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 deleted file mode 100644 index 0cd357c7a..000000000 --- a/thirdparty/systemjs/test/tests/csp/integrity.js +++ /dev/null @@ -1,5 +0,0 @@ -define(function () { - return { - integrity: 'integrity' - } -}); diff --git a/thirdparty/systemjs/test/tests/csp/nonce.js b/thirdparty/systemjs/test/tests/csp/nonce.js deleted file mode 100644 index 35dee5ee5..000000000 --- a/thirdparty/systemjs/test/tests/csp/nonce.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - nonce: 'abc' -}; diff --git a/thirdparty/systemjs/test/tests/csp/nonce2.js b/thirdparty/systemjs/test/tests/csp/nonce2.js deleted file mode 100644 index 1c6556170..000000000 --- a/thirdparty/systemjs/test/tests/csp/nonce2.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - nonce: 'ab' -}; diff --git a/thirdparty/systemjs/test/tests/css.css b/thirdparty/systemjs/test/tests/css.css deleted file mode 100644 index 287755162..000000000 --- a/thirdparty/systemjs/test/tests/css.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - background-color: #eee; -} diff --git a/thirdparty/systemjs/test/tests/css.js b/thirdparty/systemjs/test/tests/css.js deleted file mode 100644 index c0a3875e2..000000000 --- a/thirdparty/systemjs/test/tests/css.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index f053ebf79..000000000 --- a/thirdparty/systemjs/test/tests/deep/deep-dep.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = {}; diff --git a/thirdparty/systemjs/test/tests/deep/deep.js b/thirdparty/systemjs/test/tests/deep/deep.js deleted file mode 100644 index cb3befa5f..000000000 --- a/thirdparty/systemjs/test/tests/deep/deep.js +++ /dev/null @@ -1 +0,0 @@ -require('./deep-dep'); diff --git a/thirdparty/systemjs/test/tests/default1-dep.js b/thirdparty/systemjs/test/tests/default1-dep.js deleted file mode 100644 index 8771ac87f..000000000 --- a/thirdparty/systemjs/test/tests/default1-dep.js +++ /dev/null @@ -1 +0,0 @@ -export var q = 4; diff --git a/thirdparty/systemjs/test/tests/default1.js b/thirdparty/systemjs/test/tests/default1.js deleted file mode 100644 index 1ff5f0108..000000000 --- a/thirdparty/systemjs/test/tests/default1.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index db40d327f..000000000 --- a/thirdparty/systemjs/test/tests/default2.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index fd3505e99..000000000 --- a/thirdparty/systemjs/test/tests/default3.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 20e4f186b..000000000 --- a/thirdparty/systemjs/test/tests/dep.js +++ /dev/null @@ -1 +0,0 @@ -define({}); diff --git a/thirdparty/systemjs/test/tests/duplicateDeps/m1.js b/thirdparty/systemjs/test/tests/duplicateDeps/m1.js deleted file mode 100644 index 77b7efb3b..000000000 --- a/thirdparty/systemjs/test/tests/duplicateDeps/m1.js +++ /dev/null @@ -1,23 +0,0 @@ -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 deleted file mode 100644 index 03f71ea8e..000000000 --- a/thirdparty/systemjs/test/tests/duplicateDeps/m2.js +++ /dev/null @@ -1,13 +0,0 @@ -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 deleted file mode 100644 index 65843b0f4..000000000 --- a/thirdparty/systemjs/test/tests/eaa-amd.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 1a2fd7edc..000000000 --- a/thirdparty/systemjs/test/tests/eaa-es6.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index c6fa496fa..000000000 --- a/thirdparty/systemjs/test/tests/empty-es6.js +++ /dev/null @@ -1,3 +0,0 @@ -(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 deleted file mode 100644 index a6d27d510..000000000 --- a/thirdparty/systemjs/test/tests/ep/some-repo/main.js +++ /dev/null @@ -1 +0,0 @@ -export var main = 'here'; diff --git a/thirdparty/systemjs/test/tests/error-loader.js b/thirdparty/systemjs/test/tests/error-loader.js deleted file mode 100644 index b6b07cd0c..000000000 --- a/thirdparty/systemjs/test/tests/error-loader.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 69b15e06a..000000000 --- a/thirdparty/systemjs/test/tests/error-loader2.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index ca248d227..000000000 --- a/thirdparty/systemjs/test/tests/error.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 0ed2e3149..000000000 --- a/thirdparty/systemjs/test/tests/es-module-flag.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index a7cc4cd32..000000000 --- a/thirdparty/systemjs/test/tests/es-named-import-cjs-cjs.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index f484570c9..000000000 --- a/thirdparty/systemjs/test/tests/es-named-import-cjs.js +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 4c0a87465..000000000 --- a/thirdparty/systemjs/test/tests/es6-and-amd.js +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 2cbd289ad..000000000 --- a/thirdparty/systemjs/test/tests/es6-circular1.js +++ /dev/null @@ -1,10 +0,0 @@ -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 deleted file mode 100644 index 2a6f5c391..000000000 --- a/thirdparty/systemjs/test/tests/es6-circular2.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 378335ccf..000000000 --- a/thirdparty/systemjs/test/tests/es6-cjs-named-export.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 3fc252f50..000000000 --- a/thirdparty/systemjs/test/tests/es6-detection1.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 47b28ed47..000000000 --- a/thirdparty/systemjs/test/tests/es6-format.js +++ /dev/null @@ -1,6 +0,0 @@ -"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 deleted file mode 100644 index 9cf2ff2c0..000000000 --- a/thirdparty/systemjs/test/tests/es6-import-star-amd.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 78ecb1bf4..000000000 --- a/thirdparty/systemjs/test/tests/es6-loading-amd-dep.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 565fdd416..000000000 --- a/thirdparty/systemjs/test/tests/es6-loading-amd.js +++ /dev/null @@ -1,9 +0,0 @@ -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 deleted file mode 100644 index e37de9fce..000000000 --- a/thirdparty/systemjs/test/tests/es6-plugin.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index f700e4920..000000000 --- a/thirdparty/systemjs/test/tests/esm-dep.js +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 55c925513..000000000 --- a/thirdparty/systemjs/test/tests/esm-with-deps.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 31cd2ebac..000000000 --- a/thirdparty/systemjs/test/tests/export-star.js +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 343cf430b..000000000 --- a/thirdparty/systemjs/test/tests/foo.js +++ /dev/null @@ -1,10 +0,0 @@ -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 deleted file mode 100644 index 3f6511023..000000000 --- a/thirdparty/systemjs/test/tests/global-dep.js +++ /dev/null @@ -1,5 +0,0 @@ -(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 deleted file mode 100644 index b480da8ae..000000000 --- a/thirdparty/systemjs/test/tests/global-encapsulation.js +++ /dev/null @@ -1,3 +0,0 @@ -(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 deleted file mode 100644 index ddfb91a37..000000000 --- a/thirdparty/systemjs/test/tests/global-exports-array.js +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index aee7ce02b..000000000 --- a/thirdparty/systemjs/test/tests/global-inaccessible-props.js +++ /dev/null @@ -1,8 +0,0 @@ - -(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 deleted file mode 100644 index 6873a63b9..000000000 --- a/thirdparty/systemjs/test/tests/global-inline-dep.js +++ /dev/null @@ -1,7 +0,0 @@ -'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 deleted file mode 100644 index 0fc07aea5..000000000 --- a/thirdparty/systemjs/test/tests/global-inline-export.js +++ /dev/null @@ -1,9 +0,0 @@ -"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 deleted file mode 100644 index 2b58ae2b1..000000000 --- a/thirdparty/systemjs/test/tests/global-multi-diff.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index e7f0b5cfc..000000000 --- a/thirdparty/systemjs/test/tests/global-multi.js +++ /dev/null @@ -1,6 +0,0 @@ -(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 deleted file mode 100644 index 9754587be..000000000 --- a/thirdparty/systemjs/test/tests/global-shim-amd.js +++ /dev/null @@ -1,6 +0,0 @@ -(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 deleted file mode 100644 index a7ec1756b..000000000 --- a/thirdparty/systemjs/test/tests/global-shim-config-dep.js +++ /dev/null @@ -1 +0,0 @@ -dep = 'shimmed' diff --git a/thirdparty/systemjs/test/tests/global-shim-config-exports.js b/thirdparty/systemjs/test/tests/global-shim-config-exports.js deleted file mode 100644 index 39553bca8..000000000 --- a/thirdparty/systemjs/test/tests/global-shim-config-exports.js +++ /dev/null @@ -1 +0,0 @@ -var p = 'export' diff --git a/thirdparty/systemjs/test/tests/global-shim-config.js b/thirdparty/systemjs/test/tests/global-shim-config.js deleted file mode 100644 index 62139f6e3..000000000 --- a/thirdparty/systemjs/test/tests/global-shim-config.js +++ /dev/null @@ -1,3 +0,0 @@ -(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 deleted file mode 100644 index 1c55c7506..000000000 --- a/thirdparty/systemjs/test/tests/global-single-compiled.js +++ /dev/null @@ -1,9 +0,0 @@ -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 deleted file mode 100644 index 9f6197b5f..000000000 --- a/thirdparty/systemjs/test/tests/global-single.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 656ea6a19..000000000 --- a/thirdparty/systemjs/test/tests/global-with-export.js +++ /dev/null @@ -1,5 +0,0 @@ -(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 deleted file mode 100644 index ae948f58c..000000000 --- a/thirdparty/systemjs/test/tests/global.js +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 61e4eea78..000000000 --- a/thirdparty/systemjs/test/tests/group-test.js +++ /dev/null @@ -1,34 +0,0 @@ -"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 deleted file mode 100644 index 6213adcb4..000000000 --- a/thirdparty/systemjs/test/tests/hbs.hbs +++ /dev/null @@ -1 +0,0 @@ -<h1>{{title}}</h1> diff --git a/thirdparty/systemjs/test/tests/inline-depends-dep.js b/thirdparty/systemjs/test/tests/inline-depends-dep.js deleted file mode 100644 index 9310d31aa..000000000 --- a/thirdparty/systemjs/test/tests/inline-depends-dep.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 61b318777..000000000 --- a/thirdparty/systemjs/test/tests/inline-depends.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index e53799d35..000000000 --- a/thirdparty/systemjs/test/tests/jquery-named.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index e0ec49a53..000000000 --- a/thirdparty/systemjs/test/tests/jquery.js +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 89fd23f8e..000000000 --- a/thirdparty/systemjs/test/tests/legacy-plugin.js +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 656184c5f..000000000 --- a/thirdparty/systemjs/test/tests/loader-scoping.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 9bf9a306d..000000000 --- a/thirdparty/systemjs/test/tests/main-bundle.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 83e0e77d4..000000000 --- a/thirdparty/systemjs/test/tests/main-dep.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 7e6f820a0..000000000 --- a/thirdparty/systemjs/test/tests/main.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 8085c9632..000000000 --- a/thirdparty/systemjs/test/tests/map-test-dep.js +++ /dev/null @@ -1 +0,0 @@ -exports.dep = 'maptest'; diff --git a/thirdparty/systemjs/test/tests/map-test.js b/thirdparty/systemjs/test/tests/map-test.js deleted file mode 100644 index e87087e78..000000000 --- a/thirdparty/systemjs/test/tests/map-test.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 64dcc8a01..000000000 --- a/thirdparty/systemjs/test/tests/map-test/sub.js +++ /dev/null @@ -1 +0,0 @@ -exports.maptest = 'maptestsub'; diff --git a/thirdparty/systemjs/test/tests/map-version.js b/thirdparty/systemjs/test/tests/map-version.js deleted file mode 100644 index 56ad56a96..000000000 --- a/thirdparty/systemjs/test/tests/map-version.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 6bf3b4520..000000000 --- a/thirdparty/systemjs/test/tests/meta-deps.js +++ /dev/null @@ -1,21 +0,0 @@ -(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 deleted file mode 100644 index b820ec262..000000000 --- a/thirdparty/systemjs/test/tests/meta-override.js +++ /dev/null @@ -1,2 +0,0 @@ -"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 deleted file mode 100644 index 58a25c355..000000000 --- a/thirdparty/systemjs/test/tests/mixed-bundle.js +++ /dev/null @@ -1,68 +0,0 @@ -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 deleted file mode 100644 index 5e9b95304..000000000 --- a/thirdparty/systemjs/test/tests/modA.js +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 00f89c525..000000000 --- a/thirdparty/systemjs/test/tests/modC.js +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 4076c2b6e..000000000 --- a/thirdparty/systemjs/test/tests/module-name.js +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 45cd96970..000000000 --- a/thirdparty/systemjs/test/tests/module.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 5e4b93f98..000000000 --- a/thirdparty/systemjs/test/tests/multiple-anonymous.js +++ /dev/null @@ -1,14 +0,0 @@ -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 deleted file mode 100644 index 78b94fe65..000000000 --- a/thirdparty/systemjs/test/tests/mypackage/index.js +++ /dev/null @@ -1 +0,0 @@ -this.mapDep = 'bar'; diff --git a/thirdparty/systemjs/test/tests/mypackage/lib/bar.js b/thirdparty/systemjs/test/tests/mypackage/lib/bar.js deleted file mode 100644 index e198b88a4..000000000 --- a/thirdparty/systemjs/test/tests/mypackage/lib/bar.js +++ /dev/null @@ -1,2 +0,0 @@ -bar = 'bar'; -exports = {}; diff --git a/thirdparty/systemjs/test/tests/mypackage/src/foo.js b/thirdparty/systemjs/test/tests/mypackage/src/foo.js deleted file mode 100644 index 31e546b5a..000000000 --- a/thirdparty/systemjs/test/tests/mypackage/src/foo.js +++ /dev/null @@ -1,3 +0,0 @@ -file = 'foo' -if (typeof define != 'undefined') - define({}); diff --git a/thirdparty/systemjs/test/tests/nameddefine.js b/thirdparty/systemjs/test/tests/nameddefine.js deleted file mode 100644 index f0a302971..000000000 --- a/thirdparty/systemjs/test/tests/nameddefine.js +++ /dev/null @@ -1,14 +0,0 @@ -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 deleted file mode 100644 index 0194738d0..000000000 --- a/thirdparty/systemjs/test/tests/no-default-ext/file.ext +++ /dev/null @@ -1 +0,0 @@ -exports.ext = 'ext'; diff --git a/thirdparty/systemjs/test/tests/normalize-hook-test.js b/thirdparty/systemjs/test/tests/normalize-hook-test.js deleted file mode 100644 index f4d3fb627..000000000 --- a/thirdparty/systemjs/test/tests/normalize-hook-test.js +++ /dev/null @@ -1 +0,0 @@ -"hello world";
\ No newline at end of file diff --git a/thirdparty/systemjs/test/tests/out.js b/thirdparty/systemjs/test/tests/out.js deleted file mode 100644 index 9eb31e4c1..000000000 --- a/thirdparty/systemjs/test/tests/out.js +++ /dev/null @@ -1,19 +0,0 @@ -"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 deleted file mode 100644 index 0cd8dedcc..000000000 --- a/thirdparty/systemjs/test/tests/package-local-alias/index-cjs.js +++ /dev/null @@ -1,6 +0,0 @@ - -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 deleted file mode 100644 index d0a59da14..000000000 --- a/thirdparty/systemjs/test/tests/package-local-alias/index-default-cjs.js +++ /dev/null @@ -1,10 +0,0 @@ - -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 deleted file mode 100644 index aead1e036..000000000 --- a/thirdparty/systemjs/test/tests/package-local-alias/index-default-esm.js +++ /dev/null @@ -1,10 +0,0 @@ - -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 deleted file mode 100644 index 809c99695..000000000 --- a/thirdparty/systemjs/test/tests/package-local-alias/index-esm.js +++ /dev/null @@ -1,5 +0,0 @@ - -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 deleted file mode 100644 index af02af190..000000000 --- a/thirdparty/systemjs/test/tests/package-local-alias/local/index-cjs.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index ee03c3617..000000000 --- a/thirdparty/systemjs/test/tests/package-local-alias/local/index-default-cjs.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index d35f42cc0..000000000 --- a/thirdparty/systemjs/test/tests/package-local-alias/local/index-default-esm.js +++ /dev/null @@ -1,2 +0,0 @@ - -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 deleted file mode 100644 index 5039a381e..000000000 --- a/thirdparty/systemjs/test/tests/package-local-alias/local/index-esm.js +++ /dev/null @@ -1 +0,0 @@ -export var x = 'x'; diff --git a/thirdparty/systemjs/test/tests/path/deep.js b/thirdparty/systemjs/test/tests/path/deep.js deleted file mode 100644 index e254c491a..000000000 --- a/thirdparty/systemjs/test/tests/path/deep.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 'path'; diff --git a/thirdparty/systemjs/test/tests/plugin-dep.js b/thirdparty/systemjs/test/tests/plugin-dep.js deleted file mode 100644 index 4485e45e4..000000000 --- a/thirdparty/systemjs/test/tests/plugin-dep.js +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 741d6e0f6..000000000 --- a/thirdparty/systemjs/test/tests/plugin@1.2.3/plugin.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 765dfe816..000000000 --- a/thirdparty/systemjs/test/tests/reflection.js +++ /dev/null @@ -1 +0,0 @@ -export var myname = __moduleName; diff --git a/thirdparty/systemjs/test/tests/register-circular1.js b/thirdparty/systemjs/test/tests/register-circular1.js deleted file mode 100644 index 178980f73..000000000 --- a/thirdparty/systemjs/test/tests/register-circular1.js +++ /dev/null @@ -1,24 +0,0 @@ -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 deleted file mode 100644 index 5b661b81d..000000000 --- a/thirdparty/systemjs/test/tests/register-circular2.js +++ /dev/null @@ -1,14 +0,0 @@ -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 deleted file mode 100644 index 0ab2b012a..000000000 --- a/thirdparty/systemjs/test/tests/register-default-extension.js +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 3715b11e6..000000000 --- a/thirdparty/systemjs/test/tests/register-regex-2.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @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 deleted file mode 100644 index 847e818fd..000000000 --- a/thirdparty/systemjs/test/tests/register-regex.js +++ /dev/null @@ -1,18 +0,0 @@ -//// /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 deleted file mode 100644 index dbd630a1d..000000000 --- a/thirdparty/systemjs/test/tests/registerdynamic-main.js +++ /dev/null @@ -1,11 +0,0 @@ -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 deleted file mode 100644 index 3406df504..000000000 --- a/thirdparty/systemjs/test/tests/registerdynamic-notbundled.js +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 99b5202a8..000000000 --- a/thirdparty/systemjs/test/tests/reldynamic.js +++ /dev/null @@ -1,5 +0,0 @@ - - -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 deleted file mode 100644 index 96da4b8e9..000000000 --- a/thirdparty/systemjs/test/tests/reldynamicdep.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 76aef0ec9..000000000 --- a/thirdparty/systemjs/test/tests/shared-dep-bundles/a.js +++ /dev/null @@ -1,33 +0,0 @@ -"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 deleted file mode 100644 index eec0f0bf4..000000000 --- a/thirdparty/systemjs/test/tests/shared-dep-bundles/b.js +++ /dev/null @@ -1,33 +0,0 @@ -"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 deleted file mode 100644 index 409cf392a..000000000 --- a/thirdparty/systemjs/test/tests/shim-map-test-dep.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 3dc9d9e8a..000000000 --- a/thirdparty/systemjs/test/tests/shim-package/shim-map-test.js +++ /dev/null @@ -1 +0,0 @@ -(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 deleted file mode 100644 index ee68c7e15..000000000 --- a/thirdparty/systemjs/test/tests/some-json.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "some": "json" -} diff --git a/thirdparty/systemjs/test/tests/some-text.txt b/thirdparty/systemjs/test/tests/some-text.txt deleted file mode 100644 index 9ce617009..000000000 --- a/thirdparty/systemjs/test/tests/some-text.txt +++ /dev/null @@ -1 +0,0 @@ -this is some text diff --git a/thirdparty/systemjs/test/tests/star-dep.js b/thirdparty/systemjs/test/tests/star-dep.js deleted file mode 100644 index 0b7981c28..000000000 --- a/thirdparty/systemjs/test/tests/star-dep.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index ffc2d7fe5..000000000 --- a/thirdparty/systemjs/test/tests/subcontextual-map/submodule.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index ad8c9d6d6..000000000 --- a/thirdparty/systemjs/test/tests/subcontextual-mapdep.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index e56b63dfe..000000000 --- a/thirdparty/systemjs/test/tests/test.css +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index d88fb1bde..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/depcache-test.js +++ /dev/null @@ -1 +0,0 @@ -(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 deleted file mode 100644 index cef6cd572..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/dir/index.js +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index c6a24bda6..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/dir/self-load.js +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 07bd1b14d..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/dir2/index.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "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 deleted file mode 100644 index e36fe2f1b..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/env-module-browser.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 3b25aeee1..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/env-module.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 2fc521784..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/index.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index d93d44f21..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/interpolate.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 278833a81..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/json.js +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index 0acdfb14b..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/json.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "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 deleted file mode 100644 index af567b6bf..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/polate.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 1c5617d42..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/self-load.js +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index c543a0725..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/self.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index b2092752c..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/system.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "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 deleted file mode 100644 index 4edba8a31..000000000 --- a/thirdparty/systemjs/test/tests/testpkg/test.ts +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 1aae9f17b..000000000 --- a/thirdparty/systemjs/test/tests/testpkg2.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "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 deleted file mode 100644 index 93c2cdd62..000000000 --- a/thirdparty/systemjs/test/tests/testpkg2/asdf.asdf.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 1cd9b2985..000000000 --- a/thirdparty/systemjs/test/tests/typescript.ts +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 9a690b9c5..000000000 --- a/thirdparty/systemjs/test/tests/umd-dep.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 7faad2ba9..000000000 --- a/thirdparty/systemjs/test/tests/umd.js +++ /dev/null @@ -1,10 +0,0 @@ -(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 deleted file mode 100644 index c5f522445..000000000 --- a/thirdparty/systemjs/test/tests/versioned@2.0.3.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 4d3891f0c..000000000 --- a/thirdparty/systemjs/test/tests/wildcard-test/2.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 05cded75a..000000000 --- a/thirdparty/systemjs/test/tests/wildcard-test/2/sub.js +++ /dev/null @@ -1 +0,0 @@ -export var sub = {}; diff --git a/thirdparty/systemjs/test/tests/wildcard-test/first.js b/thirdparty/systemjs/test/tests/wildcard-test/first.js deleted file mode 100644 index f2ddf5c35..000000000 --- a/thirdparty/systemjs/test/tests/wildcard-test/first.js +++ /dev/null @@ -1 +0,0 @@ -export var p = {}; diff --git a/thirdparty/systemjs/test/tests/with-global-deps.js b/thirdparty/systemjs/test/tests/with-global-deps.js deleted file mode 100644 index 4c5addac0..000000000 --- a/thirdparty/systemjs/test/tests/with-global-deps.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 4dca494cb..000000000 --- a/thirdparty/systemjs/test/tests/with-runtime-babel.js +++ /dev/null @@ -1,16 +0,0 @@ -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 deleted file mode 100644 index d86a1dea7..000000000 --- a/thirdparty/systemjs/test/tests/with-runtime-traceur.js +++ /dev/null @@ -1,14 +0,0 @@ -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 deleted file mode 100644 index 74c741309..000000000 --- a/thirdparty/systemjs/test/tests/worker-babel.js +++ /dev/null @@ -1,14 +0,0 @@ -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 deleted file mode 100644 index 30902cf40..000000000 --- a/thirdparty/systemjs/test/tests/worker-traceur.js +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index 7bbf0c231..000000000 --- a/thirdparty/systemjs/test/tests/worker-typescript.js +++ /dev/null @@ -1,16 +0,0 @@ -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 deleted file mode 100644 index 9a8eb0328..000000000 --- a/thirdparty/systemjs/test/tests/wrapper.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 0050f500b..000000000 --- a/thirdparty/systemjs/test/tests/zero@0.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = '0';
\ No newline at end of file |