tests: Fix to use GFile instead of uris

This commit is contained in:
JosephMcc 2017-01-19 00:35:42 -08:00
parent ca08220560
commit dfa7714cc5
2 changed files with 2 additions and 8 deletions

View File

@ -122,11 +122,7 @@ test_loader (const gchar *filename,
G_CALLBACK (on_document_loaded),
data);
uri = g_file_get_uri (file);
xed_document_load (document, uri, xed_encoding_get_utf8 (), 0, FALSE);
g_free (uri);
xed_document_load (document, file, xed_encoding_get_utf8 (), 0, FALSE);
while (!test_completed)
{

View File

@ -215,12 +215,11 @@ test_saver (const gchar *filename_or_uri,
test_completed = FALSE;
file = g_file_new_for_commandline_arg (filename_or_uri);
uri = g_file_get_uri (file);
existed = g_file_query_exists (file, NULL);
ensure_mounted (file);
xed_document_save_as (document, uri, xed_encoding_get_utf8 (), save_flags);
xed_document_save_as (document, file, xed_encoding_get_utf8 (), save_flags);
while (!test_completed)
{
@ -232,7 +231,6 @@ test_saver (const gchar *filename_or_uri,
g_file_delete (file, NULL, NULL);
}
g_free (uri);
g_object_unref (file);
saver_test_data_free (data);