This isn't correct.

<Parent>
  <!--
    <!-- comment -->
    <Child>Text</Child>
  -->
</Parent>

Technically would be parsed as:

Parent Tag
  Child Tag
    Text Node - "Text"
  Text Node "-->"

But, we ignore text nodes after the first child node anyway.


SVN revision: 29742
This commit is contained in:
rephorm 2007-04-27 19:57:39 +00:00 committed by rephorm
parent 89b58e232d
commit 3aed040af1
4 changed files with 1 additions and 19 deletions

View File

@ -1,7 +1,7 @@
#ifndef COMP_H
#define COMP_H
#define LOOPS 1000
#define LOOPS 1
#define THEME "Tango"
#define SIZE "16x16"

View File

@ -8,7 +8,6 @@ long.ini \
test.desktop \
test_type.desktop \
test.menu \
test_menu_bad_comment.menu \
test_menu_slash_bad.menu \
preferences.menu

View File

@ -59,21 +59,6 @@ ef_cb_menu_with_slashes(void)
return 1;
}
int
ef_cb_menu_with_bad_comment(void)
{
Efreet_Menu *menu;
menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test_menu_bad_comment.menu");
if (!menu)
{
printf("efreet_menu_get() returned NULL\n");
return 0;
}
return 1;
}
int
ef_cb_menu_save(void)
{

View File

@ -23,7 +23,6 @@ int ef_cb_desktop_file_id(void);
#endif
int ef_cb_menu_get(void);
int ef_cb_menu_with_slashes(void);
int ef_cb_menu_with_bad_comment(void);
int ef_cb_menu_save(void);
#if 0
int ef_cb_menu_edit(void);
@ -59,7 +58,6 @@ static Efreet_Test tests[] = {
#endif
{"Menu Parsing", ef_cb_menu_get},
{"Menu Incorrect Names", ef_cb_menu_with_slashes},
{"Menu Bad Comment", ef_cb_menu_with_bad_comment},
{"Menu Save", ef_cb_menu_save},
#if 0
{"Menu Edit", ef_cb_menu_edit},