OLD | NEW |
---|---|
(Empty) | |
1 <sky> | |
2 <import src="../resources/chai.sky" /> | |
3 <import src="../resources/mocha.sky" /> | |
4 <div id="example">Hello, Sky</div> | |
5 <script> | |
6 var example = document.getElementById('example'); | |
7 | |
8 describe('Element.animate opacity', function() { | |
9 it('should amimate from 0 to 1', function() { | |
10 example.animate([{ opacity: 0 }, { opacity: 1}], 2000); | |
11 internals.pauseAnimations(.5); | |
12 assert.equal(.25, getComputedStyle(example).opacity); | |
13 }); | |
14 }); | |
15 </script> | |
16 </sky> | |
OLD | NEW |