transform-interpolation-verify-reftests.html (1048B)
1 <!DOCTYPE HTML> 2 <meta charset="UTF-8"> 3 <title>transform interpolation</title> 4 <link rel="help" href="https://drafts.csswg.org/css-transforms-1/#interpolation-of-transforms"> 5 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script src="/css/support/interpolation-testcommon.js"></script> 9 <script src="support/transform-interpolation-reftests.js"></script> 10 11 <!-- 12 13 The tests in transform-interpolation-reftests.js are used for reftests 14 that are designed to test animation that happens on the compositor. 15 Here we run those same tests through test_interpolation to check that 16 they match the non-compositor codepath. 17 18 --> 19 20 <body> 21 <script> 22 for (const set in transformTests) { 23 for (const obj of transformTests[set]) { 24 let test = ("test" in obj) ? obj.test : obj; 25 let midpoint = ("midpoint" in obj) ? obj.midpoint : 0.5; 26 test_interpolation({ 27 property: 'transform', 28 from: test[0], 29 to: test[2] 30 }, [ 31 { at: midpoint, expect: test[1] }, 32 ]); 33 } 34 } 35 </script>