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

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: Renamed transition to stateTransition to avoid confusion with CSS Transitions 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
« no previous file with comments | « no previous file | LayoutTests/animations/responsive/resources/responsive-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..56f7c9050a8e402bdbdef7654d4b9de9f6410683
--- /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: {inherited: '0px'},
+ expect: [
+ {at: 0.25, is: '25px'},
+ {at: 0.75, is: '75px'},
+ ],
+ }, {
+ state: {inherited: 'auto'},
+ expect: [
+ {at: 0.25, is: 'auto'},
+ {at: 0.75, is: '100px'},
+ ],
+ }],
+});
+
+assertResponsive({
+ property: 'left',
+ from: '',
+ to: '100px',
+ configurations: [{
+ state: {underlying: '0px'},
+ expect: [
+ {at: 0.25, is: '25px'},
+ {at: 0.75, is: '75px'},
+ ],
+ }, {
+ state: {underlying: 'auto'},
+ expect: [
+ {at: 0.25, is: 'auto'},
+ {at: 0.75, is: '100px'},
+ ],
+ }, {
+ state: {underlying: 'inherit', inherited: '0px'},
+ expect: [
+ {at: 0.25, is: '25px'},
+ {at: 0.75, is: '75px'},
+ ],
+ }, {
+ state: {underlying: 'inherit', inherited: 'auto'},
+ expect: [
+ {at: 0.25, is: 'auto'},
+ {at: 0.75, is: '100px'},
+ ],
+ }],
+});
+</script>
« no previous file with comments | « no previous file | LayoutTests/animations/responsive/resources/responsive-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698