tests: add wp_viewporter tests
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 19 Apr 2016 14:20:42 +0000 (17:20 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 9 Jun 2016 08:17:16 +0000 (11:17 +0300)
commit82d95a6dc555246b84c38b63eaefc15af59934b7
tree5cf266c7e96a040338fb4d45f0a5e1a6173bd88a
parent201769a75646413b6c3d80f86bd5347c60030570
tests: add wp_viewporter tests

These tests poke the viewporter interface to ensure proper behaviour
from client perspective, without testing the rendering result.

These cases are covered:
- create viewport twice
- source rectangle invalid value errors, and unset
- destination size invalid value errors, and unset
- source causing non-integer destination size
- source inside/outside of buffer with transform, scale
- source outside NULL buffer, then getting real buffer
- source outside NULL buffer with inherited NULL
- set_source, set_destination, and destroy after the wl_surface is
  destroyed

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Makefile.am
tests/viewporter-test.c [new file with mode: 0644]