mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
tests/utils: Add test_client_quit() helper
https://bugzilla.gnome.org/show_bug.cgi?id=730551
This commit is contained in:
parent
2df4ccd1cd
commit
5b37901b57
@ -365,10 +365,7 @@ test_case_do (TestCase *test,
|
|||||||
if (!client)
|
if (!client)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!test_client_do (client, error, "destroy_all", NULL))
|
if (!test_client_quit (client, error))
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
if (!test_client_wait (client, error))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
g_hash_table_remove (test->clients, test_client_get_id (client));
|
g_hash_table_remove (test->clients, test_client_get_id (client));
|
||||||
|
@ -396,6 +396,19 @@ test_client_new (const char *id,
|
|||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
test_client_quit (TestClient *client,
|
||||||
|
GError **error)
|
||||||
|
{
|
||||||
|
if (!test_client_do (client, error, "destroy_all", NULL))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
if (!test_client_wait (client, error))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
test_client_destroy (TestClient *client)
|
test_client_destroy (TestClient *client)
|
||||||
{
|
{
|
||||||
|
@ -70,6 +70,9 @@ MetaWindow * test_client_find_window (TestClient *client,
|
|||||||
const char *window_id,
|
const char *window_id,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
gboolean test_client_quit (TestClient *client,
|
||||||
|
GError **error);
|
||||||
|
|
||||||
TestClient * test_client_new (const char *id,
|
TestClient * test_client_new (const char *id,
|
||||||
MetaWindowClientType type,
|
MetaWindowClientType type,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
Loading…
Reference in New Issue
Block a user