diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-04-20 03:09:25 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-04-24 16:14:29 +0200 |
commit | 82f2b76e25a4a67e01ec67e5ebe39d14ad771ea8 (patch) | |
tree | 965f6eb89b84d65a62b49008fd972c004832ccd1 /thirdparty/systemjs/test/test-csp-inline.html | |
parent | e6e0cbc387c2a77b48e4065c229daa65bf1aa0fa (diff) |
Reorganize module loading.
We now use webpack instead of SystemJS, effectively bundling modules
into one file (plus commons chunks) for every entry point. This results
in a much smaller extension size (almost half). Furthermore we use
yarn/npm even for extension run-time dependencies. This relieves us
from manually vendoring and building dependencies. It's also easier to
understand for new developers familiar with node.
Diffstat (limited to 'thirdparty/systemjs/test/test-csp-inline.html')
-rw-r--r-- | thirdparty/systemjs/test/test-csp-inline.html | 61 |
1 files changed, 0 insertions, 61 deletions
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> |