csstokenizer: Add more testcases
authorBenjamin Otte <otte@redhat.com>
Tue, 7 May 2019 18:47:20 +0000 (20:47 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 7 May 2019 22:58:52 +0000 (00:58 +0200)
13 files changed:
testsuite/css/parser/dash-backslash-eof-is-identifier.css [new file with mode: 0644]
testsuite/css/parser/dash-backslash-eof-is-identifier.errors [new file with mode: 0644]
testsuite/css/parser/dash-backslash-eof-is-identifier.ref.css [new file with mode: 0644]
testsuite/css/parser/dash-backslash-newline-is-delim.css [new file with mode: 0644]
testsuite/css/parser/dash-backslash-newline-is-delim.errors [new file with mode: 0644]
testsuite/css/parser/dash-backslash-newline-is-delim.ref.css [new file with mode: 0644]
testsuite/css/parser/dash-dash-eof-is-identifier.css [new file with mode: 0644]
testsuite/css/parser/dash-dash-eof-is-identifier.errors [new file with mode: 0644]
testsuite/css/parser/dash-dash-eof-is-identifier.ref.css [new file with mode: 0644]
testsuite/css/parser/dash-eof-is-delim.css [new file with mode: 0644]
testsuite/css/parser/dash-eof-is-delim.errors [new file with mode: 0644]
testsuite/css/parser/dash-eof-is-delim.ref.css [new file with mode: 0644]
testsuite/css/parser/meson.build

diff --git a/testsuite/css/parser/dash-backslash-eof-is-identifier.css b/testsuite/css/parser/dash-backslash-eof-is-identifier.css
new file mode 100644 (file)
index 0000000..38b9d57
--- /dev/null
@@ -0,0 +1,2 @@
+a {
+  animation-name: -\
\ No newline at end of file
diff --git a/testsuite/css/parser/dash-backslash-eof-is-identifier.errors b/testsuite/css/parser/dash-backslash-eof-is-identifier.errors
new file mode 100644 (file)
index 0000000..e01e79c
--- /dev/null
@@ -0,0 +1,2 @@
+dash-backslash-eof-is-identifier.css:2:3-21: error: GTK_CSS_PARSER_WARNING_SYNTAX
+dash-backslash-eof-is-identifier.css:1:3-2:21: error: GTK_CSS_PARSER_WARNING_SYNTAX
diff --git a/testsuite/css/parser/dash-backslash-eof-is-identifier.ref.css b/testsuite/css/parser/dash-backslash-eof-is-identifier.ref.css
new file mode 100644 (file)
index 0000000..f744244
--- /dev/null
@@ -0,0 +1,3 @@
+a {
+  animation-name: -�;
+}
diff --git a/testsuite/css/parser/dash-backslash-newline-is-delim.css b/testsuite/css/parser/dash-backslash-newline-is-delim.css
new file mode 100644 (file)
index 0000000..36d9ef1
--- /dev/null
@@ -0,0 +1,2 @@
+a {
+  animation-name: -\
diff --git a/testsuite/css/parser/dash-backslash-newline-is-delim.errors b/testsuite/css/parser/dash-backslash-newline-is-delim.errors
new file mode 100644 (file)
index 0000000..b409e1b
--- /dev/null
@@ -0,0 +1,3 @@
+dash-backslash-newline-is-delim.css:2:19-20: error: GTK_CSS_PARSER_ERROR_SYNTAX
+dash-backslash-newline-is-delim.css:2:3-3:1: error: GTK_CSS_PARSER_WARNING_SYNTAX
+dash-backslash-newline-is-delim.css:1:3-3:1: error: GTK_CSS_PARSER_WARNING_SYNTAX
diff --git a/testsuite/css/parser/dash-backslash-newline-is-delim.ref.css b/testsuite/css/parser/dash-backslash-newline-is-delim.ref.css
new file mode 100644 (file)
index 0000000..f1d0d70
--- /dev/null
@@ -0,0 +1,2 @@
+a {
+}
diff --git a/testsuite/css/parser/dash-dash-eof-is-identifier.css b/testsuite/css/parser/dash-dash-eof-is-identifier.css
new file mode 100644 (file)
index 0000000..f1ed56a
--- /dev/null
@@ -0,0 +1,2 @@
+a {
+  animation-name: --
\ No newline at end of file
diff --git a/testsuite/css/parser/dash-dash-eof-is-identifier.errors b/testsuite/css/parser/dash-dash-eof-is-identifier.errors
new file mode 100644 (file)
index 0000000..bee5b20
--- /dev/null
@@ -0,0 +1,2 @@
+dash-dash-eof-is-identifier.css:2:3-21: error: GTK_CSS_PARSER_WARNING_SYNTAX
+dash-dash-eof-is-identifier.css:1:3-2:21: error: GTK_CSS_PARSER_WARNING_SYNTAX
diff --git a/testsuite/css/parser/dash-dash-eof-is-identifier.ref.css b/testsuite/css/parser/dash-dash-eof-is-identifier.ref.css
new file mode 100644 (file)
index 0000000..53fb97a
--- /dev/null
@@ -0,0 +1,3 @@
+a {
+  animation-name: --;
+}
diff --git a/testsuite/css/parser/dash-eof-is-delim.css b/testsuite/css/parser/dash-eof-is-delim.css
new file mode 100644 (file)
index 0000000..1e6d1d8
--- /dev/null
@@ -0,0 +1,2 @@
+a {
+  animation-name: -
\ No newline at end of file
diff --git a/testsuite/css/parser/dash-eof-is-delim.errors b/testsuite/css/parser/dash-eof-is-delim.errors
new file mode 100644 (file)
index 0000000..982c22f
--- /dev/null
@@ -0,0 +1,3 @@
+dash-eof-is-delim.css:2:19-20: error: GTK_CSS_PARSER_ERROR_SYNTAX
+dash-eof-is-delim.css:2:3-20: error: GTK_CSS_PARSER_WARNING_SYNTAX
+dash-eof-is-delim.css:1:3-2:20: error: GTK_CSS_PARSER_WARNING_SYNTAX
diff --git a/testsuite/css/parser/dash-eof-is-delim.ref.css b/testsuite/css/parser/dash-eof-is-delim.ref.css
new file mode 100644 (file)
index 0000000..f1d0d70
--- /dev/null
@@ -0,0 +1,2 @@
+a {
+}
index 4aa29a49c37b0ef24f2a913db9f7a96c3e887ee6..2722bf8d9c24e936cdf01a3000f2491ed5e76a03 100644 (file)
@@ -226,6 +226,18 @@ test_data = [
   'css-21-malformed-statements.errors',
   'css-21-malformed-statements.ref.css',
   'currentcolor-everywhere.css',
+  'dash-backslash-eof-is-identifier.ref.css',
+  'dash-backslash-eof-is-identifier.css',
+  'dash-backslash-eof-is-identifier.errors',
+  'dash-backslash-newline-is-delim.ref.css',
+  'dash-backslash-newline-is-delim.errors',
+  'dash-backslash-newline-is-delim.css
+  'dash-dash-eof-is-identifier.ref.css',
+  'dash-dash-eof-is-identifier.css',
+  'dash-dash-eof-is-identifier.errors',
+  'dash-eof-is-delim.ref.css',
+  'dash-eof-is-delim.css',
+  'dash-eof-is-delim.errors',
   'declarations.css',
   'declarations.errors',
   'declarations-invalid-01.css',