summaryrefslogtreecommitdiff
path: root/test/radial-gradient.c
Commit message (Collapse)AuthorAgeFilesLines
* test: Cleanup macrosAndrea Canciani2011-03-171-2/+2
| | | | | | | | The ARRAY_LENGTH macro is used by many tests, although sometimes it is named ARRAY_SIZE. Define it just once in cairo-test.h and reuse it. In a similar way, MAX() and MIN() are currently defined in some specific tests, while they could be reused.
* tests: Fix gcc complaintBenjamin Otte2011-02-171-1/+1
| | | | warning: ‘static’ is not at beginning of declaration
* test: New radial-gradient testsAndrea Canciani2011-01-021-52/+196
| | | | | | | | | | | | | | | The old radial gradient tests were actually drawing the same gradients with different operators (OVER/SOURCE) and operations (paint/mask). It is possible to refactor them to share the gradient construction code. This makes it easy to change the gradient shape in all of them to test more interesting combinations. Instead of testing 16 generic positions we are now testing just 7 cases, which correspond to every possible combination of the relative size and position of the two circles defining the gradient. In particular we are now testing a constant radius gradient and gradients with tangent circles.
* [test] Extend radial gradients to check r2 < r1Chris Wilson2009-07-241-13/+23
| | | | | | | Include additional gradients to cover the cases where r1 > r2, as a pixman bug was exposed by: [Bug 22908] Invalid output of radial gradient http://bugs.freedesktop.org/show_bug.cgi?id=22908
* [test] Build test suite into single binary.Chris Wilson2008-10-311-15/+7
| | | | | | | | | Avoid calling libtool to link every single test case, by building just one binary from all the sources. This binary is then given the task of choosing tests to run (based on user selection and individual test requirement), forking each test into its own process and accumulating the results.
* [test] Preparatory work for running under memfault.Chris Wilson2008-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | In order to run under memfault, the framework is first extended to handle running concurrent tests - i.e. multi-threading. (Not that this is a requirement for memfault, instead it shares a common goal of storing per-test data). To that end all the global data is moved into a per-test context and the targets are adjusted to avoid overlap on shared, global resources (such as output files and frame buffers). In order to preserve the simplicity of the standard draw routines, the context is not passed explicitly as a parameter to the routines, but is instead attached to the cairo_t via the user_data. For the masochist, to enable the tests to be run across multiple threads simply set the environment variable CAIRO_TEST_NUM_THREADS to the desired number. In the long run, we can hope the need for memfault (runtime testing of error paths) will be mitigated by static analysis. A promising candidate for this task would appear to be http://hal.cs.berkeley.edu/cil/.
* Remove radial-gradient test from XFAIL listCarl Worth2007-03-141-2/+1
| | | | | | | | This test has not been failing since the fix in: 772edc9133d41dfd667ae5915dfa6ace0bcbfd0d So get rid of the '1 unexpected passes' complaint.
* Mark 5 tests that are currently failing as XFAIL (that is, not to be fixed ↵Carl Worth2007-03-051-1/+2
| | | | | | | | | | | | | | | | | | | before 1.4) The 5 additional bugs that will be shipped with 1.4 are ft-text-vertical-layout-type1 radial-gradient surface-pattern surface-pattern-scale-down surface-pattern-scale-up Most of these are non-issues, (unbundled font for ft-text-vertical-layout-type1), or very minor issues (radial-gradient and surface-pattern). The only things in here that look like a real bug are the surface-pattern-scale-down and surface-pattern-scale-up tests where the xlib backend results have some non-1.0 alpha that is very unexpected.
* Add radial-gradient test caseCarl Worth2007-03-011-0/+110
Embarrassingly enough, the test suite previously never called into cairo_pattern_create_radial at all. Unsurprisingly, this has led to bugs creeping into the radial gradient implementation.