summaryrefslogtreecommitdiff
path: root/test/nslayout-object-tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/nslayout-object-tests.c')
-rw-r--r--test/nslayout-object-tests.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/nslayout-object-tests.c b/test/nslayout-object-tests.c
index 612a983..4a3f2c4 100644
--- a/test/nslayout-object-tests.c
+++ b/test/nslayout-object-tests.c
@@ -14,21 +14,21 @@
#define UNUSED(x) (void)(x)
#endif
-static nslayout_error nslayout_test_callback(
- nslayout_layout *layout,
+static nsl_error nsl_test_callback(
+ nsl_layout *layout,
void *pw,
- nslayout_request *req)
+ nsl_request *req)
{
UNUSED(req);
UNUSED(layout);
UNUSED(pw);
- return NSLAYOUT_OK;
+ return NSL_OK;
}
-START_TEST (test_nslayout_layout_create_ok)
+START_TEST (test_nsl_layout_create_ok)
{
- nslayout_layout *layout = NULL;
- nslayout_error error;
+ nsl_layout *layout = NULL;
+ nsl_error error;
dom_exception dom_error;
css_error css_err;
dom_document *doc;
@@ -44,24 +44,24 @@ START_TEST (test_nslayout_layout_create_ok)
css_err = css_select_ctx_create(&css_ctx);
ck_assert(css_err == CSS_OK);
- ck_assert(nslayout_init() == NSLAYOUT_OK);
+ ck_assert(nsl_init() == NSL_OK);
- error = nslayout_layout_create(doc,
+ error = nsl_layout_create(doc,
css_ctx,
&media,
- nslayout_test_callback,
+ nsl_test_callback,
NULL,
&layout);
- fail_unless(error == NSLAYOUT_OK,
+ fail_unless(error == NSL_OK,
"Unable to create layout");
fail_unless(layout != NULL,
"Returned OK but str was still NULL");
- error = nslayout_layout_destroy(layout);
- fail_unless(error == NSLAYOUT_OK,
+ error = nsl_layout_destroy(layout);
+ fail_unless(error == NSL_OK,
"Unable to destroy layout");
- ck_assert(nslayout_fini() == NSLAYOUT_OK);
+ ck_assert(nsl_fini() == NSL_OK);
css_err = css_select_ctx_destroy(css_ctx);
ck_assert(css_err == CSS_OK);
@@ -71,12 +71,12 @@ START_TEST (test_nslayout_layout_create_ok)
END_TEST
-void nslayout_nslayout_object_suite(SRunner *sr)
+void nsl_nsl_object_suite(SRunner *sr)
{
Suite *s = suite_create("libnslayout: nslayout object tests");
TCase *tc_layout_basic = tcase_create("Creation/Destruction");
- tcase_add_test(tc_layout_basic, test_nslayout_layout_create_ok);
+ tcase_add_test(tc_layout_basic, test_nsl_layout_create_ok);
suite_add_tcase(s, tc_layout_basic);
srunner_add_suite(sr, s);