[gtk+] Add parser tests for animation properties
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add parser tests for animation properties
- Date: Wed, 23 Dec 2015 03:35:53 +0000 (UTC)
commit ef71eabfc558f90a98c5a959c29e3e5b01e2c3d2
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 22 21:33:08 2015 -0500
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 +++++++++++
testsuite/css/parser/animation-direction.ref.css | 19 +++++++++++
testsuite/css/parser/animation-duration.css | 23 +++++++++++++
testsuite/css/parser/animation-duration.ref.css | 23 +++++++++++++
testsuite/css/parser/animation-fill-mode.css | 19 +++++++++++
testsuite/css/parser/animation-fill-mode.ref.css | 19 +++++++++++
testsuite/css/parser/animation-iteration-count.css | 27 +++++++++++++++
.../css/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 +++++++++++
testsuite/css/parser/animation-play-state.ref.css | 19 +++++++++++
testsuite/css/parser/animation-timing-function.css | 35 ++++++++++++++++++++
.../css/parser/animation-timing-function.ref.css | 35 ++++++++++++++++++++
17 files changed, 392 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am
index ac43020..1160b44 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 0000000..495abc6
--- /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 0000000..c7b23ef
--- /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 0000000..0d86740
--- /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 0000000..0d86740
--- /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 0000000..c4a0b7a
--- /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 0000000..416ea2f
--- /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 0000000..db62025
--- /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 0000000..db62025
--- /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 0000000..474cbc6
--- /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 0000000..474cbc6
--- /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 0000000..5825836
--- /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 0000000..5825836
--- /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 0000000..4d4b456
--- /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 0000000..4d4b456
--- /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 0000000..5022e5d
--- /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 0000000..c1f1201
--- /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);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]