Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: LayoutTests/animations/interpolation/rotate-interpolation.html

Issue 1322843002: Fix for rotate from 0deg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/animations/interpolation/rotate-interpolation.html
diff --git a/LayoutTests/animations/interpolation/rotate-interpolation.html b/LayoutTests/animations/interpolation/rotate-interpolation.html
index 16579505cf775d04ead4743d8516eaa84f28a442..c8c36451c2fc98308838cc53101ebfb030dcebb6 100644
--- a/LayoutTests/animations/interpolation/rotate-interpolation.html
+++ b/LayoutTests/animations/interpolation/rotate-interpolation.html
@@ -104,7 +104,7 @@ assertInterpolation({
from: '0deg 1 0 0',
to: '10deg 0 1 0',
}, [
- {at: -1, is: '10deg 0 -1 0'},
+ {at: -1, is: '-10deg 0 1 0'},
{at: 0, is: '0deg 1 0 0'},
{at: 0.25, is: '2.5deg 0 1 0'},
{at: 0.75, is: '7.5deg 0 1 0'},
@@ -125,4 +125,29 @@ assertInterpolation({
{at: 2, is: '90deg 0.71 0 -0.71'},
]);
+assertInterpolation({
+ property: 'rotate',
+ from: '0deg 0 1 0',
+ to: '450deg 1 0 0',
+}, [
+ {at: -1, is: '-450deg 1 0 0'},
+ {at: 0, is: '0deg 0 1 0'},
+ {at: 0.25, is: '112.5deg 1 0 0'},
+ {at: 0.75, is: '337.5deg 1 0 0'},
+ {at: 1, is: '450deg 1 0 0'},
+ {at: 2, is: '900deg 1 0 0'},
+]);
+
+assertInterpolation({
+ property: 'rotate',
+ from: '450deg 1 0 0',
+ to: '0deg 0 1 0',
+}, [
+ {at: -1, is: '900deg 1 0 0'},
+ {at: 0, is: '450deg 1 0 0'},
+ {at: 0.25, is: '337.5deg 1 0 0'},
+ {at: 0.75, is: '112.5deg 1 0 0'},
+ {at: 1, is: '0deg 0 1 0'},
+ {at: 2, is: '-450deg 1 0 0'},
+]);
</script>

Powered by Google App Engine
This is Rietveld 408576698