| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="resources/responsive-test.js"></script> | 2 <script src="resources/responsive-test.js"></script> |
| 3 <script> | 3 <script> |
| 4 assertResponsive({ | 4 assertResponsive({ |
| 5 property: 'left', | 5 property: 'left', |
| 6 from: 'inherit', | 6 from: 'inherit', |
| 7 to: '100px', | 7 to: '200px', |
| 8 configurations: [{ | 8 configurations: [{ |
| 9 state: {inherited: '0px'}, | 9 state: {inherited: '100px'}, |
| 10 expect: [ | 10 expect: [ |
| 11 {at: 0.25, is: '25px'}, | 11 {at: 0.25, is: '125px'}, |
| 12 {at: 0.75, is: '75px'}, | 12 {at: 0.75, is: '175px'}, |
| 13 ], | 13 ], |
| 14 }, { | 14 }, { |
| 15 state: {inherited: 'auto'}, | 15 state: {inherited: 'auto'}, |
| 16 expect: [ | 16 expect: [ |
| 17 {at: 0.25, is: 'auto'}, | 17 {at: 0.25, is: 'auto'}, |
| 18 {at: 0.75, is: '100px'}, | 18 {at: 0.75, is: '200px'}, |
| 19 ], | 19 ], |
| 20 }], | 20 }], |
| 21 }); | 21 }); |
| 22 | 22 |
| 23 assertResponsive({ | 23 assertResponsive({ |
| 24 property: 'left', | 24 property: 'left', |
| 25 from: '', | 25 from: '', |
| 26 to: '100px', | 26 to: '200px', |
| 27 configurations: [{ | 27 configurations: [{ |
| 28 state: {underlying: '0px'}, | 28 state: {underlying: '100px'}, |
| 29 expect: [ | 29 expect: [ |
| 30 {at: 0.25, is: '25px'}, | 30 {at: 0.25, is: '125px'}, |
| 31 {at: 0.75, is: '75px'}, | 31 {at: 0.75, is: '175px'}, |
| 32 ], | 32 ], |
| 33 }, { | 33 }, { |
| 34 state: {underlying: 'auto'}, | 34 state: {underlying: 'auto'}, |
| 35 expect: [ | 35 expect: [ |
| 36 {at: 0.25, is: 'auto'}, | 36 {at: 0.25, is: 'auto'}, |
| 37 {at: 0.75, is: '100px'}, | 37 {at: 0.75, is: '200px'}, |
| 38 ], | 38 ], |
| 39 }, { | 39 }, { |
| 40 state: {underlying: 'inherit', inherited: '0px'}, | 40 state: {underlying: 'inherit', inherited: '100px'}, |
| 41 expect: [ | 41 expect: [ |
| 42 {at: 0.25, is: '25px'}, | 42 {at: 0.25, is: '125px'}, |
| 43 {at: 0.75, is: '75px'}, | 43 {at: 0.75, is: '175px'}, |
| 44 ], | 44 ], |
| 45 }, { | 45 }, { |
| 46 state: {underlying: 'inherit', inherited: 'auto'}, | 46 state: {underlying: 'inherit', inherited: 'auto'}, |
| 47 expect: [ | 47 expect: [ |
| 48 {at: 0.25, is: 'auto'}, | 48 {at: 0.25, is: 'auto'}, |
| 49 {at: 0.75, is: '100px'}, | 49 {at: 0.75, is: '200px'}, |
| 50 ], | 50 ], |
| 51 }], | 51 }], |
| 52 }); | 52 }); |
| 53 </script> | 53 </script> |
| OLD | NEW |