From 0b2198a26b4d75be3b375d1d5681a0b21ccf3a4b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 7 Jul 2014 14:25:08 +0200 Subject: [PATCH] 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 +++ testsuite/css/parser/animation-shorthand-crash.ref.css | 9 +++++++++ 3 files changed, 14 insertions(+) create mode 100644 testsuite/css/parser/animation-shorthand-crash.css create mode 100644 testsuite/css/parser/animation-shorthand-crash.ref.css diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am index 5e0577932d..4b5fc93a39 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 0000000000..9f913a656c --- /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 0000000000..c46ab618b8 --- /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; +}