1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Convert the files in the /test/unit folder to ES6 modules

This commit is contained in:
Tim van der Meij 2017-04-16 22:30:27 +02:00
parent 06c93d8fbd
commit 35730148a7
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
23 changed files with 139 additions and 521 deletions

View file

@ -12,20 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define('pdfjs-test/unit/network_spec', ['exports', 'pdfjs/core/network'],
factory);
} else if (typeof exports !== 'undefined') {
factory(exports, require('../../src/core/network.js'));
} else {
factory((root.pdfjsTestUnitNetworkSpec = {}), root.pdfjsCoreNetwork);
}
}(this, function (exports, coreNetwork) {
var PDFNetworkStream = coreNetwork.PDFNetworkStream;
import { PDFNetworkStream } from '../../src/core/network';
describe('network', function() {
var pdf1 = new URL('../pdfs/tracemonkey.pdf', window.location).href;
@ -189,4 +177,3 @@ describe('network', function() {
});
});
});
}));