diff options
author | Dodji Seketeli <dodji@src.gnome.org> | 2003-06-17 15:24:49 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2003-06-17 15:24:49 +0000 |
commit | d14f86ba72cde186e4e323f2c7819b82fc0cd3a9 (patch) | |
tree | 58f96d281059a512da05aa3f14ef564393575a07 | |
parent | 527c728aeb4957a97a86c6fa558c2f1c057bbcb7 (diff) | |
download | libcroco-d14f86ba72cde186e4e323f2c7819b82fc0cd3a9.tar.gz |
resuming previous commit.
Dodji.
-rw-r--r-- | tests/test4-main.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/test4-main.c b/tests/test4-main.c index c6fbf0f..4563fa7 100644 --- a/tests/test4-main.c +++ b/tests/test4-main.c @@ -42,6 +42,12 @@ const guchar *gv_ruleset_buf = "s1 > s2 {toto: tutu, tata} " ; +const guchar *gv_at_media_buf = +"@media print, toto {" +" BODY { font-size: 10pt }" +" }" +; + static void display_help (char *prg_name) ; @@ -164,6 +170,24 @@ test_cr_statement_ruleset_parse (void) return CR_OK ; } +static enum CRStatus +test_cr_statement_at_media_rule_parse (void) +{ + CRStatement *stmt = NULL ; + + stmt = cr_statement_at_media_rule_parse_from_buf (gv_at_media_buf, + CR_UTF_8) ; + g_return_val_if_fail (stmt, CR_ERROR) ; + + if (stmt) + { + cr_statement_destroy (stmt) ; + stmt = NULL ; + } + + return CR_OK ; +} + /** *The entry point of the testing routine. */ @@ -187,6 +211,13 @@ main (int argc, char ** argv) return 0 ; } + status = test_cr_statement_at_media_rule_parse () ; + if (status != CR_OK) + { + g_print ("\nKO\n") ; + return 0 ; + } + cr_test_utils_parse_cmd_line (argc, argv, &options) ; if (options.display_help == TRUE) |