Jonas Jenwald
a159c4f357
Check that this.baseUrl
is defined before attempting to fetch any data in DOMCMapReaderFactory
/NodeCMapReaderFactory
2017-09-28 12:34:57 +02:00
Tim van der Meij
ab820438ae
Move the XRefMock
in the unit tests to a central location
...
This patch helps to avoid code duplication for this mock since more unit
tests are depending on it.
2017-07-29 15:16:19 +02:00
chris.greening
cfc2f36f5c
Adds additional parameter so background color of canvas can be set
2017-05-17 17:06:44 +01:00
Jonas Jenwald
bbe8c3d8ed
Enable running a subset of the API unit-tests on Travis
...
Notably, this patch skips all canvas rendering tests in Node.js.
2017-05-12 11:48:27 +02:00
Jonas Jenwald
32baa6af7a
Convert the DOMCMapReaderFactory
to an ES6 class
...
Given that we only create *one* instance of this class per `getDocument` call, this shouldn't matter performance wise.
2017-05-11 20:15:19 +02:00
Tim van der Meij
35730148a7
Convert the files in the /test/unit
folder to ES6 modules
2017-04-30 00:34:02 +02:00
Jonas Jenwald
5c0c122a7d
Ensure that the XMLHttpRequest
is open
ed before attempting to set the responseType
in the DOMCMapReaderFactory
, since IE fails otherwise (issue 8193)
...
I really cannot understand why this change is necessary, since modern browsers such as Firefox and Chrome work just fine with the old code.
Hence this is patch is yet another "hack" that's needed just because IE apparently cannot just work like you'd expect.
For consistency, the Node factory used in the CMap unit-tests is changed as well.
Fixes 8193.
2017-03-25 17:44:48 +01:00
Jonas Jenwald
9082f08e37
Enable running the cmap
unit-tests on Travis by utilizing a NodeCMapReaderFactory
2017-02-17 23:15:36 +01:00