[gedit] Updated tests for ensure-newline



commit ee0cedb534be8d4b915a8b87c2c386cca163c339
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Mon Jan 30 19:52:52 2012 +0100

    Updated tests for ensure-newline

 tests/document-input-stream.c  |    2 +-
 tests/document-output-stream.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/document-input-stream.c b/tests/document-input-stream.c
index df25f79..f57fda5 100644
--- a/tests/document-input-stream.c
+++ b/tests/document-input-stream.c
@@ -45,7 +45,7 @@ test_consecutive_read (const gchar *inbuf,
 	gtk_text_buffer_set_text (buf, inbuf, -1);
 
 	b = g_malloc (200);
-	in = gedit_document_input_stream_new (buf, type);
+	in = gedit_document_input_stream_new (buf, type, TRUE);
 
 	outlen = strlen (outbuf);
 	n = 0;
diff --git a/tests/document-output-stream.c b/tests/document-output-stream.c
index 682a8a7..3768d72 100644
--- a/tests/document-output-stream.c
+++ b/tests/document-output-stream.c
@@ -44,7 +44,7 @@ test_consecutive_write (const gchar *inbuf,
 
 	doc = gedit_document_new ();
 	encodings = g_slist_prepend (encodings, (gpointer)gedit_encoding_get_utf8 ());
-	out = gedit_document_output_stream_new (doc, encodings);
+	out = gedit_document_output_stream_new (doc, encodings, TRUE);
 
 	n = 0;
 
@@ -128,7 +128,7 @@ test_boundary ()
 
 	doc = gedit_document_new ();
 	encodings = g_slist_prepend (encodings, (gpointer)gedit_encoding_get_utf8 ());
-	out = gedit_document_output_stream_new (doc, encodings);
+	out = gedit_document_output_stream_new (doc, encodings, TRUE);
 
 	g_output_stream_write (out, "\r", 1, NULL, NULL);
 	g_output_stream_write (out, "\n", 1, NULL, NULL);
@@ -295,7 +295,7 @@ do_test (const gchar *inbuf,
 	}
 
 	doc = gedit_document_new ();
-	out = gedit_document_output_stream_new (doc, encodings);
+	out = gedit_document_output_stream_new (doc, encodings, TRUE);
 
 	n = 0;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]