From ef71eabfc558f90a98c5a959c29e3e5b01e2c3d2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 22 Dec 2015 21:33:08 -0500 Subject: [PATCH] Add parser tests for animation properties This adds tests for animation-name, animation-duration, animation-timing-function, animation-iteration-count, animation-direction, animation-play-state, animation-delay and animation-fill-mode. --- testsuite/css/parser/Makefile.am | 16 +++++++++ testsuite/css/parser/animation-delay.css | 23 ++++++++++++ testsuite/css/parser/animation-delay.ref.css | 23 ++++++++++++ testsuite/css/parser/animation-direction.css | 19 ++++++++++ .../css/parser/animation-direction.ref.css | 19 ++++++++++ testsuite/css/parser/animation-duration.css | 23 ++++++++++++ .../css/parser/animation-duration.ref.css | 23 ++++++++++++ testsuite/css/parser/animation-fill-mode.css | 19 ++++++++++ .../css/parser/animation-fill-mode.ref.css | 19 ++++++++++ .../css/parser/animation-iteration-count.css | 27 ++++++++++++++ .../parser/animation-iteration-count.ref.css | 27 ++++++++++++++ testsuite/css/parser/animation-name.css | 23 ++++++++++++ testsuite/css/parser/animation-name.ref.css | 23 ++++++++++++ testsuite/css/parser/animation-play-state.css | 19 ++++++++++ .../css/parser/animation-play-state.ref.css | 19 ++++++++++ .../css/parser/animation-timing-function.css | 35 +++++++++++++++++++ .../parser/animation-timing-function.ref.css | 35 +++++++++++++++++++ 17 files changed, 392 insertions(+) create mode 100644 testsuite/css/parser/animation-delay.css create mode 100644 testsuite/css/parser/animation-delay.ref.css create mode 100644 testsuite/css/parser/animation-direction.css create mode 100644 testsuite/css/parser/animation-direction.ref.css create mode 100644 testsuite/css/parser/animation-duration.css create mode 100644 testsuite/css/parser/animation-duration.ref.css create mode 100644 testsuite/css/parser/animation-fill-mode.css create mode 100644 testsuite/css/parser/animation-fill-mode.ref.css create mode 100644 testsuite/css/parser/animation-iteration-count.css create mode 100644 testsuite/css/parser/animation-iteration-count.ref.css create mode 100644 testsuite/css/parser/animation-name.css create mode 100644 testsuite/css/parser/animation-name.ref.css create mode 100644 testsuite/css/parser/animation-play-state.css create mode 100644 testsuite/css/parser/animation-play-state.ref.css create mode 100644 testsuite/css/parser/animation-timing-function.css create mode 100644 testsuite/css/parser/animation-timing-function.ref.css diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am index ac43020509..1160b44c9d 100644 --- a/testsuite/css/parser/Makefile.am +++ b/testsuite/css/parser/Makefile.am @@ -35,6 +35,22 @@ test_data = \ animation-crash-3.12.ref.css \ animation-shorthand-crash.css \ animation-shorthand-crash.ref.css \ + animation-delay.css \ + animation-delay.ref.css \ + animation-direction.css \ + animation-direction.ref.css \ + animation-duration.css \ + animation-duration.ref.css \ + animation-fill-mode.css \ + animation-fill-mode.ref.css \ + animation-iteration-count.css \ + animation-iteration-count.ref.css \ + animation-name.css \ + animation-name.ref.css \ + animation-play-state.css \ + animation-play-state.ref.css \ + animation-timing-function.css \ + animation-timing-function.ref.css \ at-invalid-01.css \ at-invalid-01.errors \ at-invalid-01.ref.css \ diff --git a/testsuite/css/parser/animation-delay.css b/testsuite/css/parser/animation-delay.css new file mode 100644 index 0000000000..495abc6ad8 --- /dev/null +++ b/testsuite/css/parser/animation-delay.css @@ -0,0 +1,23 @@ +a { + animation-delay: initial; +} + +b { + animation-delay: inherit; +} + +c { + animation-delay: unset; +} + +d { + animation-delay: 0s; +} + +e { + animation-delay: 5ms; +} + +f { + animation-delay: 5ms, 6s; +} diff --git a/testsuite/css/parser/animation-delay.ref.css b/testsuite/css/parser/animation-delay.ref.css new file mode 100644 index 0000000000..c7b23efe47 --- /dev/null +++ b/testsuite/css/parser/animation-delay.ref.css @@ -0,0 +1,23 @@ +a { + animation-delay: initial; +} + +b { + animation-delay: inherit; +} + +c { + animation-delay: unset; +} + +d { + animation-delay: 0; +} + +e { + animation-delay: 5ms; +} + +f { + animation-delay: 5ms, 6s; +} diff --git a/testsuite/css/parser/animation-direction.css b/testsuite/css/parser/animation-direction.css new file mode 100644 index 0000000000..0d86740c5b --- /dev/null +++ b/testsuite/css/parser/animation-direction.css @@ -0,0 +1,19 @@ +a { + animation-direction: initial; +} + +b { + animation-direction: inherit; +} + +c { + animation-direction: unset; +} + +d { + animation-direction: normal; +} + +e { + animation-direction: normal, reverse, alternate, alternate-reverse; +} diff --git a/testsuite/css/parser/animation-direction.ref.css b/testsuite/css/parser/animation-direction.ref.css new file mode 100644 index 0000000000..0d86740c5b --- /dev/null +++ b/testsuite/css/parser/animation-direction.ref.css @@ -0,0 +1,19 @@ +a { + animation-direction: initial; +} + +b { + animation-direction: inherit; +} + +c { + animation-direction: unset; +} + +d { + animation-direction: normal; +} + +e { + animation-direction: normal, reverse, alternate, alternate-reverse; +} diff --git a/testsuite/css/parser/animation-duration.css b/testsuite/css/parser/animation-duration.css new file mode 100644 index 0000000000..c4a0b7a291 --- /dev/null +++ b/testsuite/css/parser/animation-duration.css @@ -0,0 +1,23 @@ +a { + animation-duration: initial; +} + +b { + animation-duration: inherit; +} + +c { + animation-duration: unset; +} + +d { + animation-duration: 0s; +} + +e { + animation-duration: 5ms; +} + +f { + animation-duration: 5ms, 6s; +} diff --git a/testsuite/css/parser/animation-duration.ref.css b/testsuite/css/parser/animation-duration.ref.css new file mode 100644 index 0000000000..416ea2fa3c --- /dev/null +++ b/testsuite/css/parser/animation-duration.ref.css @@ -0,0 +1,23 @@ +a { + animation-duration: initial; +} + +b { + animation-duration: inherit; +} + +c { + animation-duration: unset; +} + +d { + animation-duration: 0; +} + +e { + animation-duration: 5ms; +} + +f { + animation-duration: 5ms, 6s; +} diff --git a/testsuite/css/parser/animation-fill-mode.css b/testsuite/css/parser/animation-fill-mode.css new file mode 100644 index 0000000000..db620253e4 --- /dev/null +++ b/testsuite/css/parser/animation-fill-mode.css @@ -0,0 +1,19 @@ +a { + animation-fill-mode: initial; +} + +b { + animation-fill-mode: inherit; +} + +c { + animation-fill-mode: unset; +} + +d { + animation-fill-mode: none; +} + +e { + animation-fill-mode: none, forwards, backwards, both; +} diff --git a/testsuite/css/parser/animation-fill-mode.ref.css b/testsuite/css/parser/animation-fill-mode.ref.css new file mode 100644 index 0000000000..db620253e4 --- /dev/null +++ b/testsuite/css/parser/animation-fill-mode.ref.css @@ -0,0 +1,19 @@ +a { + animation-fill-mode: initial; +} + +b { + animation-fill-mode: inherit; +} + +c { + animation-fill-mode: unset; +} + +d { + animation-fill-mode: none; +} + +e { + animation-fill-mode: none, forwards, backwards, both; +} diff --git a/testsuite/css/parser/animation-iteration-count.css b/testsuite/css/parser/animation-iteration-count.css new file mode 100644 index 0000000000..474cbc6509 --- /dev/null +++ b/testsuite/css/parser/animation-iteration-count.css @@ -0,0 +1,27 @@ +a { + animation-iteration-count: initial; +} + +b { + animation-iteration-count: inherit; +} + +c { + animation-iteration-count: unset; +} + +d { + animation-iteration-count: 1; +} + +e { + animation-iteration-count: 1, 2, 3; +} + +f { + animation-iteration-count: infinite; +} + +g { + animation-iteration-count: 1, infinite, 2; +} diff --git a/testsuite/css/parser/animation-iteration-count.ref.css b/testsuite/css/parser/animation-iteration-count.ref.css new file mode 100644 index 0000000000..474cbc6509 --- /dev/null +++ b/testsuite/css/parser/animation-iteration-count.ref.css @@ -0,0 +1,27 @@ +a { + animation-iteration-count: initial; +} + +b { + animation-iteration-count: inherit; +} + +c { + animation-iteration-count: unset; +} + +d { + animation-iteration-count: 1; +} + +e { + animation-iteration-count: 1, 2, 3; +} + +f { + animation-iteration-count: infinite; +} + +g { + animation-iteration-count: 1, infinite, 2; +} diff --git a/testsuite/css/parser/animation-name.css b/testsuite/css/parser/animation-name.css new file mode 100644 index 0000000000..582583687c --- /dev/null +++ b/testsuite/css/parser/animation-name.css @@ -0,0 +1,23 @@ +a { + animation-name: initial; +} + +b { + animation-name: inherit; +} + +c { + animation-name: unset; +} + +d { + animation-name: none; +} + +e { + animation-name: bob; +} + +f { + animation-name: bob, alice; +} diff --git a/testsuite/css/parser/animation-name.ref.css b/testsuite/css/parser/animation-name.ref.css new file mode 100644 index 0000000000..582583687c --- /dev/null +++ b/testsuite/css/parser/animation-name.ref.css @@ -0,0 +1,23 @@ +a { + animation-name: initial; +} + +b { + animation-name: inherit; +} + +c { + animation-name: unset; +} + +d { + animation-name: none; +} + +e { + animation-name: bob; +} + +f { + animation-name: bob, alice; +} diff --git a/testsuite/css/parser/animation-play-state.css b/testsuite/css/parser/animation-play-state.css new file mode 100644 index 0000000000..4d4b4565ba --- /dev/null +++ b/testsuite/css/parser/animation-play-state.css @@ -0,0 +1,19 @@ +a { + animation-play-state: initial; +} + +b { + animation-play-state: inherit; +} + +c { + animation-play-state: unset; +} + +d { + animation-play-state: running; +} + +e { + animation-play-state: running, paused, running, paused; +} diff --git a/testsuite/css/parser/animation-play-state.ref.css b/testsuite/css/parser/animation-play-state.ref.css new file mode 100644 index 0000000000..4d4b4565ba --- /dev/null +++ b/testsuite/css/parser/animation-play-state.ref.css @@ -0,0 +1,19 @@ +a { + animation-play-state: initial; +} + +b { + animation-play-state: inherit; +} + +c { + animation-play-state: unset; +} + +d { + animation-play-state: running; +} + +e { + animation-play-state: running, paused, running, paused; +} diff --git a/testsuite/css/parser/animation-timing-function.css b/testsuite/css/parser/animation-timing-function.css new file mode 100644 index 0000000000..5022e5d7cf --- /dev/null +++ b/testsuite/css/parser/animation-timing-function.css @@ -0,0 +1,35 @@ +a { + animation-timing-function: initial; +} + +b { + animation-timing-function: inherit; +} + +c { + animation-timing-function: unset; +} + +d { + animation-timing-function: ease; +} + +e { + animation-timing-function: ease, linear, ease-in, ease-out, ease-in-out, step-start, step-end; +} + +f { + animation-timing-function: cubic-bezier(0,0.25,1,2.7); +} + +g { + animation-timing-function: steps(3); +} + +h { + animation-timing-function: steps(5,start); +} + +i { + animation-timing-function: steps(7,end); +} diff --git a/testsuite/css/parser/animation-timing-function.ref.css b/testsuite/css/parser/animation-timing-function.ref.css new file mode 100644 index 0000000000..c1f1201bc5 --- /dev/null +++ b/testsuite/css/parser/animation-timing-function.ref.css @@ -0,0 +1,35 @@ +a { + animation-timing-function: initial; +} + +b { + animation-timing-function: inherit; +} + +c { + animation-timing-function: unset; +} + +d { + animation-timing-function: ease; +} + +e { + animation-timing-function: ease, linear, ease-in, ease-out, ease-in-out, step-start, step-end; +} + +f { + animation-timing-function: cubic-bezier(0,0.25,1,2.7); +} + +g { + animation-timing-function: steps(3); +} + +h { + animation-timing-function: steps(5,start); +} + +i { + animation-timing-function: steps(7); +}