mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Convert the files in the /test/unit
folder to ES6 modules
This commit is contained in:
parent
06c93d8fbd
commit
35730148a7
23 changed files with 139 additions and 521 deletions
|
@ -12,28 +12,14 @@
|
|||
* 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/unicode_spec', ['exports',
|
||||
'pdfjs/core/glyphlist', 'pdfjs/core/unicode'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('../../src/core/glyphlist.js'),
|
||||
require('../../src/core/unicode.js'));
|
||||
} else {
|
||||
factory((root.pdfjsTestUnitUnicodeSpec = {}),
|
||||
root.pdfjsCoreGlyphList, root.pdfjsCoreUnicode);
|
||||
}
|
||||
}(this, function (exports, coreGlyphList, coreUnicode) {
|
||||
|
||||
var getGlyphsUnicode = coreGlyphList.getGlyphsUnicode;
|
||||
var getDingbatsGlyphsUnicode = coreGlyphList.getDingbatsGlyphsUnicode;
|
||||
var mapSpecialUnicodeValues = coreUnicode.mapSpecialUnicodeValues;
|
||||
var getUnicodeForGlyph = coreUnicode.getUnicodeForGlyph;
|
||||
var getUnicodeRangeFor = coreUnicode.getUnicodeRangeFor;
|
||||
var getNormalizedUnicodes = coreUnicode.getNormalizedUnicodes;
|
||||
var reverseIfRtl = coreUnicode.reverseIfRtl;
|
||||
import {
|
||||
getDingbatsGlyphsUnicode, getGlyphsUnicode
|
||||
} from '../../src/core/glyphlist';
|
||||
import {
|
||||
getNormalizedUnicodes, getUnicodeForGlyph, getUnicodeRangeFor,
|
||||
mapSpecialUnicodeValues, reverseIfRtl
|
||||
} from '../../src/core/unicode';
|
||||
|
||||
describe('unicode', function () {
|
||||
describe('mapSpecialUnicodeValues', function () {
|
||||
|
@ -159,4 +145,3 @@ describe('unicode', function () {
|
|||
});
|
||||
});
|
||||
});
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue