OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <title>KeyframeEffectReadOnly constructor tests</title> | 3 <title>KeyframeEffectReadOnly constructor tests</title> |
4 <link rel="help" href="https://w3c.github.io/web-animations/#processing-a-keyfra
mes-argument"> | 4 <link rel="help" href="https://w3c.github.io/web-animations/#processing-a-keyfra
mes-argument"> |
5 <script src="/resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
6 <script src="/resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
7 <script src="../../testcommon.js"></script> | 7 <script src="../../testcommon.js"></script> |
8 <script src="../../resources/keyframe-utils.js"></script> | 8 <script src="../../resources/keyframe-utils.js"></script> |
9 <body> | 9 <body> |
10 <div id="log"></div> | 10 <div id="log"></div> |
(...skipping 21 matching lines...) Expand all Loading... |
32 'animationName', | 32 'animationName', |
33 'animationPlayState', | 33 'animationPlayState', |
34 'animationTimingFunction', | 34 'animationTimingFunction', |
35 'transition', | 35 'transition', |
36 'transitionDelay', | 36 'transitionDelay', |
37 'transitionDuration', | 37 'transitionDuration', |
38 'transitionProperty', | 38 'transitionProperty', |
39 'transitionTimingFunction', | 39 'transitionTimingFunction', |
40 'display', | 40 'display', |
41 'unsupportedProperty', | 41 'unsupportedProperty', |
| 42 'font-size', // Supported property that uses dashes |
42 ]; | 43 ]; |
43 | 44 |
44 function TestKeyframe(testProp) { | 45 function TestKeyframe(testProp) { |
45 var _propAccessCount = 0; | 46 var _propAccessCount = 0; |
46 | 47 |
47 Object.defineProperty(this, testProp, { | 48 Object.defineProperty(this, testProp, { |
48 get: function() { _propAccessCount++; }, | 49 get: function() { _propAccessCount++; }, |
49 enumerable: true | 50 enumerable: true |
50 }); | 51 }); |
51 | 52 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 {offset: null, computedOffset: 1, easing: 'linear', top: '200px'}, | 321 {offset: null, computedOffset: 1, easing: 'linear', top: '200px'}, |
321 ]); | 322 ]); |
322 }, 'Only properties defined directly on property indexed keyframes are considere
d'); | 323 }, 'Only properties defined directly on property indexed keyframes are considere
d'); |
323 | 324 |
324 // FIXME: Test that properties are accessed in ascending order by Unicode | 325 // FIXME: Test that properties are accessed in ascending order by Unicode |
325 // codepoint | 326 // codepoint |
326 // (There is an existing test for this in | 327 // (There is an existing test for this in |
327 // keyframe-effect/constructor.html that should be moved here.) | 328 // keyframe-effect/constructor.html that should be moved here.) |
328 | 329 |
329 </script> | 330 </script> |
OLD | NEW |