changeset 991:64c4c40c5835

Added some MLE tests to dwtest program to make sure MLEs function the same across platforms.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 07 May 2011 19:12:58 +0000
parents 3d898b78c2ad
children 2d80b4dcff9a
files dwtest.c
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dwtest.c	Sat May 07 15:20:34 2011 +0000
+++ b/dwtest.c	Sat May 07 19:12:58 2011 +0000
@@ -1026,7 +1026,17 @@
     container_mle = dw_mle_new( 111 );
     dw_box_pack_start( containerbox, container_mle, 500, 200, TRUE, TRUE, 0);
     
-    /* connect our event trappers... */
+	mle_point = dw_mle_import(container_mle, "", -1);
+    sprintf(buffer, "[%d]", mle_point);
+	mle_point = dw_mle_import(container_mle, buffer, mle_point);
+    sprintf(buffer, "[%d]abczxydefijkl", mle_point);
+	mle_point = dw_mle_import(container_mle, buffer, mle_point);
+    dw_mle_delete(container_mle, 11, 3);
+	mle_point = dw_mle_import(container_mle, "gh", 14);
+    dw_mle_get_size(container_mle, (unsigned long*)&mle_point, NULL);
+	mle_point = dw_mle_import(container_mle, "\r\n\r\n", mle_point);
+    dw_mle_set_cursor(container_mle, mle_point);
+   /* connect our event trappers... */
     dw_signal_connect(container, DW_SIGNAL_ITEM_ENTER, DW_SIGNAL_FUNC(item_enter_cb), (void *)container_status);
     dw_signal_connect(container, DW_SIGNAL_ITEM_CONTEXT, DW_SIGNAL_FUNC(item_context_cb), (void *)container_status);
     dw_signal_connect(container, DW_SIGNAL_ITEM_SELECT, DW_SIGNAL_FUNC(container_select_cb), (void *)container_status);