~ubuntu-branches/ubuntu/lucid/gedit/lucid-proposed

« back to all changes in this revision

Viewing changes to tests/document-loader.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-03-18 00:37:05 UTC
  • mfrom: (1.1.76 upstream)
  • Revision ID: james.westby@ubuntu.com-20100318003705-typ8fgrsezmc334h
Tags: 2.29.9-0ubuntu1
* New upstream version:
  - Fix a file corruption bug in the new file saving code 
  - Misc bugfixes
* debian/patches/80_not_using_localmodlibs.patch:
  - dropped, the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
                    LoaderTestData *data)
72
72
{
73
73
        GtkTextIter start, end;
74
 
        gchar *text;
75
74
 
76
75
        g_assert_no_error (error);
77
76
 
78
77
        if (data->in_buffer != NULL)
79
78
        {
 
79
                gchar *text;
 
80
 
80
81
                gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (document), &start, &end);
81
82
                text = gtk_text_iter_get_slice (&start, &end);
82
83
 
83
84
                g_assert_cmpstr (text, ==, data->in_buffer);
 
85
 
 
86
                g_free (text);
84
87
        }
85
88
 
86
89
        if (data->newline_type != -1)