Rename annotation_layer_spec.js
to annotation_spec.js
since the unit-tests only cover src/core/annotation.js
functionality
This commit is contained in:
parent
1af35a6d88
commit
7c3a63bae0
@ -16,7 +16,7 @@
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs-test/unit/annotation_layer_spec', ['exports',
|
||||
define('pdfjs-test/unit/annotation_spec', ['exports',
|
||||
'pdfjs/core/primitives', 'pdfjs/core/annotation', 'pdfjs/core/stream',
|
||||
'pdfjs/core/parser', 'pdfjs/shared/util', 'pdfjs/display/global'],
|
||||
factory);
|
||||
@ -27,7 +27,7 @@
|
||||
require('../../src/shared/util.js'),
|
||||
require('../../src/display/global.js'));
|
||||
} else {
|
||||
factory((root.pdfjsTestUnitAnnotationLayerSpec = {}),
|
||||
factory((root.pdfjsTestUnitAnnotationSpec = {}),
|
||||
root.pdfjsCorePrimitives, root.pdfjsCoreAnnotation, root.pdfjsCoreStream,
|
||||
root.pdfjsCoreParser, root.pdfjsSharedUtil, root.pdfjsDisplayGlobal);
|
||||
}
|
||||
@ -52,7 +52,7 @@ var AnnotationFieldFlag = sharedUtil.AnnotationFieldFlag;
|
||||
var stringToBytes = sharedUtil.stringToBytes;
|
||||
var stringToUTF8String = sharedUtil.stringToUTF8String;
|
||||
|
||||
describe('Annotation layer', function() {
|
||||
describe('annotation', function() {
|
||||
function XRefMock(array) {
|
||||
this.map = Object.create(null);
|
||||
for (var elem in array) {
|
@ -45,7 +45,7 @@ var pdfjsLibs;
|
||||
function initializePDFJS(callback) {
|
||||
require.config({paths: {'pdfjs': '../../src', 'pdfjs-web': '../../web',
|
||||
'pdfjs-test': '..'}});
|
||||
require(['pdfjs/display/global', 'pdfjs-test/unit/annotation_layer_spec',
|
||||
require(['pdfjs/display/global', 'pdfjs-test/unit/annotation_spec',
|
||||
'pdfjs-test/unit/api_spec', 'pdfjs-test/unit/bidi_spec',
|
||||
'pdfjs-test/unit/cff_parser_spec', 'pdfjs-test/unit/cmap_spec',
|
||||
'pdfjs-test/unit/crypto_spec', 'pdfjs-test/unit/document_spec',
|
||||
@ -57,7 +57,7 @@ function initializePDFJS(callback) {
|
||||
'pdfjs-test/unit/type1_parser_spec',
|
||||
'pdfjs-test/unit/ui_utils_spec', 'pdfjs-test/unit/unicode_spec',
|
||||
'pdfjs-test/unit/util_spec'],
|
||||
function (displayGlobal, testUnitAnnotationLayerSpec, testUnitApiSpec,
|
||||
function (displayGlobal, testUnitAnnotationSpec, testUnitApiSpec,
|
||||
testUnitBidiSpec, testUnitCFFParserSpec, testUnitCMapSpec,
|
||||
testUnitCryptoSpec, testUnitDocumentSpec, testUnitDOMUtilsSpec,
|
||||
testUnitEvaluatorSpec, testUnitFontsSpec, testUnitFunctionSpec,
|
||||
|
Loading…
x
Reference in New Issue
Block a user