From 7c3a63bae051256a49cfe96147309e87d6e6dc7c Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 12 Jan 2017 19:00:53 +0100 Subject: [PATCH] Rename `annotation_layer_spec.js` to `annotation_spec.js` since the unit-tests only cover `src/core/annotation.js` functionality --- test/unit/{annotation_layer_spec.js => annotation_spec.js} | 6 +++--- test/unit/jasmine-boot.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename test/unit/{annotation_layer_spec.js => annotation_spec.js} (99%) diff --git a/test/unit/annotation_layer_spec.js b/test/unit/annotation_spec.js similarity index 99% rename from test/unit/annotation_layer_spec.js rename to test/unit/annotation_spec.js index aeb33dafd..5729eb04a 100644 --- a/test/unit/annotation_layer_spec.js +++ b/test/unit/annotation_spec.js @@ -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) { diff --git a/test/unit/jasmine-boot.js b/test/unit/jasmine-boot.js index 2637ca373..0df7797e2 100644 --- a/test/unit/jasmine-boot.js +++ b/test/unit/jasmine-boot.js @@ -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,