1<!DOCTYPE html> 2<body> 3<script src="../testharness/testharness.js"></script> 4<script src="../testharness/testharnessreport.js"></script> 5<script src="resources/interpolation-test.js"></script> 6<script> 7assertInterpolation({ 8 property: 'visibility', 9 from: 'visible', 10 to: 'visible' 11}, [ 12 {at: -1, is: 'visible'}, 13 {at: 0, is: 'visible'}, 14 {at: 0.5, is: 'visible'}, 15 {at: 1, is: 'visible'}, 16 {at: 1.5, is: 'visible'}, 17]); 18 19assertInterpolation({ 20 property: 'visibility', 21 from: 'visible', 22 to: 'hidden' 23}, [ 24 {at: -1, is: 'visible'}, 25 {at: 0, is: 'visible'}, 26 {at: 0.1, is: 'visible'}, 27 {at: 0.9, is: 'visible'}, 28 {at: 1, is: 'hidden'}, 29 {at: 1.5, is: 'hidden'}, 30]); 31 32assertInterpolation({ 33 property: 'visibility', 34 from: 'collapse', 35 to: 'visible' 36}, [ 37 {at: -1, is: 'collapse'}, 38 {at: 0, is: 'collapse'}, 39 {at: 0.1, is: 'visible'}, 40 {at: 0.9, is: 'visible'}, 41 {at: 1, is: 'visible'}, 42 {at: 1.5, is: 'visible'}, 43]); 44 45assertInterpolation({ 46 property: 'visibility', 47 from: 'collapse', 48 to: 'hidden' 49}, [ 50 {at: -1, is: 'collapse'}, 51 {at: 0, is: 'collapse'}, 52 {at: 0.4, is: 'collapse'}, 53 {at: 0.5, is: 'hidden'}, 54 {at: 1, is: 'hidden'}, 55 {at: 1.5, is: 'hidden'}, 56]); 57</script> 58