mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
@ -385,6 +385,18 @@ describe('cubic-bezier conversion', () => {
|
|||||||
|
|
||||||
shouldApproximatelyEqual(getTimeGivenProgression(...equation, 1.02), [0.35, 0.87]);
|
shouldApproximatelyEqual(getTimeGivenProgression(...equation, 1.02), [0.35, 0.87]);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('cubic-bezier(0.32, 0.72, 0, 1) (with out of bounds progression)', () => {
|
||||||
|
const equation = [
|
||||||
|
new Point(0, 0),
|
||||||
|
new Point(0.05, 0.2),
|
||||||
|
new Point(.14, 1.72),
|
||||||
|
new Point(1, 1)
|
||||||
|
];
|
||||||
|
|
||||||
|
expect(getTimeGivenProgression(...equation, 1.32)).toBeNaN();
|
||||||
|
expect(getTimeGivenProgression(...equation, -0.32)).toBeNaN();
|
||||||
|
})
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user