diff --git a/.jshintrc b/.jshintrc index b777537c4ff0bc..19c53a416e27d8 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 d6c644f4457df1..cde25f5ccc6379 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 7236914d5fc512..ed1be9c0a39e5a 100644 --- a/test/test_slave.html +++ b/test/test_slave.html @@ -18,16 +18,17 @@ PDF.js test slave + + - + + - + - - - - + + diff --git a/test/unit/font_spec.js b/test/unit/font_spec.js index 7f25ac0c098f36..1eff8a22df2784 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 7b91899e2033e3..20482ea4dbdf77 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 fcce65d1961b5c..fe5178746a3271 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 dbbaece086a8ec..9f6eab6e31a41a 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -53,16 +53,17 @@ + + - + + - + - - - - + +