evas map: Fix test case "Flip Page"
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 10 Apr 2017 10:38:56 +0000 (19:38 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 10 Apr 2017 10:38:56 +0000 (19:38 +0900)
commitfd69113f6a9e2735a3e1ad2d0830982c722f453e
treebe994f5e7a3f8943fb5e462f2807b06013bcb83a
parentf3c9500a6d7de03f92b62cf6515518dbe6385259
evas map: Fix test case "Flip Page"

Since 9b7ac51943ba0d6391b75cf evas map tries to avoid recalculating
stuff when the map parameters have not changed. Unfortunately the
code in elementary_test -to "Flip Page" was badly written. It was
modifying a constant's internal value (after ugly cast). So the
memcmp() and all other checks would return successfully, as the
exact same pointer was being compared to itself.

So, I've fixed the comparison by adding some forgotten parameters
(perspective) but most importantly I fixed the map API usage in the
test case.
src/bin/elementary/test_flip_page.c
src/lib/evas/canvas/evas_map.c