summaryrefslogtreecommitdiff
path: root/test/mime-unique-id.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix file mode of mime_unqiue-id.cAdrian Johnson2021-08-241-0/+0
|
* Update the PDF size limit in mime-unique-idUli Schlachter2021-03-081-1/+1
| | | | | | | | | | | The test mime-unique-id checks that some images are only embedded once in a PDF. It does so by checking if the file size is within some expected bounds. However, the test fails for me because the file is too small. Yes, too *small*. Fix this by updating the test to expect my current file size. Signed-off-by: Uli Schlachter <psychon@znc.in>
* test/mime-unique-id: Fix for out-of-tree buildsUli Schlachter2021-03-081-2/+16
| | | | | | | | | Instead of failing because it did not find an image, this now fails for me since the PDF is too small (???). This new code is modelled after cairo_test_create_surface_from_png(). Signed-off-by: Uli Schlachter <psychon@znc.in>
* ps: use Reusable streams for forms in Level 3Adrian Johnson2017-11-091-1/+1
| | | | to avoid emitting image data as strings
* ps: use forms for surfaces with UNIQUE_ID mime typeAdrian Johnson2017-11-091-2/+2
| | | | | | to ensure the surfaces are emitted only once. fixes mime-unique-id PS output
* pdf: fix mime-unique-id jpeg attached to recording testAdrian Johnson2017-11-091-2/+2
| | | | | | | | | | | | | | - Restructure the emit_surface code so that mime types are checked first. - Add a test parameter to emit_surface to test if the surface will be emitted as an image or recording instead checking the surface type as the attached mime may override this. - Mark surface as not clear when mime is attached to avoid optimizing away "clear" surfaces that have mime attached. - Include entire surface in analysis if mime attached (also fixes bug with calculating the extents CONTENT_COLOR surfaces)
* Add mime-unique-id testAdrian Johnson2017-11-091-0/+511
to check that PS/PDF embeds images with CAIRO_MIME_TYPE_UNIQUE_ID only once.