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

Unified Diff: LayoutTests/animations/responsive/left-responsive.html

Issue 1181253006: Add test for style responsive animation behaviour (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/responsive/left-responsive.html
diff --git a/LayoutTests/animations/responsive/left-responsive.html b/LayoutTests/animations/responsive/left-responsive.html
new file mode 100644
index 0000000000000000000000000000000000000000..2e0c1ea5461ee5baec4506e87f2f402d3cac73a0
--- /dev/null
+++ b/LayoutTests/animations/responsive/left-responsive.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<script src="resources/responsive-test.js"></script>
+<script>
+assertResponsive({
+ property: 'left',
+ from: 'inherit',
+ to: '100px',
+ configurations: [{
+ state: {parentStyle: {left: '0px'}},
+ expect: [
+ {at: 0.25, is: '25px'},
+ {at: 0.75, is: '75px'},
+ ],
+ }, {
+ state: {parentStyle: {left: 'auto'}},
+ expect: [
+ {at: 0.25, is: 'auto'},
+ {at: 0.75, is: '100px'},
+ ],
+ }],
+});
+
+assertResponsive({
+ property: 'left',
+ from: '',
+ to: '100px',
+ configurations: [{
+ state: {targetStyle: {left: '0px'}},
+ expect: [
+ {at: 0.25, is: '25px'},
+ {at: 0.75, is: '75px'},
+ ],
+ }, {
+ state: {targetStyle: {left: 'auto'}},
+ expect: [
+ {at: 0.25, is: 'auto'},
+ {at: 0.75, is: '100px'},
+ ],
+ }, {
+ state: {targetStyle: {left: 'inherit'}, parentStyle: {left: '0px'}},
+ expect: [
+ {at: 0.25, is: '25px'},
+ {at: 0.75, is: '75px'},
+ ],
+ }, {
+ state: {targetStyle: {left: 'inherit'}, parentStyle: {left: 'auto'}},
+ expect: [
+ {at: 0.25, is: 'auto'},
+ {at: 0.75, is: '100px'},
+ ],
+ }],
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698