diff --git a/.jshintrc b/.jshintrc
index b777537c4..19c53a416 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -3,6 +3,12 @@
"browser": true,
"devel": true,
"worker": true,
+ "predef": [
+ "Promise",
+ "require",
+ "define",
+ "exports"
+ ],
// Enforcing
"maxlen": 80,
diff --git a/examples/acroforms/index.html b/examples/acroforms/index.html
index a54ba7045..15b9fde64 100644
--- a/examples/acroforms/index.html
+++ b/examples/acroforms/index.html
@@ -4,17 +4,17 @@
+
+
-
+
+
-
+
-
-
-
-
-
+
+
+
-
+
+
-
+
-
-
-
-
+
+
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
+
diff --git a/test/test_slave.html b/test/test_slave.html
index ad33b5905..50f0ce1c8 100644
--- a/test/test_slave.html
+++ b/test/test_slave.html
@@ -18,16 +18,17 @@ limitations under the License.
PDF.js test slave
+
+
-
+
+
-
+
-
-
-
-
+
+
diff --git a/test/unit/font_spec.js b/test/unit/font_spec.js
index 7f25ac0c0..1eff8a22d 100644
--- a/test/unit/font_spec.js
+++ b/test/unit/font_spec.js
@@ -109,7 +109,7 @@ describe('font', function() {
it('parses a CharString endchar with 4 args w/seac enabled', function() {
var seacAnalysisState = SEAC_ANALYSIS_ENABLED;
try {
- SEAC_ANALYSIS_ENABLED = true;
+ window.pdfjsCoreFonts._enableSeacAnalysis(true);
var bytes = new Uint8Array([0, 1, // count
1, // offsetSize
0, // offset[0]
@@ -125,14 +125,14 @@ describe('font', function() {
expect(result.seacs[0][2]).toEqual(65);
expect(result.seacs[0][3]).toEqual(194);
} finally {
- SEAC_ANALYSIS_ENABLED = seacAnalysisState;
+ window.pdfjsCoreFonts._enableSeacAnalysis(seacAnalysisState);
}
});
it('parses a CharString endchar with 4 args w/seac disabled', function() {
var seacAnalysisState = SEAC_ANALYSIS_ENABLED;
try {
- SEAC_ANALYSIS_ENABLED = false;
+ window.pdfjsCoreFonts._enableSeacAnalysis(false);
var bytes = new Uint8Array([0, 1, // count
1, // offsetSize
0, // offset[0]
@@ -143,7 +143,7 @@ describe('font', function() {
expect(result.charStrings.get(0).length).toEqual(9);
expect(result.seacs.length).toEqual(0);
} finally {
- SEAC_ANALYSIS_ENABLED = seacAnalysisState;
+ window.pdfjsCoreFonts._enableSeacAnalysis(seacAnalysisState);
}
});
diff --git a/test/unit/obj_spec.js b/test/unit/primitives_spec.js
similarity index 99%
rename from test/unit/obj_spec.js
rename to test/unit/primitives_spec.js
index 7b91899e2..20482ea4d 100644
--- a/test/unit/obj_spec.js
+++ b/test/unit/primitives_spec.js
@@ -3,7 +3,7 @@
'use strict';
-describe('obj', function() {
+describe('primitives', function() {
describe('Name', function() {
it('should retain the given name', function() {
diff --git a/test/unit/unit_test.html b/test/unit/unit_test.html
index 2fbfa8d8a..6b6bff892 100644
--- a/test/unit/unit_test.html
+++ b/test/unit/unit_test.html
@@ -12,42 +12,51 @@
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
+
-
+
diff --git a/web/viewer.html b/web/viewer.html
index 8cc4ea963..2423e9b50 100644
--- a/web/viewer.html
+++ b/web/viewer.html
@@ -53,16 +53,17 @@ See https://github.com/adobe-type-tools/cmap-resources
+
+
-
+
+
-
+
-
-
-
-
+
+