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
32 lines
643 B
Plaintext
32 lines
643 B
Plaintext
<sky>
|
|
<import src="../resources/chai.sky" />
|
|
<import src="../resources/mocha.sky" />
|
|
<div id="example"></div>
|
|
<style>
|
|
#example {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: red;
|
|
position: relative;
|
|
animation-name: anim;
|
|
animation-timing-function: linear;
|
|
animation-duration: 5s;
|
|
}
|
|
|
|
@keyframes anim {
|
|
0% { top: 0px; }
|
|
100% { top: 100px; }
|
|
}
|
|
</style>
|
|
<script>
|
|
var example = document.getElementById('example');
|
|
|
|
describe('top', function() {
|
|
it('should amimate from 0 to 100px', function() {
|
|
internals.pauseAnimations(3);
|
|
assert.equal('60px', getComputedStyle(example).top);
|
|
});
|
|
});
|
|
</script>
|
|
</sky>
|