Browse Source

Rename `annotation_layer_spec.js` to `annotation_spec.js` since the unit-tests only cover `src/core/annotation.js` functionality

Jonas Jenwald 8 years ago
parent
commit
7c3a63bae0
  1. 6
      test/unit/annotation_spec.js
  2. 4
      test/unit/jasmine-boot.js

6
test/unit/annotation_layer_spec.js → test/unit/annotation_spec.js

@ -16,7 +16,7 @@
(function (root, factory) { (function (root, factory) {
if (typeof define === 'function' && define.amd) { 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/primitives', 'pdfjs/core/annotation', 'pdfjs/core/stream',
'pdfjs/core/parser', 'pdfjs/shared/util', 'pdfjs/display/global'], 'pdfjs/core/parser', 'pdfjs/shared/util', 'pdfjs/display/global'],
factory); factory);
@ -27,7 +27,7 @@
require('../../src/shared/util.js'), require('../../src/shared/util.js'),
require('../../src/display/global.js')); require('../../src/display/global.js'));
} else { } else {
factory((root.pdfjsTestUnitAnnotationLayerSpec = {}), factory((root.pdfjsTestUnitAnnotationSpec = {}),
root.pdfjsCorePrimitives, root.pdfjsCoreAnnotation, root.pdfjsCoreStream, root.pdfjsCorePrimitives, root.pdfjsCoreAnnotation, root.pdfjsCoreStream,
root.pdfjsCoreParser, root.pdfjsSharedUtil, root.pdfjsDisplayGlobal); root.pdfjsCoreParser, root.pdfjsSharedUtil, root.pdfjsDisplayGlobal);
} }
@ -52,7 +52,7 @@ var AnnotationFieldFlag = sharedUtil.AnnotationFieldFlag;
var stringToBytes = sharedUtil.stringToBytes; var stringToBytes = sharedUtil.stringToBytes;
var stringToUTF8String = sharedUtil.stringToUTF8String; var stringToUTF8String = sharedUtil.stringToUTF8String;
describe('Annotation layer', function() { describe('annotation', function() {
function XRefMock(array) { function XRefMock(array) {
this.map = Object.create(null); this.map = Object.create(null);
for (var elem in array) { for (var elem in array) {

4
test/unit/jasmine-boot.js

@ -45,7 +45,7 @@ var pdfjsLibs;
function initializePDFJS(callback) { function initializePDFJS(callback) {
require.config({paths: {'pdfjs': '../../src', 'pdfjs-web': '../../web', require.config({paths: {'pdfjs': '../../src', 'pdfjs-web': '../../web',
'pdfjs-test': '..'}}); '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/api_spec', 'pdfjs-test/unit/bidi_spec',
'pdfjs-test/unit/cff_parser_spec', 'pdfjs-test/unit/cmap_spec', 'pdfjs-test/unit/cff_parser_spec', 'pdfjs-test/unit/cmap_spec',
'pdfjs-test/unit/crypto_spec', 'pdfjs-test/unit/document_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/type1_parser_spec',
'pdfjs-test/unit/ui_utils_spec', 'pdfjs-test/unit/unicode_spec', 'pdfjs-test/unit/ui_utils_spec', 'pdfjs-test/unit/unicode_spec',
'pdfjs-test/unit/util_spec'], 'pdfjs-test/unit/util_spec'],
function (displayGlobal, testUnitAnnotationLayerSpec, testUnitApiSpec, function (displayGlobal, testUnitAnnotationSpec, testUnitApiSpec,
testUnitBidiSpec, testUnitCFFParserSpec, testUnitCMapSpec, testUnitBidiSpec, testUnitCFFParserSpec, testUnitCMapSpec,
testUnitCryptoSpec, testUnitDocumentSpec, testUnitDOMUtilsSpec, testUnitCryptoSpec, testUnitDocumentSpec, testUnitDOMUtilsSpec,
testUnitEvaluatorSpec, testUnitFontsSpec, testUnitFunctionSpec, testUnitEvaluatorSpec, testUnitFontsSpec, testUnitFunctionSpec,

Loading…
Cancel
Save