[gtk] csstokenizer: Add more testcases
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] csstokenizer: Add more testcases
- Date: Tue, 7 May 2019 22:59:29 +0000 (UTC)
commit dd299c50bf4eb12a263a0660ddb90cc398b16d13
Author: Benjamin Otte <otte redhat com>
Date: Tue May 7 20:47:20 2019 +0200
csstokenizer: Add more testcases
testsuite/css/parser/dash-backslash-eof-is-identifier.css | 2 ++
testsuite/css/parser/dash-backslash-eof-is-identifier.errors | 2 ++
.../css/parser/dash-backslash-eof-is-identifier.ref.css | 3 +++
testsuite/css/parser/dash-backslash-newline-is-delim.css | 2 ++
testsuite/css/parser/dash-backslash-newline-is-delim.errors | 3 +++
testsuite/css/parser/dash-backslash-newline-is-delim.ref.css | 2 ++
testsuite/css/parser/dash-dash-eof-is-identifier.css | 2 ++
testsuite/css/parser/dash-dash-eof-is-identifier.errors | 2 ++
testsuite/css/parser/dash-dash-eof-is-identifier.ref.css | 3 +++
testsuite/css/parser/dash-eof-is-delim.css | 2 ++
testsuite/css/parser/dash-eof-is-delim.errors | 3 +++
testsuite/css/parser/dash-eof-is-delim.ref.css | 2 ++
testsuite/css/parser/meson.build | 12 ++++++++++++
13 files changed, 40 insertions(+)
---
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
index 0000000000..38b9d576cb
--- /dev/null
+++ b/testsuite/css/parser/dash-backslash-eof-is-identifier.css
@@ -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
index 0000000000..e01e79ccea
--- /dev/null
+++ b/testsuite/css/parser/dash-backslash-eof-is-identifier.errors
@@ -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
index 0000000000..f7442444d0
--- /dev/null
+++ b/testsuite/css/parser/dash-backslash-eof-is-identifier.ref.css
@@ -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
index 0000000000..36d9ef170d
--- /dev/null
+++ b/testsuite/css/parser/dash-backslash-newline-is-delim.css
@@ -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
index 0000000000..b409e1ba68
--- /dev/null
+++ b/testsuite/css/parser/dash-backslash-newline-is-delim.errors
@@ -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
index 0000000000..f1d0d7038f
--- /dev/null
+++ b/testsuite/css/parser/dash-backslash-newline-is-delim.ref.css
@@ -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
index 0000000000..f1ed56a070
--- /dev/null
+++ b/testsuite/css/parser/dash-dash-eof-is-identifier.css
@@ -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
index 0000000000..bee5b20bdf
--- /dev/null
+++ b/testsuite/css/parser/dash-dash-eof-is-identifier.errors
@@ -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
index 0000000000..53fb97af78
--- /dev/null
+++ b/testsuite/css/parser/dash-dash-eof-is-identifier.ref.css
@@ -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
index 0000000000..1e6d1d84e3
--- /dev/null
+++ b/testsuite/css/parser/dash-eof-is-delim.css
@@ -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
index 0000000000..982c22f243
--- /dev/null
+++ b/testsuite/css/parser/dash-eof-is-delim.errors
@@ -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
index 0000000000..f1d0d7038f
--- /dev/null
+++ b/testsuite/css/parser/dash-eof-is-delim.ref.css
@@ -0,0 +1,2 @@
+a {
+}
diff --git a/testsuite/css/parser/meson.build b/testsuite/css/parser/meson.build
index 4aa29a49c3..2722bf8d9c 100644
--- a/testsuite/css/parser/meson.build
+++ b/testsuite/css/parser/meson.build
@@ -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',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]