| Tests for WI.Geometry classes. |
| |
| |
| == Running test suite: WI.Geometry |
| -- Running test case: WI.CubicBezier |
| PASS: Should parse 'cubic-bezier(1, 2, 3, 4)' as 'cubic-bezier(1, 2, 3, 4)'. |
| PASS: Should parse 'cubic-bezier(0.1, 0.2, 0.3, 0.4)' as 'cubic-bezier(0.1, 0.2, 0.3, 0.4)'. |
| PASS: Should parse 'cubic-bezier(0.25, 0.1, 0.25, 1)' as 'ease'. |
| PASS: Should parse 'cubic-bezier(0.42, 0, 1, 1)' as 'ease-in'. |
| PASS: Should parse 'cubic-bezier(0, 0, 0.58, 1)' as 'ease-out'. |
| PASS: Should parse 'cubic-bezier(0.42, 0, 0.58, 1)' as 'ease-in-out'. |
| PASS: Should parse 'cubic-bezier(0, 0, 1, 1)' as 'linear'. |
| PASS: Should parse 'ease' as 'ease'. |
| PASS: Should parse 'ease-in' as 'ease-in'. |
| PASS: Should parse 'ease-out' as 'ease-out'. |
| PASS: Should parse 'ease-in-out' as 'ease-in-out'. |
| PASS: Should parse 'linear' as 'linear'. |
| PASS: Should not parse invalid 'cubic-bezier()'. |
| PASS: Should not parse invalid 'cubic-bezier(0)'. |
| PASS: Should not parse invalid 'cubic-bezier(0, 1)'. |
| PASS: Should not parse invalid 'cubic-bezier(0, 1, 2)'. |
| PASS: Should not parse invalid 'cubic-bezier("test")'. |
| PASS: Should not parse invalid 'cubic-bezier(0, "test")'. |
| PASS: Should not parse invalid 'cubic-bezier(0, 1, "test")'. |
| PASS: Should not parse invalid 'cubic-bezier(0, 1, 2, "test")'. |
| |
| -- Running test case: WI.Spring |
| PASS: Should parse 'spring(1 2 3 4)' as 'spring(1 2 3 4)'. |
| PASS: Should parse 'spring(0.1 0.2 0.3 0.4)' as 'spring(1 1 0.3 0.4)'. |
| PASS: Should not parse invalid 'spring()'. |
| PASS: Should not parse invalid 'spring(0)'. |
| PASS: Should not parse invalid 'spring(0 1)'. |
| PASS: Should not parse invalid 'spring(0 1 2)'. |
| PASS: Should not parse invalid 'spring("test")'. |
| PASS: Should not parse invalid 'spring(0 "test")'. |
| PASS: Should not parse invalid 'spring(0 1 "test")'. |
| PASS: Should not parse invalid 'spring(0 1 2 "test")'. |
| |
| -- Running test case: WI.StepFunction |
| PASS: Should parse 'steps(1)' as 'step-end'. |
| PASS: Should parse 'steps(2, jump-start)' as 'steps(2, jump-start)'. |
| PASS: Should parse 'steps(3, jump-end)' as 'steps(3, jump-end)'. |
| PASS: Should parse 'steps(4, jump-none)' as 'steps(4, jump-none)'. |
| PASS: Should parse 'steps(5, jump-both)' as 'steps(5, jump-both)'. |
| PASS: Should parse 'steps(6, end)' as 'steps(6, end)'. |
| PASS: Should parse 'steps(7, start)' as 'steps(7, start)'. |
| PASS: Should parse 'step-start' as 'step-start'. |
| PASS: Should parse 'step-end' as 'step-end'. |
| PASS: Should not parse invalid 'steps()'. |
| PASS: Should not parse invalid 'steps(0)'. |
| PASS: Should not parse invalid 'steps(0, 1)'. |
| PASS: Should not parse invalid 'steps(0, 1, 2)'. |
| PASS: Should not parse invalid 'steps("test")'. |
| PASS: Should not parse invalid 'steps(0, "test")'. |
| PASS: Should not parse invalid 'steps(0, 1, "test")'. |
| |