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.
8 years ago
chris.greening
cfc2f36f5c
Adds additional parameter so background color of canvas can be set
8 years ago
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.
8 years ago
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.
8 years ago
Tim van der Meij
35730148a7
Convert the files in the `/test/unit` folder to ES6 modules
8 years ago
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.
8 years ago
Jonas Jenwald
9082f08e37
Enable running the `cmap` unit-tests on Travis by utilizing a `NodeCMapReaderFactory`
8 years ago