[vlc-commits] test: css: check spacing is ignored in quoted string

Francois Cartegnie git at videolan.org
Mon Jan 13 15:31:26 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 13 14:46:48 2020 +0100| [99b23ff9f84cb2ce2d693339afb9e4df5d3f3391] | committer: Francois Cartegnie

test: css: check spacing is ignored in quoted string

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=99b23ff9f84cb2ce2d693339afb9e4df5d3f3391
---

 modules/codec/webvtt/css_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/webvtt/css_test.c b/modules/codec/webvtt/css_test.c
index cb8ba81c2c..eb7f37e12f 100644
--- a/modules/codec/webvtt/css_test.c
+++ b/modules/codec/webvtt/css_test.c
@@ -36,7 +36,7 @@
 const char * css =
         "el1 { float0: 1; }\n"
         ".class1 { hex1: #F0000f; }\n"
-        "#id1 { text2: \"foobar\"; }\n"
+        "#id1 { text2: \"foo bar\"; }\n"
         ":pseudo { text2: \"foobar\"; }\n"
         "attrib[foo=\"bar\"] { text2: \"foobar\"; }\n"
         "attrib2[foo] { text2: \"foobar\"; }\n"
@@ -111,7 +111,7 @@ int main(void)
     EXPECT(decl && !strcmp(rule->p_declarations->psz_property, "text2"));
     EXPECT(decl->expr && decl->expr->i_count);
     EXPECT(decl->expr->seq[0].term.type == TYPE_STRING);
-    EXPECT(!strcmp(decl->expr->seq[0].term.psz,"foobar"));
+    EXPECT(!strcmp(decl->expr->seq[0].term.psz,"foo bar"));
 
     CHECK("pseudoclass selector");
     rule = rule->p_next;



More information about the vlc-commits mailing list