[gtk+] testsuite: Add parser test for recent fix
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testsuite: Add parser test for recent fix
- Date: Mon, 7 Jul 2014 12:48:47 +0000 (UTC)
commit 0b2198a26b4d75be3b375d1d5681a0b21ccf3a4b
Author: Benjamin Otte <otte redhat com>
Date: Mon Jul 7 14:25:08 2014 +0200
testsuite: Add parser test for recent fix
The test doesn't crash without the fix, but it parses the CSS
incorrectly and fails.
testsuite/css/parser/Makefile.am | 2 ++
testsuite/css/parser/animation-shorthand-crash.css | 3 +++
.../css/parser/animation-shorthand-crash.ref.css | 9 +++++++++
3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am
index 5e05779..4b5fc93 100644
--- a/testsuite/css/parser/Makefile.am
+++ b/testsuite/css/parser/Makefile.am
@@ -30,6 +30,8 @@ clean-local:
rm $(builddir)/*.out.css || true
test_data = \
+ animation-shorthand-crash.css \
+ animation-shorthand-crash.ref.css \
at-invalid-01.css \
at-invalid-01.errors \
at-invalid-01.ref.css \
diff --git a/testsuite/css/parser/animation-shorthand-crash.css
b/testsuite/css/parser/animation-shorthand-crash.css
new file mode 100644
index 0000000..9f913a6
--- /dev/null
+++ b/testsuite/css/parser/animation-shorthand-crash.css
@@ -0,0 +1,3 @@
+a {
+ animation: foo forwards, bar backwards;
+}
diff --git a/testsuite/css/parser/animation-shorthand-crash.ref.css
b/testsuite/css/parser/animation-shorthand-crash.ref.css
new file mode 100644
index 0000000..c46ab61
--- /dev/null
+++ b/testsuite/css/parser/animation-shorthand-crash.ref.css
@@ -0,0 +1,9 @@
+a {
+ animation-delay: 0, 0;
+ animation-direction: normal, normal;
+ animation-duration: 0, 0;
+ animation-fill-mode: forwards, backwards;
+ animation-iteration-count: 1, 1;
+ animation-name: foo, bar;
+ animation-timing-function: ease, ease;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]