OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <title>Effect-level easing tests</title> | 3 <title>Effect-level easing tests</title> |
4 <link rel="help" href="http://w3c.github.io/web-animations/#calculating-the-tran
sformed-time"> | 4 <link rel="help" href="http://w3c.github.io/web-animations/#calculating-the-tran
sformed-time"> |
5 <link rel="author" title="Hiroyuki Ikezoe" href="mailto:hiikezoe@mozilla-japan.o
rg"> | 5 <link rel="author" title="Hiroyuki Ikezoe" href="mailto:hiikezoe@mozilla-japan.o
rg"> |
6 <script src="/resources/testharness.js"></script> | 6 <script src="/resources/testharness.js"></script> |
7 <script src="/resources/testharnessreport.js"></script> | 7 <script src="/resources/testharnessreport.js"></script> |
8 <script src="../../testcommon.js"></script> | 8 <script src="../../testcommon.js"></script> |
9 <script src="../../resources/effect-easing-tests.js"></script> | 9 <script src="../../resources/effect-easing-tests.js"></script> |
10 <body> | 10 <body> |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 } | 662 } |
663 if (typeof condition.width !== 'undefined') { | 663 if (typeof condition.width !== 'undefined') { |
664 assert_equals(getComputedStyle(target).width, | 664 assert_equals(getComputedStyle(target).width, |
665 condition.width, | 665 condition.width, |
666 'Progress at ' + animation.currentTime + 'ms'); | 666 'Progress at ' + animation.currentTime + 'ms'); |
667 } | 667 } |
668 }); | 668 }); |
669 }, options.description); | 669 }, options.description); |
670 }); | 670 }); |
671 | 671 |
| 672 gInvalidEasingTests.forEach(function(options) { |
| 673 test(function(t) { |
| 674 var div = createDiv(t); |
| 675 assert_throws({ name: 'TypeError' }, |
| 676 function() { |
| 677 div.animate({ easing: options.easing }, 100 * MS_PER_SEC); |
| 678 }); |
| 679 }, 'Invalid keyframe easing value: \'' + options.easing + '\''); |
| 680 }); |
| 681 |
672 </script> | 682 </script> |
673 </body> | 683 </body> |
OLD | NEW |