39 lines
740 B
C
39 lines
740 B
C
/*
|
|
* Copyright 2016 (c) Anna Schumaker.
|
|
*/
|
|
#include <core/core.h>
|
|
#include <core/idle.h>
|
|
#include <gui/filter.h>
|
|
#include <gui/model.h>
|
|
#include <gui/treeview.h>
|
|
#include <tests/test.h>
|
|
|
|
struct core_init_data init_data = {};
|
|
|
|
void test_treeview()
|
|
{
|
|
g_assert_nonnull(gui_treeview());
|
|
g_assert_true(GTK_IS_TREE_VIEW(gui_treeview()));
|
|
}
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
int ret;
|
|
|
|
gtk_init(&argc, NULL);
|
|
core_init(&argc, NULL, &init_data);
|
|
gui_builder_init("share/ocarina/ocarina.ui");
|
|
gui_model_init();
|
|
gui_filter_init();
|
|
while (idle_run_task()) {}
|
|
|
|
g_test_init(&argc, &argv, NULL);
|
|
g_test_add_func("/Gui/Treeview", test_treeview);
|
|
ret = g_test_run();
|
|
|
|
core_deinit();
|
|
gui_filter_deinit();
|
|
gui_model_deinit();
|
|
return ret;
|
|
}
|