Jonas Jenwald
055573fc83
Replace the unavailable linked test-case for issue 1055 with a reduced test-case
...
Re: issue 1055 and PR 1095.
10 years ago
Daan Sprenkels
6ce83d3290
apply transformation matrix to RadialGradient radiuses,
...
not only to circle origin points
fix for #6006
10 years ago
Jonas Jenwald
bd8d3a78a3
Replace the unavailable linked test-case for issue 845 with a reduced test-case
...
Re: issue 845 and PR 1977.
10 years ago
Yury Delendik
1d8800370a
Allow subpixel anti-aliasing for most of the content.
10 years ago
Jonas Jenwald
1478241c8e
Replace the unavailable linked test-case for issue 3405 with a reduced test-case
...
Re: issue 3405 and PR 3861.
10 years ago
Jonas Jenwald
841831f35e
Replace the unavailable linked test-cases for PR 2606 with reduced test-cases
...
Re: PR 2606.
10 years ago
Jonas Jenwald
4b360512af
Replace the unavailable linked test-case for PR 197 with a reduced test-case
...
Re: PR 197.
*Note:* Since this is a `load` test, `makeref` won't be necessary.
10 years ago
Jonas Jenwald
dca681e82b
Replace the unavailable linked test-case for issue 1655 with a reduced test-case
...
Re: issue 1655 and PR 1978.
10 years ago
Jonas Jenwald
458aff66f4
Replace the unavailable linked test-case for issue 3207 with a reduced test-case
...
Re: issue 3207 and PR 3268.
10 years ago
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
10 years ago
Jonas Jenwald
5bd76c46ac
Replace the unavailable linked test-case for issue 3263 with a reduced test-case
...
Re: issue 3263 and PR 3265.
10 years ago
Jonas Jenwald
50a70429ec
Ignore the /Mask entry in images unless its /ImageMask entry is explicitly set to `true` (issue 6621)
...
Fixes 6621.
10 years ago
Yury Delendik
4c9f6741ae
Remove mozcentral test files.
10 years ago
Rob Wu
b0ff49e456
Improve reliability of the test server
...
- replace // with /
(otherwise http://localhost:8888// links to e.g. http://src/ instead
of http://localhost:8888/src ).
- Solve XSS issue (file names should be sanitized, not output as-is).
- Prevent server from crashing if there is a stat error (e.g. permission
error or file not found (e.g. broken symlink)).
10 years ago
Jonas Jenwald
3008580972
Replace the unavailable linked test-case for issue 2128 with a reduced test-case
...
Re: issue 2128 and PR 2628.
10 years ago
Rob Wu
ff8c334207
Use random port in test webserver
10 years ago
Jonas Jenwald
ff64ef0243
Prevent `readCmapTable` from failing if the `cmap` is missing in TrueType fonts
...
Fixes http://arrow.dit.ie/cgi/viewcontent.cgi?article=1000&context=aaschadpoth#page=3 .
10 years ago
Jonas Jenwald
66c17a69ae
Add a reduced `text` test-case for issue 4665
...
Re: issue 4665 and PR 6601.
Since we currently don't have a good `text` test-case that fails without the above PR, this patch adds a reduced one.
10 years ago
Yury Delendik
4ee0bade82
Test for text layer issue 1045.
10 years ago
Yury Delendik
27efe5608f
Test case from #6019 .
10 years ago
Jonas Jenwald
034087bb40
Replace the linked test-case for issue 3879 with a reduced test-case
...
Re: issue 3879 and PR 3880.
10 years ago
Jonas Jenwald
cf09f38340
Replace the linked test-case for issue 1293 with a reduced test-case
...
When I submitted PR 3576, I included a linked test-case. The reason was that I didn't know enough about the PDF format, in order to successfully create a reduced test-case.
Considering that the link points to a Dropbox, there's no guarantee that the PDF file will remain available, hence it seems worthwhile to replace the test-case.
*Note:* Since this is a `load` test, `makeref` won't be necessary.
10 years ago
Jonas Jenwald
1c66d4a106
Add a `totalLength` getter to `OperatorList`, since the `length` is zero after flushing
...
In the `RenderPageRequest` handler in `worker.js`, we attempt to print an `info` message containing the rendering time and the length of the operator list. The latter is currently broken (and has been for quite some time), since the `length` of an `OperatorList` is reset when flushing occurs.
This patch attempts to rectify this, by adding a getter which keeps track of the total length.
10 years ago
Jonas Jenwald
25e55322c4
Improved `get fingerprint` unit-tests (PR 5124)
...
This patch adds a unit-test for the changes contained in PR 5124, and also improves the existing `get fingerprint` test slightly.
10 years ago
Jonas Jenwald
ec04c4acb7
Add a reduced test-case for issue 6151
...
Re: issue 6151 and PR 6193.
*Note:* Since this is a `load` test, `makeref` won't be necessary.
10 years ago
Yury Delendik
58c3ea0820
Adds thread abort capabilities.
10 years ago
Yury Delendik
59c13b32aa
Adds destroy method to the document loading task.
...
Also renames PDFPageProxy.destroy method to cleanup.
10 years ago
Jonas Jenwald
d3782ff8d4
Add a reduced test-case for issue 4575
...
Re: issue 4575 and PR 4581.
10 years ago
Jonas Jenwald
2e751199fb
Prevent getOperatorList from failing to correctly parse OPS.paintXObject for TilingPatterns that are missing some /Resources entries (issue 6541)
...
Fixes 6541.
10 years ago
Jonas Jenwald
e04113a35b
Add unit-tests for the `onPassword/onProgress` callbacks of the API
...
The standard viewer implicitly depends on the `onPassword` and `onProgress` callbacks, in order to open password protected PDF files, respectively to report file loading progress. We currently have no unit-tests for this functionality, which seems unfortunate; hence this patch.
*Please note:* Rather than adding more unit-tests to `api_spec.js`, I slightly extended/reworked two existing tests. Specifically for the password test, this *does not* really change what we actually test, just how the test is done.
10 years ago
Jonas Jenwald
5987197bd5
Ensure that all `getDocument` unit-tests returns the expected data
10 years ago
Jonas Jenwald
34cbee9bd3
Add unit-tests for PR 6531
10 years ago
Jonas Jenwald
39b962e3b0
Add unit-tests for `isExternalLinkTargetSet`
10 years ago
Jonas Jenwald
03f2c704a3
Add a reduced load test-case for bug 1020858
...
Re: PR 4907 and https://bugzilla.mozilla.org/show_bug.cgi?id=1020858 .
*Note:* Since this is a `load` test, `makeref` won't be necessary.
10 years ago
Jonas Jenwald
e8ad6c9d13
Add a unit-test for bug 1020226
...
For reference, see PR 4902 and https://bugzilla.mozilla.org/show_bug.cgi?id=1020226 .
10 years ago
Jonas Jenwald
ae255f8921
Slightly improved `getPage` unit-tests
10 years ago
Jonas Jenwald
bdfda37c04
Add a (linked) test-case for PR 4897
...
Re: PR 4897.
10 years ago
Jonas Jenwald
96b3dc127d
Add a (linked) load test for issue 4387
...
Re: PR 4404 and issue 4387.
10 years ago
Jonas Jenwald
192907e0d2
Make `XRef_indexObjects` even more robust against bad PDF files, by checking for the existence of 'trailer' if 'xref' is not found
...
Fixes http://www.cyjack.com/cognition/Terence%20McKenna%20-%20Lectures%20on%20Alchemy.pdf .
10 years ago
Jonas Jenwald
1b8cb52555
Prevent `PartialEvaluator_buildFormXObject` from failing if the `Matrix` or `BBox` contains indirect objects
...
This patch fixes yet another instance of bad PDF data, specifically a case where the `BBox` array contains indirect objects (i.e. `Ref`s).
Fixes the missing image in http://www.int.washington.edu/talks/WorkShops/int_08_37W/People/Franz_M/Franz.pdf#page=24 . *Note:* There are missing images on a number of the pages in that file.
10 years ago
Jonas Jenwald
9eab463b6d
Ensure that the `baseTransform` is always defined for TilingPatterns
...
Fixes http://www2.emersonprocess.com/siteadmincenter/PM%20Micro%20Motion%20Documents/High-Pressure-Measurement-WP-001287.pdf#page=3 .
10 years ago
Jonas Jenwald
427d0f982d
Add a (linked) test-case for issue 4914
10 years ago
Jonas Jenwald
8d831449ab
Right-size the `map` array in PartialEvaluator_readToUnicode
...
We can avoid a lot of intermediate resizings, by directly allocating the required number of elements for the `map` array.
10 years ago
Jonas Jenwald
b218b222b5
Replace the unavailable linked test-case for PR 2875 with a reduced test-case
...
This reduced PDF file only contains the relevant text/font; for reference please see PR 2875.
10 years ago
Jonas Jenwald
958fb71ef4
Update the link location for the `issue3115` test file
...
The file (`lshort.pdf`) has changed a couple of times since the test was added, hence there's no guarantee that the current version accurately reflects the issues the test was added to check.
In this patch, I'm updating the link location to point to the *intended* file version (hosted on the "Internet Archive").
10 years ago
Fabian Lange
2564827503
Fix text spacing with vertical fonts ( #6387 )
...
According to the PDF spec 5.3.2, a positive value means in horizontal,
that the next glyph is further to the left (so narrower), and in
vertical that it is further down (so wider).
This change fixes the way PDF.js has interpreted the value.
10 years ago
Jonas Jenwald
297984e2e9
Add unit-tests for `removeNullCharacters` (PR 6431 follow-up)
...
I overlooked that we already had existing unit-tests for `web/ui_utils.js`, so this PR adds a few tests for `removeNullCharacters` (see PR 6431).
10 years ago
Jonas Jenwald
c043a6e3a3
Replace the unavailable linked test-case for issue 3205 with a reduced test-case
10 years ago
Jonas Jenwald
7f7025247a
Replace the unavailable linked test-case for issue 4436 with a reduced test-case
...
Issue 4436 actually contains enough information to create a reduced test-case, which this patch uses to replace a currently unavailable linked test.
10 years ago
Jonas Jenwald
c5c8b239e9
Add unit-tests for `stringToPDFString`
...
The other day I was looking as the utilily function `stringToPDFString`, and I noticed that it didn't have any unit-tests. This patch fixes that.
10 years ago