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

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

Issue 1265873002: Add test coverage for interpolations using CSS wide keywords and neutral keyframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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 d7076246077e1ca8a6c07b53fae02df216eefeb0..16579505cf775d04ead4743d8516eaa84f28a442 100644
--- a/LayoutTests/animations/interpolation/rotate-interpolation.html
+++ b/LayoutTests/animations/interpolation/rotate-interpolation.html
@@ -5,9 +5,10 @@
rotate: 90deg;
}
.target {
- width: 100px;
- height: 100px;
- background-color: black;
+ width: 40px;
+ height: 20px;
+ background-color: grey;
+ rotate: 10deg;
}
.expected {
background-color: green;
@@ -15,13 +16,39 @@
</style>
<template id="target-template">
<div class="parent">
- <div class="target"></div>
+ <div class="target">Text</div>
</div>
</template>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'rotate',
+ from: '',
+ to: '30deg',
+}, [
+ {at: -1, is: '-10deg'},
+ {at: 0, is: '10deg'},
+ {at: 0.25, is: '15deg'},
+ {at: 0.75, is: '25deg'},
+ {at: 1, is: '30deg'},
+ {at: 2, is: '50deg'},
+]);
+
+assertInterpolation({
+ property: 'rotate',
+ from: 'unset',
+ to: '30deg',
+}, [
+ {at: -1, is: '-30deg'},
+ {at: 0, is: '0deg'},
+ {at: 0.25, is: '7.5deg'},
+ {at: 0.75, is: '22.5deg'},
+ {at: 1, is: '30deg'},
+ {at: 2, is: '60deg'},
+]);
+
+assertInterpolation({
+ property: 'rotate',
from: '100deg',
to: '-100deg',
}, [
@@ -98,82 +125,4 @@ assertInterpolation({
{at: 2, is: '90deg 0.71 0 -0.71'},
]);
-assertInterpolation({
- property: 'rotate',
- from: 'inherit',
- to: '0deg',
-}, [
- {at: -1, is: '180deg'},
- {at: 0, is: '90deg'},
- {at: 0.25, is: '67.5deg'},
- {at: 0.75, is: '22.5deg'},
- {at: 1, is: '0deg'},
- {at: 2, is: '-90deg'},
-]);
-
-assertInterpolation({
- property: 'rotate',
- from: '0deg',
- to: 'inherit',
-}, [
- {at: -1, is: '-90deg'},
- {at: 0, is: '0deg'},
- {at: 0.25, is: '22.5deg'},
- {at: 0.75, is: '67.5deg'},
- {at: 1, is: '90deg'},
- {at: 2, is: '180deg'},
-]);
-
-assertInterpolation({
- property: 'rotate',
- from: 'initial',
- to: '90deg',
-}, [
- {at: -1, is: '-90deg'},
- {at: 0, is: '0deg'},
- {at: 0.25, is: '22.5deg'},
- {at: 0.75, is: '67.5deg'},
- {at: 1, is: '90deg'},
- {at: 2, is: '180deg'},
-]);
-
-assertInterpolation({
- property: 'rotate',
- from: '90deg',
- to: 'initial',
-}, [
- {at: -1, is: '180deg'},
- {at: 0, is: '90deg'},
- {at: 0.25, is: '67.5deg'},
- {at: 0.75, is: '22.5deg'},
- {at: 1, is: '0deg'},
- {at: 2, is: '-90deg'},
-]);
-
-assertInterpolation({
- property: 'rotate',
- from: 'initial',
- to: 'inherit',
-}, [
- {at: -1, is: '-90deg'},
- {at: 0, is: '0deg'},
- {at: 0.25, is: '22.5deg'},
- {at: 0.75, is: '67.5deg'},
- {at: 1, is: '90deg'},
- {at: 2, is: '180deg'},
-]);
-
-assertInterpolation({
- property: 'rotate',
- from: 'inherit',
- to: 'initial',
-}, [
- {at: -1, is: '180deg'},
- {at: 0, is: '90deg'},
- {at: 0.25, is: '67.5deg'},
- {at: 0.75, is: '22.5deg'},
- {at: 1, is: '0deg'},
- {at: 2, is: '-90deg'},
-]);
-
</script>

Powered by Google App Engine
This is Rietveld 408576698