mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This patch remove the Web Animations & CSS Animation runtime flags (and enables both). Removes prefixed Aninamations & Transitions and adds some basic tests & test support API. R=ojan@chromium.org Review URL: https://codereview.chromium.org/760183003
17 lines
457 B
Plaintext
17 lines
457 B
Plaintext
<sky>
|
|
<import src="../resources/chai.sky" />
|
|
<import src="../resources/mocha.sky" />
|
|
<div id="example">Hello, Sky</div>
|
|
<script>
|
|
var example = document.getElementById('example');
|
|
|
|
describe('Element.animate opacity', function() {
|
|
it('should amimate from 0 to 1', function() {
|
|
example.animate([{ opacity: 0 }, { opacity: 1}], 2000);
|
|
internals.pauseAnimations(.5);
|
|
assert.equal(.25, getComputedStyle(example).opacity);
|
|
});
|
|
});
|
|
</script>
|
|
</sky>
|