diff options
author | Matt Watson <mattdangerw@gmail.com> | 2013-05-23 19:51:23 -0700 |
---|---|---|
committer | Matt Watson <mattdangerw@gmail.com> | 2013-06-03 15:50:48 -0700 |
commit | 85b2f8af3314d9f934643bc08e311478fcf4eba6 (patch) | |
tree | d2bff0c5035def943cefd914259a365eb771b178 /test | |
parent | 532310504d0966054ff18f0a79dd13212b674dd9 (diff) |
Splash page manager's add will add child as the splash page.
More documentation improvements too.
[endlessm/eos-sdk#62]
Diffstat (limited to 'test')
-rw-r--r-- | test/test-splash-page-manager.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test-splash-page-manager.c b/test/test-splash-page-manager.c index 0fa80bc..06105aa 100644 --- a/test/test-splash-page-manager.c +++ b/test/test-splash-page-manager.c @@ -140,6 +140,19 @@ test_spm_default_visible_splash (SplashPageManagerFixture *fixture, g_assert (visible_page == fixture->first_splash_page); } +static void +test_spm_add_to_splash (SplashPageManagerFixture *fixture, + gconstpointer unused) +{ + // Right now container add sets the splash page by default. This tests that + // functionality. + GtkWidget *splash_page; + gtk_container_add (GTK_CONTAINER (fixture->spm), + fixture->first_splash_page); + splash_page = eos_splash_page_manager_get_splash_page (EOS_SPLASH_PAGE_MANAGER (fixture->spm)); + g_assert (splash_page == fixture->first_splash_page); +} + void add_splash_page_manager_tests (void) { @@ -149,6 +162,8 @@ add_splash_page_manager_tests (void) test_spm_show_splash_page); ADD_EMPTY_SPLASH_PAGE_MANAGER_TEST ("/splash-page-manager/default-visible-splash", test_spm_default_visible_splash); + ADD_EMPTY_SPLASH_PAGE_MANAGER_TEST ("/splash-page-manager/add-to-splash", + test_spm_add_to_splash); /* Disabled until https://bugzilla.gnome.org/show_bug.cgi?id=699756 is fixed [endlessm/eos-sdk#67] */ |