mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-23 21:00:23 +01:00
cairo_set_pattern -> cairo_set_source cairo_get_pattern -> cairo_get_source cairo_set_rgb_color -> cairo_set_source_rgb -> cairo_set_source_rgba cairo_set_alpha -> cairo_get_alpha -> Note that we'll likely want to add cairo_set_source_surface. Add _cairo_stock_color helper function. Improve some interfaces: _cairo_color_init _cairo_color_init_rgb _cairo_color_set_rgb -> _cairo_color_init_rgba _cairo_color_set_alpha _cairo_color_multiply_alpha _cairo_color_get_rgb -> _cairo_color_get_rbga _cairo_color_get_rgba_premultiplied Add cairo_stock_t and some helper macros: CAIRO_COLOR_WHITE CAIRO_COLOR_BLACK CAIRO_COLOR_TRANSPARENT Fix cairo_pattern_t by eliminating pattern->alpha. Fix cairo_solid_pattern_t to use cairo_color_t rather than three doubles. Track removal of pattern->alpha, simplifying the code considerably Track _cairo_color interface changes. Remove gstate->alpha. Propagate down set_source renamings. cairo_pattern_add_color_stop -> cairo_pattern_add_color_stop_rgba and add: cairo_pattern_add_color_stop_rgb Remove pattern->alpha, simplifying the code considerably. Track pattern and color interface changes. Add const where appropriate on cairo_color_t*. Add private type inspection predicate. (cairo_xlib_surface_set_size): Add check for surface type mismatch, (no useful error reporting yet, though). Note coverage as en expected failure. Improve line wrap on expected failure messages. Port all tests to new cairo_set_source interfaces. |
||
|---|---|---|
| .. | ||
| .cvsignore | ||
| buffer-diff.c | ||
| buffer-diff.h | ||
| cairo-test.c | ||
| cairo-test.h | ||
| clip-twice-ref.png | ||
| clip-twice.c | ||
| coverage-ref.png | ||
| coverage.c | ||
| create-for-png-ref.png | ||
| create-for-png.c | ||
| create-from-png-ref.png | ||
| create-from-png.c | ||
| fill-rule-ref.png | ||
| fill-rule.c | ||
| get-and-set.c | ||
| gradient-alpha-ref.png | ||
| gradient-alpha.c | ||
| imagediff.c | ||
| leaky-polygon-ref.png | ||
| leaky-polygon.c | ||
| line-width-ref.png | ||
| line-width.c | ||
| linear-gradient-ref.png | ||
| linear-gradient.c | ||
| Makefile.am | ||
| move-to-show-surface-ref.png | ||
| move-to-show-surface.c | ||
| path-data-ref.png | ||
| path-data.c | ||
| pixman-rotate-ref.png | ||
| pixman-rotate.c | ||
| read-png.c | ||
| read-png.h | ||
| README | ||
| romedalen.png | ||
| select-font-no-show-text.c | ||
| set-source-ref.png | ||
| set-source.c | ||
| surface-finish-twice.c | ||
| testsvg | ||
| text-cache-crash.c | ||
| text-rotate.c | ||
| transforms-ref.png | ||
| transforms.c | ||
| translate-show-surface-ref.png | ||
| translate-show-surface.c | ||
| trap-clip-ref.png | ||
| trap-clip.c | ||
| user-data.c | ||
| write-png.c | ||
| write-png.h | ||
| xmalloc.c | ||
| xmalloc.h | ||
Regression test suite for cairo. Using this test should be as simple as running: make check assuming that the cairo distribution in the directory above has been configured and built. The test suite here goes through some effort to run against the locally compiled library rather than any installed version. The test suite needs to be run before any code is committed and before any release. Here are the rules governing the use of the suite: Before committing ----------------- All tests should return a result of PASS or XFAIL. The XFAIL results indicate known bugs. The final message should be one of the following: All XX tests behaved as expected (YY expected failures) All XX tests passed If any tests have a status of FAIL, then the new code has caused a regression error which should be fixed before the code is committed. When a new bug is found ----------------------- A new test case should be added by imitating the style of an existing test. This means adding the following files: new_bug.c new_bug-ref.png Where new_bug.c is a minimal program to demonstrate the bug, following the style of existing tests. The new_bug-ref.png image should contain the desired result of new_bug.c if the bug were fixed. Makefile.am should be edited, adding new_bug.c to both the TESTS and XFAIL_TESTS lists. When a new feature is added --------------------------- It's important for the regression suite to keep pace with development of the library. So a new test should be added for each new feature. The work involved is similar the work described above for new bugs. The only distinction is that the test is expected to pass so it should not be added to the XFAIL_TESTS list. When a bug is fixed ------------------- The fix should be verified by running the test suite which should result in an "unexpected pass" for the test of interest. Rejoice as appropriate, then remove the relevant file name from the XFAIL_TESTS variable in Makefile.am. Before releasing ---------------- All tests should return a result of PASS meaning all known bugs are fixed, resulting in the happy message: All XX tests passed