mirror of
https://github.com/brl/mutter.git
synced 2025-02-05 08:04:10 +00:00
tests/cogl: Migrate blend-strings test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
eaed0e4b46
commit
5e92500a9a
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-blend-strings.c',
|
|
||||||
'test-blend.c',
|
'test-blend.c',
|
||||||
'test-depth-test.c',
|
'test-depth-test.c',
|
||||||
'test-color-hsl.c',
|
'test-color-hsl.c',
|
||||||
|
@ -60,7 +60,6 @@ main (int argc, char **argv)
|
|||||||
UNPORTED_TEST (test_fixed);
|
UNPORTED_TEST (test_fixed);
|
||||||
UNPORTED_TEST (test_materials);
|
UNPORTED_TEST (test_materials);
|
||||||
ADD_TEST (test_pipeline_user_matrix, 0, 0);
|
ADD_TEST (test_pipeline_user_matrix, 0, 0);
|
||||||
ADD_TEST (test_blend_strings, 0, 0);
|
|
||||||
ADD_TEST (test_blend, 0, 0);
|
ADD_TEST (test_blend, 0, 0);
|
||||||
ADD_TEST (test_premult, 0, 0);
|
ADD_TEST (test_premult, 0, 0);
|
||||||
UNPORTED_TEST (test_readpixels);
|
UNPORTED_TEST (test_readpixels);
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#define COGL_TEST_DECLARATIONS_H
|
#define COGL_TEST_DECLARATIONS_H
|
||||||
|
|
||||||
void test_pipeline_user_matrix (void);
|
void test_pipeline_user_matrix (void);
|
||||||
void test_blend_strings (void);
|
|
||||||
void test_blend (void);
|
void test_blend (void);
|
||||||
void test_premult (void);
|
void test_premult (void);
|
||||||
void test_path (void);
|
void test_path (void);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
cogl_tests = [
|
cogl_tests = [
|
||||||
'test-atlas-migration',
|
'test-atlas-migration',
|
||||||
|
'test-blend-strings',
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "test-declarations.h"
|
#include "tests/cogl-test-utils.h"
|
||||||
#include "test-utils.h"
|
|
||||||
|
|
||||||
#define QUAD_WIDTH 20
|
#define QUAD_WIDTH 20
|
||||||
|
|
||||||
@ -357,7 +356,7 @@ paint (TestState *state)
|
|||||||
0x2a2a2abb); /* expected */
|
0x2a2a2abb); /* expected */
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_blend_strings (void)
|
test_blend_strings (void)
|
||||||
{
|
{
|
||||||
TestState state;
|
TestState state;
|
||||||
@ -374,3 +373,6 @@ test_blend_strings (void)
|
|||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/blend-strings", test_blend_strings);
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user