summaryrefslogtreecommitdiff
path: root/test/mime-data.c
AgeCommit message (Collapse)AuthorFilesLines
2009-01-29[test] Trivial fixes for error paths.Chris Wilson1-0/+4
Kill a few leaks along error paths in the test code.
2008-11-24Add image/jp2 to mime-data testAdrian Johnson1-1/+6
2008-11-07[surface] Pass a separate closure for the mime-type destroy notifier.Chris Wilson1-1/+2
A limitation of the current API was that the destroy notifier was called on the mime-data block. This prevents the user from passing in a pointer to a managed block, for example a mime-data block belonging to a ref-counted object. We can overcome this by allowing the user to specify the closure to be used with the destroy notifier.
2008-11-05[test] Update mime-data to check image/pngChris Wilson1-23/+44
Add a "image/png" mime-type test.
2008-11-04[test] Update mime-data jpeg reference data.Chris Wilson1-3/+3
<adrianj> ickle_: If we are going to use a different image for jpeg in mime-data maybe we could create a jpg that contains the text "jpeg". That way when support for the other image formats is added the mime-data test could have one image for each type with each image and it is easy to see that each image is the correct one.
2008-11-04[test] Use a different jpeg image for mime-dataChris Wilson1-1/+5
Detect when we successfully encode the JPEG data from the mime-type by using a completely image.
2008-11-03[mime-data] Allow embedding of arbitrary mime-types.Chris Wilson1-0/+111
Use the surface user-data array allow to store an arbitrary set of alternate image representations keyed by an interned string (which ensures that it has a unique key in the user-visible namespace). Update the API to mirror that of cairo_surface_set_user_data() [i.e. return a status indicator] and switch internal users of the mime-data to the public functions.